0 like 0 dislike
1.4k views

Question 10: Please write a program that can calculate tax 7% (0.07) of a product price, then outputs the tax and a total price including the tax.

Hint:

*Use %.2f for two decimal points*

*Printf a new line between the tax and a total price including tax*

Input1

80

Output1

5.60
85.60

 

Input 2

452

Output2

31.64
483.64

 

[Exam] asked in Final examination by (5.9k points)
ID: 41975 - Available when: Unlimited - Due to: 2018-01-17 16:30

edited by | 1.4k views

22 Answers

0 like 0 dislike
Hidden content!
#include * * *** *** *
#include * ********

int main(int argc, char *argv[])
{
* ** ** * * * * ***** ** * a;
* ** * *** * ** *** * ***** ******** * * *
** **** * * **** ** ** * * ***** ** **
* ** * **
* *** * **
* * *** * ** * * * * * *** * * *  
* * ** * ** * *** 0;
}
100/100 answered by (227 points)
0 0
Case 0: Correct output
Case 1: Correct output
Case 2: Correct output
Case 3: Correct output
0 like 0 dislike
Hidden content!
** *** ** * *
***** * * ****

int main(){
* * * float ** *
* * * * **
* **** * *** * * * * * * * * *****
******** *** **
**** ** **** t=n*0.07;
* * ** *   N=n+t;
* *** * * *
**** * **** * * * * * *
}
answered by (244 points)
0 0
Case 0: Wrong output
Case 1: Wrong output
Case 2: Wrong output
Case 3: Wrong output
Welcome to Peer-Interaction Programming Learning System (PIPLS) LTLab, National DongHwa University
English 中文 Tiếng Việt
IP:172.70.178.173
©2016-2024

Related questions

0 like 0 dislike
21 answers
[Exam] asked Jan 13, 2018 in Final examination by nat236919 (5.9k points)
ID: 41968 - Available when: Unlimited - Due to: Unlimited
| 1.4k views
0 like 0 dislike
30 answers
[Exam] asked Jan 13, 2018 in Final examination by nat236919 (5.9k points)
ID: 41942 - Available when: Unlimited - Due to: 2018-01-17 16:30
| 1.7k views
0 like 0 dislike
26 answers
[Exam] asked Jan 13, 2018 in Final examination by nat236919 (5.9k points)
ID: 41937 - Available when: Unlimited - Due to: 2018-01-17 16:30
| 860 views
0 like 0 dislike
21 answers
[Exam] asked Jan 13, 2018 in Final examination by nat236919 (5.9k points)
ID: 41935 - Available when: Unlimited - Due to: 2018-01-17 16:30
| 641 views
0 like 0 dislike
23 answers
[Exam] asked Jan 13, 2018 in Final examination by nat236919 (5.9k points)
ID: 41926 - Available when: Unlimited - Due to: 2018-01-17 16:30
| 812 views
12,783 questions
183,443 answers
172,219 comments
4,824 users