Question: 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  Need to solve this program which will run exactly like sample

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!