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

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 04:30, zetrenne73
How can you know if the person or organization providing the information has the credentials and knowledge to speak on this topic? one clue is the type of web site it is--the domain name ".org" tells you that this site is run by a nonprofit organization.
Answers: 2
image
Computers and Technology, 22.06.2019 11:40, silviamgarcia
Pthreads programming: create and terminate a thread write a c++ program that creates a thread. the main will display a message “hello world from the main”. the main will create a thread that will display a message “hello world from the thread” and then terminates with a call to pthread_exit()
Answers: 3
image
Computers and Technology, 22.06.2019 15:30, gudon986732
When creating a budget, log fixed expenses before income. after income. after savings. at the top.
Answers: 1
image
Computers and Technology, 23.06.2019 13:00, alexacarillo
In excel - calculate the actual increase/decrease from first quarter to the second quarter then subtract subtract first quarter value from second quarter total then divide result by first quarter value
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 in other subjects: