Answer to Question #264323 in C++ for fiona

Question #264323

Using while or do while. An ordinary colored printer can print 12 pages per minute. Make a program that will input number of pages, and compute the time to complete the print out. Consider the minutes and hour of your display. Your program will terminate if you input zero in the number of pages.

(minutes =no.pages /12) Ex: Input pages : 720

Minutes = 60 Hour= 1


1
Expert's answer
2021-11-11T07:31:53-0500
#include<iostream>
using namespace std;
int main()
{
	int num,time,hour;
	cout<<"Enter the number of pages: ";
	cin>>num;
	time=num/12;
	hour=time/60;
	cout<<"Minutes= "<<time<<" Hour= "<<hour;
}

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