Lab 2 B
Lab 2 B
State Finished
Completed on Wednesday, 19 June 2024, 7:38 PM
Time taken 48 mins 8 secs
Marks 20.00/20.00
Grade 100.00 out of 100.00
Name 730422243022 CHANDRU S
Question 1 Write a java program which performs the following.
Correct
For example:
Input Result
155 85000 Green 2200 Enter Speed,regularPrice, color, weight for Truck
180 120000 White 7 Truck Price 76500.00
175 75000 Grey 1998 Enter Speed,regularPrice, color, length for Sedan
5000 Sedan Price 108000.00
155 50000 Yellow Enter Speed,regularPrice, color, year, manufacturerDiscount for
Hatchback
Hatchback Price 70000.00
Enter Speed,regularPrice, color for Car
Basic Car Price 50000.00