Question

In: Computer Science

Wilson Car Repair must record information about customer’s vehicles that are coming in for repair. A...

Wilson Car Repair must record information about customer’s vehicles that are coming in for repair. A program is needed to record the customer name, phone number, Type of work done, type of car, the number of labor hours, and the total amount for the parts, and a grand total amount for the repair of the vehicle. A 10% discount will be given if paid in cash. If the customer is a member of the “Wilson Car Repair Savings Club,” they get a 20% discount. You can adjust this project in any way you want. Just make sure you are doing some calculations.

You can adjust this project in any way you want.

You can make it easier or more challenging. Just make sure you are doing some calculations.

Be sure to submit an IPO along with your input screen and your output screen. You can draw screens or use Visio to make them.

Solutions

Expert Solution

import java.util.Scanner;

class Main

{

public static void main(String[] args)

{

//variable declaration

String name,ph,work_type,pay_mode,club_member;

double parts_amt,labour_hour;

double tp,grandpay,dis1,dis2;

grandpay=0.0;

tp=0.0;

dis1=0.0;

dis2=0.0;

Scanner sc=new Scanner(System.in);

//accepting the detals from user

System.out.println("Wilson Car Repair Club");

System.out.println("Enter the Customer name");

name=sc.nextLine();

System.out.println("Enter the Customer phone number");

ph=sc.nextLine();

System.out.println("Enter the Type of work");

work_type=sc.nextLine();

System.out.println("Enter the Labour Hour");

labour_hour=sc.nextDouble();

System.out.println("Enter the Total amount for the parts");

parts_amt=sc.nextDouble();

System.out.println("Amount to be paid by Cash or card");

pay_mode=sc.next();

System.out.println("Is the Customer Member of Wilson Car Repair Savings Club(Yes or No)");

club_member=sc.next();

//calculating discount if mode is cash

if(pay_mode.equalsIgnoreCase("Cash"))

dis1=0.1;

//calculating discount if customer is club memeber

if(club_member.equalsIgnoreCase("Yes"))

dis2=0.2;

//calculating the Total cost

tp=parts_amt+labour_hour*8;

grandpay=tp-((dis1*tp)+(dis2*tp));

//displaying the result

System.out.println("Customer Name : "+name);

System.out.println("Phone Number : "+ph);

System.out.println("Work Type : "+work_type);

System.out.println("Payment Mode : "+pay_mode);

System.out.println("Member of Wilson Car Repair Savings Club : "+club_member);

System.out.println("Total Payment : "+grandpay);

}

}

OUTPUT


Related Solutions

Tom is considering buying a used car but he is concerned about the repair costs. To...
Tom is considering buying a used car but he is concerned about the repair costs. To investigate how repair cost is related to the age of a car, he has collected the following data: Repairs (y)   Age (x) ($) (months) 327.67 110 376.68 113 392.52 114 443.14 134 342.62 93 476.16 141 324.74 115 338.98 115 433.45 115 526.37 142 362.42 96 448.76 139 335.27 89 350.94 93 291.81 91 467.80 109 474.48 138 354.15 83 420.11 100 416.04 137...
You have been given the following information about a motel for the coming year:                             &
You have been given the following information about a motel for the coming year:                                                   (A)            Occupancy Forecast         75% (B)            Rooms department variable cost per occupied room is estimated to be     $7.75                                        (C)            Owners' investment          $800,000 (D)            Desired after tax yield on owners' investment        15% (E)             Current income tax rate                  30% (F)             The motels fixed costs for the coming year were anticipated to be                 825,000                                   (G)            The motel has this many rooms available to rent     100...
Designing and refining an Entity-Relationship Model A company wants a simple database to record information about...
Designing and refining an Entity-Relationship Model A company wants a simple database to record information about ticket sale for theatre performances. They describe the key elements of their requirements in the following points: • Customers have a name, phone number, a credit card no, and a unique customer number. • Customers can attend many performances, and each performance can have many customers attending. • Each performance of a show is on at a specific date and time, at a venue....
Case about Asymmetric Information Assume that you are a seller in the used car market. Your...
Case about Asymmetric Information Assume that you are a seller in the used car market. Your car is a high quality one(plum), but in the market also has bad sellers who sell low-quality cars( lemon) I will have an incentive to try to convey the fact that I have a good car to the potential purchasers. Questions: What actions can I do to signal customer that I offer a plum(good quality) rather than a lemon? Please give me as many...
Design and implement an interactive program named trip.c that collects information about the user's car and...
Design and implement an interactive program named trip.c that collects information about the user's car and planned travel, and reports back useful information. The dialog below shows exactly what data should be collected as input and reported as output. Some Hints to get started /* Not tested not complete code Just to get you started */ #include /* FUNCTION PROTOTYPES */ void WelcomeMessage(); void AskUserForInput(); /* ask and check whether user wants to continue if wants to continue gather information...
In July of this year, Stephen started a proprietorship called ECR (which stands for electric car repair). Stephen has produced the following financial information for this year.
In July of this year, Stephen started a proprietorship called ECR (which stands for electric car repair). Stephen has produced the following financial information for this year.ECR collected $81,000 in cash for repairs completed during the year and an additional $3,200 in cash for repairs that will commence after yearend.Customers owe ECR $14,300 for repairs completed this year, and while Stephen isn’t sure which bills will eventually be paid, he expects to collect all but about $1,900 of these revenues...
Define a "major customer" of a company. What information must be disclosed about the major customers?...
Define a "major customer" of a company. What information must be disclosed about the major customers? Why is the disclosure of this information important? Are the names disclosed? Should they be?
what information must the leader declineate or make available to staff about the organization and organizational...
what information must the leader declineate or make available to staff about the organization and organizational decisions as afirst step in engaging with them in both responding to the organization and advancing both personal and organizational agendas?
Consider a database containing information about all the car accidents between 1997 and 2005, including the...
Consider a database containing information about all the car accidents between 1997 and 2005, including the cars involved and their owners. The database has the following tables: Car (license, year, make, model); Accident (license, accident date, damage_amount zipcode); Owner (SSN, license, name, address, zipcode); // zipcode in Accident is the place where accident took place // assume that the same car does not get into an accident twice in a day // assume each owner has only one licensed car...
A NAPA auto parts supplier wants information about how long car owners plan to keep their...
A NAPA auto parts supplier wants information about how long car owners plan to keep their cars. a simple random sample of 31 car owners results in a mean of 7.01 years and a standard deviation of 3.74 years, respectively. Assume the sample is drawn from a normally distributed population. a) Find a 95%confidence interval estimate of the mean. b) Find a 95% confidence interval estimate of the population standard deviation. c) If several years pass and you want to...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT