Question
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:
- Computes the total cost of an order.
- 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.
- 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.
|
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:
- This assignment is INDIVIDUAL effort.
- You must apply the object oriented programming concepts. Provide constructor method for the class you build. Program must be in console application.
- Be sure to perform adequate testing at the end of each development step.
- Report should contain:
- Program description
- Flowchart OR pseudo-code
- Output Screen shots
- Appendix
- Print source code.
- References
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