subject
Computers and Technology, 28.01.2020 09:31 yeimi12

Need asap . i need an example on how to do this right.

the second programming project involves writing a program that computes the sales tax for a collection of automobiles of different types. this program consists of four classes. the first class is the automobile class, which contains the automobile’s make and model, and purchase price, which is specified in whole dollars. it should have three methods:

1. a constructor that allows the make and purchase price to be initialized.

2. a method named salestax that returns the base sales tax computed as 5% of the sales price.

3. a tostring method that returns a string containing the make and model of the automobile, the sales price, and the sales tax, appropriately labeled.

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 11:00
in 2007, floridians died in alcohol-related collisions.a.  501b.  1,051c.  5,015d.  10,839
Answers: 1
question
Computers and Technology, 22.06.2019 12:10
1. declare a constant named cents_per_pound and initialize with 25. 2. get the shipping weight from user input storing the weight into shipweightpounds. 3. using flat_fee_cents and cents_per_pound constants, assign shipcostcents with the cost of shipping a package weighing shipweightpounds.
Answers: 2
question
Computers and Technology, 23.06.2019 15:20
In a game with three frames, where will the objects on layer 1 appear? a. next to the play area b. in the middle of the game c. behind everything else d. in front of everything else
Answers: 1
question
Computers and Technology, 23.06.2019 21:20
In microsoft word, when you highlight existing text you want to replace, you're in              a.  advanced mode.    b.  automatic mode.    c.  basic mode.    d.  typeover mode
Answers: 1
You know the right answer?
Need asap . i need an example on how to do this right.

the second programming project i...
Questions