![subject](/tpl/images/cats/informatica.png)
Computers and Technology, 29.01.2021 18:40 ZachLaVine2016
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](/tpl/images/cats/User.png)
Answers: 3
![](/tpl/images/ask_question.png)
![](/tpl/images/ask_question_mob.png)
Other questions on the subject: Computers and Technology
![image](/tpl/images/cats/informatica.png)
Computers and Technology, 24.06.2019 11:30, AnwarWeirdLol8811
Why is body language an important factor in a business meeting
Answers: 1
![image](/tpl/images/cats/informatica.png)
Computers and Technology, 24.06.2019 17:30, mariahdelossantos031
Which computer network component connects two different networks together and allows them to communicate? a is a node (or a device) that connects two different networks together and allows them to communicate.
Answers: 2
![image](/tpl/images/cats/informatica.png)
Computers and Technology, 24.06.2019 22:00, ivethzurita0425
What is a number system, and what is the total number of digits used in this system called? a number system is a system that uses different (options: a) numbers b) symbols c) codes d) digits e) alphabets) to represent different numbers. the total number of digits used in a number system is known as its (options: 1) processor 2) converter 3) radix 4) least significant digit 5) most significant digit)
Answers: 1
You know the right answer?
Write a Console program, let users to enter prices calculate subtotal, tax, and total.
- Delcare va...
Questions in other subjects:
![Konu](/tpl/images/cats/istoriya.png)
![Konu](/tpl/images/cats/mat.png)
Mathematics, 03.05.2020 13:33
![Konu](/tpl/images/cats/mat.png)
Mathematics, 03.05.2020 13:33
![Konu](/tpl/images/cats/mat.png)
Mathematics, 03.05.2020 13:33
![Konu](/tpl/images/cats/mat.png)
![Konu](/tpl/images/cats/mat.png)
Mathematics, 03.05.2020 13:33
![Konu](/tpl/images/cats/mat.png)
Mathematics, 03.05.2020 13:33
![Konu](/tpl/images/cats/mat.png)
Mathematics, 03.05.2020 13:33
![Konu](/tpl/images/cats/mat.png)
Mathematics, 03.05.2020 13:33