Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Need to solve this program which will run exactly like sample run .. Thanks Project 2 Using Classes and Objects (Chapter 3) Duc: sec calendar

Need to solve this program which will run exactly like sample run .. Thanks image text in transcribed
Project 2 Using Classes and Objects (Chapter 3) Duc: sec calendar Two files to be submitted: . Algorithm of method main (AlgorithmOfMain.txt, no credit if this is missing) Java Source code (CarpetBill.java- no credit if this has syntax errors) Write a program that creates customers' bills for a carpet company when the information below is given: irst name .Length and width of the carpet in feet The customer's last name, f . Carpet price per square foot The Customer ID is composed of the capitalized first letter of the user's first name, followed by the first five characters of the uscr's last name (Assuming the user-entered last name is at lcast five-character long), followed by a random two-digit number in the range 10 to 99(inclusive). The tax rate is 8.5%, make this a named constant and use it in your program. The input data consist of a set of 2 integers representing the length and width, and a floating-point number representing the carpet price per square foot. The program is to prompt the user for the input as shown below Display leading zeroes for all numeric values except the tax. Print the percentage sign for the tax. Print the decimal numbers to 2 decimal places. Make sure the decimal points for the two columns are aligned. Display all values using the same number of digits as the sample runs. Display the dollar-signs as shown. (Your sample runs must follow the exact format.) Sample Run 1 Enter your first name: John Enter your last name Smith Enter length of room (feet): 23 Enter width of room (feet) 13 Enter cost per square foot: 14.20 CUSTOMER Last Name First Name ID Smith John JSmith45 MEASUREMENT Length Width Area 023 feet 013 feet 299 square feet CHARGES Description Cost/Sq.Ft. Charges 14.20 Carpet Tax $4245.80 0360.89 8.50% Total $4606.69

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

JDBC Database Programming With J2ee

Authors: Art Taylor

1st Edition

0130453234, 978-0130453235

More Books

Students also viewed these Databases questions