Answer to Question #143958 in C for bhumika

Question #143958
Your group visits a shop to get your assignment typed and printed. Draw a flowchart to calculate the bill of a job work based on the following rates.
• Rate of typing is Rs. 3/- per page
• Rate of Printing is Rs. 5/- per page
User should enter the number of pages in the assignment and no. of print out copies, your
group wants
1
Expert's answer
2020-11-12T14:19:28-0500

flow chart is given by,

let x is number pf pages we want to print

and p be the total price per page,

let y be the number of copies we want

taking input x,y>> scanf("%d%d",&x,&y)>>p=3x+5x>>Total printing cost=y"\\times5x"


C code:

#include<stdio.h>
int main()
{int x,n,p;
 printf("Enter the number of pages in assignment and number of copies you want");
 scanf("%d%d",&x,&n);
 p=3*x+(n-1)*3+5;
 printf("the price for the same is %d rupees",p);
 return 0;
 
}

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS