Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

  1. (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

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

Online Systems For Physicians And Medical Professionals How To Use And Access Databases

Authors: Harley Bjelland

1st Edition

1878487442, 9781878487445

More Books

Students also viewed these Databases questions

Question

What is meant by time-series data? Give an example.

Answered: 1 week ago

Question

denigration of emotional outbursts; being reserved;

Answered: 1 week ago