Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

in java and I'll give a thumbs up Happy R Us makes custom emoji signs. They are sphere-shaped with an emoji on one side and

in java and I'll give a thumbs up image text in transcribed
image text in transcribed
Happy R Us makes custom emoji signs. They are sphere-shaped with an emoji on one side and text on the other. The company would like a program that calculates the surface area, volume, and total cost of the signs their customers would like to order. The total cost consists of the volume of neon gas to fill the sign, the surface area or amount of plastic to construct the sign, the number of letters in the message for the sign, and the emoji selected for the sign. You can see the look of both sides below. The program will be called EmojiSign.java. The user will enter the radius of the sphere that they want, r, and the string that they want to display on one side of the sign. The user will also be able to choose which emoji they want on the other side of the sign. They have four choices: The emojis with glasses, Cool and 4 eyes, cost $500. The emojis without glasses, Wink and Smile, cost $450. The program will calculate the surface area in square feet and volume in cubic feet of the emoji sign using the formula: - surfaceArea =42 - volume =34r3 The program will count up the number of non-blank characters in the string for the sign. The cost per character for the text on the sign is $4.50. The cost for the neon needed in the sign is $3.45 per cubic foot and the cost for the plastic on the surface of the sign is $2.75 per square foot. The program will display the total cost of the sign as the output for this program. This cost will be rounded to two decimal places using print formatting ( printf()). After the first calculation is performed, the program should ask the user if they would like to continue. They will type in the word "yes" in any case if they wish to continue the program. They can enter anything else to quit. If they continue, they will then be prompted to enter a new radius of the sphere, string for the text message, and which emoji they would like on their next sign. Here is a sample run: Enter the radius: 10 Enter the string you would like on your sign: Hello Which emoji would you like on your sign: Smile Your sign with "Hello" will cost $18,379.58 Would you like to create another sign? Enter yes to continue. yes Enter the radius: 15 Enter the string you would like on your sign: I love Computer Science Which emoji would you like on your sign: Cool Your sign with "I love Computer Science" will cost $57,138.67 Would you like to create another sign? Enter yes to continue. no

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions

Question

Explain what is meant by a kinked demand curve. Why is it kinked?

Answered: 1 week ago

Question

Provide examples of Dimensional Tables.

Answered: 1 week ago