Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

I need help with these 2, in JAVA. Thank you! Question 1 (60 points): Valentine Day Shopping 1.1 (40 pts) SHSU@ACM, the student chapter is

I need help with these 2, in JAVA. Thank you!
image text in transcribed
image text in transcribed
Question 1 (60 points): Valentine Day Shopping 1.1 (40 pts) SHSU@ACM, the student chapter is going to sell special Valentine gifts to our campus community with a special delivery for the "Secret Admirer (customer). They charge $6.25 for a package of roses that contains five roses, or individual sale is available on one rose that is not part of the package with the charge of 1.50 dollars. Write a program that prompts the user to enter the number of roses that the customer wants to buy, then display the number of package(s) and individual rose(s) and the total cost of the order. Here is the sample as an output: The number of roses you ordered: 12 The number of package(s): 2 The number of individually bough rose(s): 2 The total cost: $15.50 1.2 (20 pts) Modify the program 1.1 with the following: Any order that is over $30, the SHSU@ACM applies 10% off. If the order cost exceeds $25, it will be free for delivery, otherwise the flat delivery rate $1.50 will be added to total cost of the order. Display the total charge of the order including delivery, Note: If you write the code with modification, then just submit that java program. You don't need to submit 1.1 and 1.2 individually. Your file will have the following documentation header: @Title: Purpose: Author: Date: @Version: _ LastNameFirstNameValentineShop To get familiar with simple calculations and comparison in Java your last first name) (today's date) 1.0 Question 2 (40 points): Chocolate Bill Write a program that asks the user to enter the types of dark chocolate and the number of packages purchased at the SHSU@ACM freshly made store. Make sure that you display the following chart for the user to make the selection. The plain base chocolate cost $5.00. The flavor and sweetness can be added to add on various rate. Chocolate Intensity Percentage 1 - 25% 26 - 50% 51 - 75% 76 - 95% Flavor & Sweetness Super Sweet Strong Sweet Mild Sweet Minimum Sweet Cost Rate 10% 15% 20% 25% - *Note: If there are more than 6 package purchased, apply 25 percent for the total bill. Your program needs to compute the sale amount (before adding tax) and the tax amount on a bill. The tax should be 8.25 percent of the total charge. Write a program that display the chocolate base charge per package of 3.5 oz, prompts the user to enter the chosen Flavor & Sweetness, number of chocolate that the customer wants to buy, then display the number of chocolate ordered, total base charge, additional cost, tax, and the total cost of the order. Here is the sample as an output: Chocolate Intensity Percentage 1 - 25% 26 - 50% 51 - 75% 76 - 95% Flavor & Sweetness Super Sweet Strong Sweet Mild Sweet Minimum Sweet Cost Rate 10% 15% 20% 25% Chocolate Base Charge: $5.00 Flavor & Sweetness: Super Sweet The number of chocolate ordered: 2 Base Charge: $10.0 Additional Cost: $1.0 Tax: $0.91 The total cost: $11.91

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered 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

Students also viewed these Databases questions

Question

4 4

Answered: 1 week ago