subject

Complete a prewritten Java program for a carpenter who creates personalized, house signs. The program is supposed to compute the price of any sign a customer orders, based on the following facts:

• The charge for all signs is a minimum of $35.00.
• The first five letters or numbers are included in the minimum charge, there is a $4 charge for each additional character.
• If the sign is make of oak, add $20.00. No charge is added for pine.
• Black or white characters are included in the minimum charge; there is an additional SIS charge for gold-leaf lettering.

1. Open the file named HouseSign. java using Notepad or the text editor of your choice
2. You need to declare variables for the following, and initialize them where specified:

• A variable for the cost of the sign initialized to 0.00.
• A variable for the color of the characters initialized to "gold"
• A variable for the wood type initialized with the value "oak".
• A variable for the number of characters initialized with the value 8.

3. Write the rest of the program using assignment statements and if statements as appropriate. The output statements are written for you.
4. Compile the program.
5. Execute the program. Your output should be: The charge for this sign is $82.0.

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 15:20
The north and south regions had very diferent economies in the 1800s.
Answers: 1
question
Computers and Technology, 22.06.2019 19:50
Write a car class having two private member variables called tank and speed. write public methods called pumpgas and gofast. the method pumpgas gets an integer for gas that must be pumped. that value needs to be added to tank (no more than 20 gallons). it must return the amount of gas that is purchased ($4 per gallon). the method gofast should increase the speed by 5 each time it is called.write a constructor for the above class that initialized both variables to zero.write a tostring to display both the tank and speed when the car is printed.modify the car class to implement the interface comparable and an interface called carinter having the public methods in carinter.write the main program to create an array of size 5 of type car. create 5 car objects having each location of the array to refer to one of the cars. test the pumpgas, gofast, equals method on the array items. write an enhanced loop to print all the car values (using a tostring written last time).write a generic method to find the minimum of four items. pass int, double, char, string and car objects to test this method.
Answers: 1
question
Computers and Technology, 24.06.2019 10:20
Multiple choice project create a program with two multiple choice questions. 1. users have two attempts only, show attempt number each time. hint: while loop with break control. (20%) 2. only one correct answer for each question, use switch case for each question. (20%) 3. show total score after the two questions are answered. hint: . (20%) 4. user have options to answer the two questions again if first attempt score is not 100%. hint: if statment. (20%) 5. use string method .toupper() to allow users to enter with lowercase or uppercase letters. (20%) 1. where is the capital of the state of florida? a. orlando b. tallahassee c. miami d. tampa b 2. where is walt disney world park located in florida? a. orlando b. tallahassee c. miami d. tampa a
Answers: 1
question
Computers and Technology, 24.06.2019 11:20
Every telecommunication setup uses two devices: one device to transmit data and one device to receive data. which device transmits frequencies to mobile phones? towers transmit frequencies to mobile phones.
Answers: 1
You know the right answer?
Complete a prewritten Java program for a carpenter who creates personalized, house signs. The progra...
Questions
question
Mathematics, 02.03.2021 14:30
question
Mathematics, 02.03.2021 14:30
question
Mathematics, 02.03.2021 14:30
question
Mathematics, 02.03.2021 14:30
question
English, 02.03.2021 14:30
Questions on the website: 13722363