Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

SCENARIO: JavaMagic Coffee Question 1 JavaMagic Coffee Outlet runs a catalog business. It sells only one type of coffee beans, harvested exclusively in the remote

SCENARIO:

JavaMagic Coffee

Question 1

JavaMagic Coffee Outlet runs a catalog business. It sells only one type of coffee beans, harvested exclusively in the remote area of Irian Jaya. The company sells the coffee in 200 gram bags only, and the price of a single 200 gram bag is RM5.50. When a customer places an order, the company ships the order in boxes. The boxes come in three sizes; the large box holds 20 bags of 200 gram, the medium 10 bags, and the small 5 bags. The cost of a large box is RM 4.80; a medium box, RM 3.00; and a small box, RM 1.00. The order is shipped using the least number of boxes. For example, the order of 52 bags will be shipped two large boxes, one medium and one small, 52 bags = 2 L + 1M + 1S

Develop an application that will do the following task:

  1. Computes the total cost of an order.
  2. Accept the date when the order is placed and display the expected date of arrival. The expected date of arrival is two weeks (14 days) from the date of order.
  3. Use any appropriate technique for input and output. Display the output in the following format:

Question 2

JavaMagic Coffee Outlet decided to give discounts to volume buyers. The discount is based on the following table:

Order Volume

Discount

>= 25 bags

5% of total price

>= 50 bags

10% of total price

>= 100 bags

15% of total price

>= 150 bags

20% of total price

>= 200 bags

25% of total price

>= 300 bags

30% of total price

Note: The discount applies to the cost of beans only.

Number of Bags Ordered: 52 RM 286.00

Discount: 10% = RM 28.60

Boxes Used:

  1. Large = RM 9.60

1 Medium = RM 3.00

1 Small = RM 1.00

=======================

Your total cost is: RM 271.00

Date of Order: November 1, 2020

Expected Date of Arrival: November 15, 2020

Figure above is an example of the formatted output. You are expected to retain all necessary information as displayed using your own choice of screen design

TASKS:

  1. This assignment is INDIVIDUAL effort.
  2. You must apply the object oriented programming concepts. Provide constructor method for the class you build. Program must be in console application.
  3. Be sure to perform adequate testing at the end of each development step.
  4. Report should contain:
    1. Program description
    2. Flowchart OR pseudo-code
    3. Output Screen shots
    4. Appendix
      • Print source code.
    5. References

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

=+How might these stem from country and regional cultures?

Answered: 1 week ago