[ad_1]
1. You are to write a simple program with two classes. One controller class anda class to hold your object definition. (Similar to what we used in class)2. Use a package in your project, the package name should be xxxprojectname.xxx is your initials taken from the first three characters of your Cal Poly emailaddress.3. Read in the following from the JOptionPane input window:a. Customer First Nameb. Customer Last Namec. Customer Phone Number (example: 9093873744)d. Number of Vehicles to be manufactured (example: 5)e. Number of fuel tanks to be mounted on the vehicle.4. Make sure the following is entered correctly, otherwise display an error messageand close the program: California State Polytechnic University, PomonaComputer Information Systems DepartmentIntroduction to Object-Oriented Programming with Javaa. The first name of the customer is not blankb. The last name of the customer is not blankc. The phone number of the customer is not blank and is 10 charactersd. The number of vehicles is between 1 and 10 (includes 1 and 10)e. The number of fuel tanks can only be (2,4,8,10, 15,20)5. Compute the cost for manufacturing vehicles using the price of $500.19 pervehicle6. Compute the cost for fuel tanks using the price of $2.15 per fuel cell.7. For this project each vehicle tank holds 12 Fuel Cells and vehicles can have morethan one tank.8. Use the following formulas to perform the calculations:Cost for manufacturing = number of vehicles * manufacturing priceCost for fuel tanks = number of vehicles * number of tanks * numberof fuel cells per tank * price of fuel cell9. Then you are to test the program using the data listed below. In the case of thefirst customer enter the data that has errors as shown in the screenshots below.The program should prompt you to reenter the data until the data is valid.First Name Last Name Phone Number of Vehicles Number of TanksHomer Simpson 9093429871 5 8Bart Simpson 9093429872 2 2Lisa Simpson 9093429873 4 15Marge Simpson 9093429874 3 4Make sure that you check that the data is valid when the user enters it, Note in the examplebelow how some data entered is incorrect the program then asks you to enter it again.Enter First NameLast NameCalifornia State Polytechnic University, PomonaComputer Information Systems DepartmentIntroduction to Object-Oriented Programming with JavaEnter PhoneEnter Number of VehiclesEnter Number of TanksDisplay the summary as followCalifornia State Polytechnic Univer
“Looking for a Similar Assignment? Get Expert Help at an Amazing Discount!”
[ad_2]Source link
“Looking for a Similar Assignment? Get Expert Help at an Amazing Discount!”
What Students Are Saying About Us
.......... Customer ID: 12*** | Rating: ⭐⭐⭐⭐⭐"Honestly, I was afraid to send my paper to you, but splendidwritings.com proved they are a trustworthy service. My essay was done in less than a day, and I received a brilliant piece. I didn’t even believe it was my essay at first 🙂 Great job, thank you!"
.......... Customer ID: 14***| Rating: ⭐⭐⭐⭐⭐
"The company has some nice prices and good content. I ordered a term paper here and got a very good one. I'll keep ordering from this website."