Answer to Question #4400 in C++ for Yuri

Question #4400
A program that allows you to enter a student's major and grade point average continuously until a sentinel value is entered. If the major is not one of the three offered by college or the grade point average is not within range, consider the student unassigned. Display the assigned advisor for each student or a message indicating the student unassigned. At the end of program's execution. display a count to the number of students who have been assigned to each advisor and the number who are unassigned.
1
Expert's answer
2011-10-18T12:38:49-0400
// Student'smajorandgradepointaverage.cpp : Defines the entry point for the console application.
//

#include "stdafx.h"
#include "iostream"
#include "conio.h"

using namespace std;

int _tmain(int argc, _TCHAR* argv[])
{
double studentsmajor;
double pointaverage;
int countstudentassign;
do{
cout<<"Enter a student's major:";
cin>>studentsmajor;
cout<<"Enter a student's grade point average:";
cin>>pointaverage;
if(studentsmajor==pointaverage){
& cout<<"Assigned:";
}
if(studentsmajor!=pointaverage){
& cout<<"Unassigned:";
}
cout<<"\nPress 0 to exit:\n";
}while(studentsmajor!=0);


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