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, 22.06.2019 01:00
Ap practice - performance task response the ap create performance task asks you to write about an abstraction that you developed and wrote into your code. most of the time that means identifying a function or procedure you wrote to "manage complexity" in your program. here is the actual prompt from the create performance task: 2d. capture and paste a program code segment that contains an abstraction you developed individually on your own (marked with a rectangle). this abstraction must integrate mathematical and logical concepts. explain how your abstraction manage the complexity of your program. (must not exceed 200 words) below is a segment of code from an "under the sea" program with a rectangle drawn around a portion of the code identifying an abstraction. imagine that you wrote this and are composing an ap response about how this abstraction manages complexity. (note: ignore the requirement that the abstraction integrate "mathematical and logical concepts" for this practice response. just write about managing complexity). explain how the abstraction marked with the rectangle in the code above manage complexity of this program. write your response here submit
Answers: 2
question
Computers and Technology, 22.06.2019 06:00
Pthe price of tickets in a group when a purchased in bulk can be found with the equation c=px+24 were c is the cost, p is the number of people,and x is the price per ticket. what is price of of each ticket if it costs $189 to buy tickets for 15 people ? a $8 b $24c $9d $11 show work
Answers: 1
question
Computers and Technology, 22.06.2019 16:20
It policy compliance and emerging technologies respond to the following: propose at least three control measures that organizations need to put in place to ensure that they remain complaint with emerging technologies and in a continually changing it environment. examine the correlation of effective configuration management and change control procedures to remain compliant with emerging technologies and it security changes.
Answers: 2
question
Computers and Technology, 23.06.2019 00:30
Knowing that the central portion of link bd has a uniform cross sectional area of 800 mm2 , determine the magnitude of the load p for which the normal stress in link bd is 50 mpa. (hint: link bd is a two-force member.) ans: p = 62.7 kn
Answers: 2
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
Geography, 25.09.2021 14:00
question
Mathematics, 25.09.2021 14:00
question
Social Studies, 25.09.2021 14:00
question
Mathematics, 25.09.2021 14:00
question
English, 25.09.2021 14:00
Questions on the website: 13722359