subject

Write a Console program, let users to enter prices calculate subtotal, tax, and total. - Delcare variable data type as decimal (6 variables needed)
decimal apple;

- Conver string to decimal from input
apple = Convert. ToDecimal(Console. ReadLine());

- Do addition for subtotal

- Multiplication for tax (0.065M) --- M or m stands for money value, read page 94.

- Addition for total

- You need to show only two digits after decimal point
Console. WriteLine(" Subtotal: ${0}", String. Format("{0:0.00}", subTotal));

blank line: Console. WriteLine("")

Console. Write(" Apple: $");
apple = Convert. ToDecimal(Console. ReadLine());

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 23:30
Worth 50 points answer them bc i am not sure if i am wrong
Answers: 1
question
Computers and Technology, 24.06.2019 03:00
Click the "draw structure" button to activate the drawing utility. draw two diastereomers of (1z,4r)−1,4−dimethylcyclodecene and name them, including (e)/(z) and (r)/(s) notation. part 1 out of 4 draw the diastereomer containing a chiral center with s configuration here. window open
Answers: 1
question
Computers and Technology, 24.06.2019 07:40
What type of multimedia are live news feeds? live news feeds are examples of multimedia.
Answers: 2
question
Computers and Technology, 24.06.2019 11:30
Convert 11001110(acdd notation) into decimal
Answers: 2
You know the right answer?
Write a Console program, let users to enter prices calculate subtotal, tax, and total. - Delcare va...
Questions
question
Mathematics, 26.07.2021 22:40
question
Mathematics, 26.07.2021 22:40
question
Mathematics, 26.07.2021 22:40
question
Mathematics, 26.07.2021 22:40
question
Mathematics, 26.07.2021 22:40
question
English, 26.07.2021 22:40
question
Mathematics, 26.07.2021 22:40
Questions on the website: 13722362