Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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:

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.

Step by Step Solution

3.37 Rating (150 Votes )

There are 3 Steps involved in it

Step: 1

import javatextDecimalFormat import javautilRandom public class RoundTableCostCalculator public stat... 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

Income Tax Fundamentals 2013

Authors: Gerald E. Whittenburg, Martha Altus Buller, Steven L Gill

31st Edition

1111972516, 978-1285586618, 1285586611, 978-1285613109, 978-1111972516

More Books

Students also viewed these Programming questions

Question

Find V1 in the network in figure. 10 n 8n3 24 V(+ -w-

Answered: 1 week ago

Question

List the three basic steps involved in setting up a corporation.

Answered: 1 week ago