write a program that reads astudent number and the hours that the student has completed,and prints his or her classification.a student's classification is based on the following table
freshman Hours<30
sophomore 30<=hours<60
junior 60<=hours <90
senior 90<=hours
1
Expert's answer
2012-12-20T07:44:37-0500
#include <math.h> #include "iostream" using namespace std;
int main() { int i; float s=0,k,h; cout<<"Enter the hours : "; cin>>i; if(i<30) cout<<"freshman"<<endl; else if(i<60 &&i>30) cout<<"sophomore "<<endl; else if(i<90 &&i>60) cout<<"junior "<<endl; else if(i>90) cout<<"senior& "<<endl;
Numbers and figures are an essential part of our world, necessary for almost everything we do every day. As important…
APPROVED BY CLIENTS
"assignmentexpert.com" is professional group of people in Math subjects! They did assignments in very high level of mathematical modelling in the best quality. Thanks a lot
Comments
Leave a comment