Write a Java Program that would solve the problem below. As this is a problem set, the
Fantastic news! We've Found the answer you've been seeking!
Question:
Write a Java Program that would solve the problem below. As this is a problem set, the following is required:
- Header information, which should include:
- Your name (Megan)
- Teacher's name (Mr. Allen)
- Course code (ICS 3U1)
- Date of final edit (September 27)
- A description of the program
- Comment lines
- Explaining the purpose of each variable
- Explaining lines of code that calculates and/or manipulates value of a variable
- Explain any code that may be hard for other programmers to read and/or understand.
- Error Log
- List any major errors encountered, and solution to this errors
- No need to include errors such as missing characters, wrong caps, missing spaces, brackets etc.
Do not use loop structure.
Problem Description:
Massaro's Random Round Table Artisan Furnishment Co. is looking for a programmer who can write a program to calculate how much to charge a customer for a round table based on the customer's provided size requirement.
- The program shall ask for the diameter (in cm) of the table.
- The program would then generate a random whole number between 5-10, which is the number of tables the customer must purchase.
- The program would then generate a random price per cm squared within the range of $10.99 to $13.99.
- The program would then generate a random discount between 15 - 25%.
- The program would then calculate the area of the table using the constant Math.PI, and calculate the cost of all the tables, apply tax to the total, and display the final value formatted to two decimal places with the dollar sign ($) before the value.
Related Book For
Income Tax Fundamentals 2013
ISBN: 9781285586618
31st Edition
Authors: Gerald E. Whittenburg, Martha Altus Buller, Steven L Gill
Posted Date: