Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

this is in java coding, we use eclipse in class pry Bookmarks People Tab Window Help writing a driver class in java You operate a

image text in transcribed this is in java coding, we use eclipse in class
image text in transcribed
pry Bookmarks People Tab Window Help writing a driver class in java You operate a restaurant and X c Get Homework Help With CHX Burit168/pdf/Fall%202018/Week%205/Lab05.pdf Part 1 Create test data and calculate the expected result. Input Radius Expected Results Diameter Area Circumference Implement the Circle class you designed for pre-lab. Write a program name CircleDriver that demonstrates the Circle class by asking the user for the circle's radius, creating a Circle object, and then reporting the circle's area, diameter, and circumference. Sample Output Enter the radius of a circle: 5 Area = 78.53975 Diameter = 10.2 Circumference - 31.4159 You operate a restaurant and X e bel Homework u/it168/pdf/Fall%202018/Week%205/Lab05.pdf Part 2 Create test data and calculate the expected result. Input Percent Increase Expected Output Price Book Number Sold Life of Pi Harry Potter Life of Pi Harry Potter Implement the Book class you designed for pre-lab. Sales tax would be 7.5%. Create a Java program class named Book Driver that creates two Book objects. First object is for the book "Life of Pi" priced at $13.50 and the second is for the book "Harry Potter: Goblet of Fire" priced at $22.00. Sales program should ask the user for number sold for each book and display the resulting sales amount (note: sales amount should include sales tax) for each properly labeled and indicating for which book. Then the program will ask the user for percentage increase in price for each book, and update the Book objects accordingly. Display the sales amounts (note: sales amount should include sales tax) again using the updated prices. All money amounts should be formatted with a dollar sign and two decimal places. Sample Output Enter number to buy of Life of Pi: 1 Cost for Life of Pi - $14,51 Enter number to buy of Harry Potter: 1 Cost for Harry Potter - $23.65 Enter percent increase for Life of Pi (in decimal form): Enter percent increase for Harry Potter (in decimal form): Cost for Life of Pi = $15.24 Cost for Harry Potter - $24.83 .es

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

Marketing Database Analytics

Authors: Andrew D. Banasiewicz

1st Edition

0415657881, 978-0415657884

Students also viewed these Databases questions

Question

Balance sheet, retained earnings

Answered: 1 week ago

Question

1. Let a, b R, a Answered: 1 week ago

Answered: 1 week ago

Question

Draft a proposal for a risk assessment exercise.

Answered: 1 week ago