subject

You have several pictures of different sizes that you would like to frame. a local picture framing store offers two types of frames regular and fancy. the frames are available in white and can be ordered in any color the customer desires. suppose that each frame is 1 inch wide. the cost of coloring the frame is $0.10 per inch. the cost of a regular frame is $0.15 per inch and the cost of a fancy frame is $0.25 per inch. the cost of putting a cardboard paper behind the picture is $0.02 per square inch and the cost of putting glass on top of the picture is $0.07 per square inch. the customer can also choose to put crowns on the corners, which costs $0.35 per crown.

write a program that prompts the user to input the following information and then output the cost of framing the picture: a. the length and width, in inches, of the picture. b. the type of the frame. c. customers choice of color to color the frame. d. if the user wants to add the crowns, then the number of crowns.

sample run:

welcome to xx framing store

enter the length and width of the picture : 10 20

choose the type of the frame , 1 or r or r ( regular ) ,

2 or f or f ( fancy ): f

enter the color to color the frame : white

enter the number of crowns : 4

amount due : $31 .30

note:

– define constants and take inputs from the user

– use appropriate control structures such as if/else and switch.

– add comments, the source code and the screen-shot of outputs are

– save the file as assign2qn6xx. java. for your submission, you need to replace

xx with your name.

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 21.06.2019 17:30
Data for which there is temporarily no room in ram is diverted to where on your computer? question 9 options: a) the paging file on the hard drive b) the system file on the hard drive c) the memory file on the hard drive d) the cpu cache
Answers: 2
question
Computers and Technology, 22.06.2019 15:30
What is a costume plot? why is it important to a film or theater production?
Answers: 2
question
Computers and Technology, 22.06.2019 20:00
Need asap assignment directions: think of an organization (business, religious institution, volunteer organization, sports team) with which you have been involved. imagine outfitting it with an it infrastructure. prepare a plan for what you would do to support outfitting it. draw a map of a network connecting all the individuals, give them pcs and printers, and lay out the design as best you can. the purpose is to begin working with these concepts, not to build a perfect network.
Answers: 2
question
Computers and Technology, 23.06.2019 22:20
What is a programming method that provides for interactive modules to a website?
Answers: 1
You know the right answer?
You have several pictures of different sizes that you would like to frame. a local picture framing s...
Questions
question
Mathematics, 15.04.2021 03:30
question
Mathematics, 15.04.2021 03:30
question
Mathematics, 15.04.2021 03:30
question
Arts, 15.04.2021 03:30
question
Mathematics, 15.04.2021 03:30
question
Mathematics, 15.04.2021 03:30
Questions on the website: 13722367