Question
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
- 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
- (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,
Language is java
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started