Ask Question, Ask an Expert

+61-413 786 465

info@mywordsolution.com

Ask Computer Engineering Expert

You need help with this program IN JAVA!!

This project will be a Paint Calculator that gives the customer the area in square feet to be painted. You will store the customer name, and details about each room in the customer's house.

From that information, you will calculate the wall area of each room and a total for the whole house. The data will need to be stored in a file so that you can retrieve information for each customer's paint requirements.

This project has these requirements:

1. Assume you are creating this program for a paying customer, and therefore it should look, act, and be professional.

2. Assumptions: No more than 10 customers with a maximum of 4 rooms each. Make sure your code is flexible and can handle 1-10 customers and each customer can have 1-4 rooms. The data will be written to and read from a file named: "CustomerData.txt"

3. It is assumed that all measurements are in feet and that each room is a rectangle with a given height. Do not worry about areas in the room that would not be painted such as ceiling, floor, doors, windows, etc.

4. All output must be formatted in a logical straightforward format. All input should have proper prompts for the user and checking for valid input.

5. On start-up, the program should read in any existing data from the file "CustomerData.txt". You can only read from the file once at start-up and can only write to the file when the user selects user item 2. "Save All Data"

6. You must use parallel arrays to store the data. (Extra Credit use an array of objects to store the data)

7. Data to be stored for each customer:

1. Customers Name

2. Room Name

3. Length of the room

4. Width of the room

5. Height of room

8. You must create a looping menu system resembling the following:

1. Create Customer - allow user input of all items in requirement 7 above. Input must allow measurements in feet up to 1 decimal place i.e. Length = 6.5.

2. Save All Data

3. Print Customer Details - allow input of 1 customer name and print out the customer name on 1 line then the details of each room including area on separate lines. The final line should be the total area for the customer.

4. Print All Unique Customer Names

5. Delete Customer - input customer name and delete that customer's data from the file and current data in memory.

6. Extra Credit - Sort Data - sort the data by customer name and also sort the data before it is stored in the file.

9. The program must be modular using at least 2 classes including 1 class that reads in and takes care of the customer's details and another class that deals with input/output from the file IN JAVA!!

Computer Engineering, Engineering

  • Category:- Computer Engineering
  • Reference No.:- M93066344

Have any Question?


Related Questions in Computer Engineering

We can sort a given set of n numbers by first building a

We can sort a given set of n numbers by first building a BST containing these numbers (using insertion operations on each element one by one), and then printing the numbers by an inorder traversal. What are the worst cas ...

Question when setting quotas for disk space what are the

Question : When setting quotas for disk space, what are the two tools for enabling and configuring quotas? And which of the two are the more flexible? When creating a new share, what is the configuration option that enab ...

Question suppose that you have a set of n files that have

Question : Suppose that you have a set of n files that have to be copied on 1GB USB drives. You can assume that the file sizes are known and always less than or equal to 1GB. The objective is to use the minimum possible ...

A supermarket awards coupons depending on how much a

A supermarket awards coupons depending on how much a customer spends on groceries. For example, if you spend $50, you will get a coupon worth eight percent of that amount. The following table shows the percent used to ca ...

Suppose alice shares a secret block cipher key kab with bob

Suppose Alice shares a secret block cipher key, K_AB with Bob, and a different secret block cipher key, K_AC with Charlie. Describe a method for Alice to encrypt an m-block message such that it can only be decrypted with ...

What are the characteristics of perfect competition and

What are the characteristics of perfect competition, and does is exist in the real world?

Question write 1 page that respond to the following

Question: Write 1 Page that respond to the following questions with your thoughts, ideas, and comments. This will be the foundation for future discussions by your classmates. Be substantive and clear, and use examples to ...

Question need to summarize 2 articles on banking data

Question: Need to summarize 2 Articles on Banking DATA Breach (2 pg per article) - Provided Need 2 Implementations on those articles (2 implementation per article & 2 page for each implementation) - How can it be improve ...

Suppose a record has the following fields in this order a

Suppose a record has the following fields in this order: A character string of length 15, an integer of 2 bytes, a SQL date, and a SQL time (no decimal point). How many bytes does the record take if: Fields can start at ...

Bierco is a beer company based in germany you purchased the

BierCo is a beer company based in Germany. You purchased the stock in 2011 for 100 Euros when the exchange rate was 1.4 EUR/ USD. Today BierCo's price is 120 Euros and the exhange rate is 1.12 EUR/USD. What is the dollar ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As