Hi fellow Programmers.
Hello it is Semma I have a question. How do I represents length
of time in minutes and outputs two numbers that represent the
same length of time in hours and minutes in a message using the
user's name. Here is an example of the program working:
What is your name? Nancy
What time in minutes would you like converted ? 750
Nancy, 12 hours and 30 mintes correspond to 750 minutes.
#include<iostream.h>
#include "c:\\ftsoft\\include\\tstring.h"
void main()
{
// String input
String (G)name;
String (L)name;
String (M)Program;
String (S)Identification;
cout <<"What is your name"<<endl;
cin >> (G)name;
cout <<"What is your last name<<endl";
cin >>(L)name;
cout <<"Program of study"<<endl;
cin >>Program;
cout <<"Student Identification"<<endl;
cin >> (S)Identification;
cout "Would you like to convert time to minutes...."<<endl;
cin >>(M)Conversion;
// Time Conversion Calculations
double (M)Conversion;
Conversion Hours = t / 60;
Conversion Mins = t % 60;
Thank you.......(is this correct).