Question

In: Computer Science

A student is ready to graduate if his GPA is at least 2.0 and he is...

A student is ready to graduate if his GPA is at least 2.0 and he is in his fourth year. Write a C++ program that will ask the student about his GPA and what year he is currently in. The program should display a message saying either the student is ready to graduate or he still needs more schooling. This program must be in C++ and must be able to run.

Thank you and I hope you have a great day!

Solutions

Expert Solution

Here is your code...

#include<iostream>
#include<string>
using namespace std;
int main()
{
   float GPA;
   string year;
   cout<<"Please enter your GPA : ";
   cin>>GPA;
   cout<<"Please enter the year you are currently in : ";
   cin>>year;
   if(GPA>=2.0 && year=="fourth")
   {
       cout<<"You are ready to graduate.";
   }
   else
   {
       cout<<"You still need schooling.";
   }
   return 0;
}


Related Solutions

Pratt is ready to graduate and leave College Park. His future employer (Ferndale Corp.) offers the...
Pratt is ready to graduate and leave College Park. His future employer (Ferndale Corp.) offers the following four compensation packages from which Pratt may choose. Pratt will start working for Ferndale on January 1, year 1.    Benefit Description Option 1 Option 2 Option 3 Option 4 Salary $ 60,000 $ 50,000 $ 45,000 $ 45,000 Health insurance No coverage $ 5,000 $ 5,000 $ 5,000 Restricted stock 0 0 1,000 shares 0 NQO's 0 0 0 100 options Assume...
A graduate student just finished running a western blot and was shocked to see that his...
A graduate student just finished running a western blot and was shocked to see that his protein of interest was not present in any of his samples. Prior to running the western blot, he saw a band at the right molecular weight using SDS-PAGE analysis. Using your understanding of western blotting and SDS-PAGE analysis, explain these seemingly conflicting results.
5.         Ben, a graduate student, wants to write his thesis on the impact of hours of...
5.         Ben, a graduate student, wants to write his thesis on the impact of hours of study on    exam performance. His goal is to demonstrate scientifically that when he scored very          high on a recent exam it was not just the result of luck, but rather it was due to the many             hours of study he put in. He conjectured that as he studied more, he was able to do more             practice problems, and completing more...
(a). A college student is 23 years old and a recent graduate. He wants to start...
(a). A college student is 23 years old and a recent graduate. He wants to start saving for his retirement. He plans to save $2000 per year in an online stock account that pays annual return of 12%. If he sticks to the plan, how much money will he have at the age of 65? (make a time-line). (b). Suppose he starts saving for the retirement at the age of 40. If he uses the same plan above, how much...
graduate student wants to estimate the number of research participants he will see in the fall...
graduate student wants to estimate the number of research participants he will see in the fall semester. Using his data from the previous nine semesters, he tabulates a mean of 140 students per semester, although departmental records reflect a seasonal variation (i.e., population standard deviation) of 45 students. Calculate the 99% confidence interval.
Sean is getting ready to do his taxes. He is single and lives in New York...
Sean is getting ready to do his taxes. He is single and lives in New York City. Sean earned $50,000 in 2011. He reviews the following table, which shows the IRS tax rates for a single taxpayer in 2011. On Annual Taxable Income... The Tax Rate Is... (Percent) Up to $8,500 10 From $8,500 to $34,500 15 From $34,500 to $83,600 25 From $83,600 to $174,400 28 From $174,400 to $379,150 33 Over $379,150 35 Based on the IRS table,...
A professor sent his graduate student to the green house to apply treatments to potted plants.  There...
A professor sent his graduate student to the green house to apply treatments to potted plants.  There were 4 treatments and a total of 12 pots containing plants.  The professor told the student to “randomly assign pots to treatments.”  The pots were arranged on a table with 4 rows each containing 3 plants.   The graduate student put 4 tickets in a hat, one each with the numbers 1, 2, 3, and 4 written on them.   As he got to each row, he drew...
Prem Narayan, a graduate student in engineering, to market a radical new speaker he had designed...
Prem Narayan, a graduate student in engineering, to market a radical new speaker he had designed for automobile sound systems, founded Acoustic Concepts, Inc. Prem established the company’s headquarters into rented quarters in a nearby industrial park. He hired a receptionist, an accountant, a sales manager, and a small sales staff to sell the speakers to retail stores. Prem asked his accountant, Bob Luchinni, to prepare several cost-volume-profit analyses, using the information shown below. Sales price for one speaker set......................................................
Prem Narayan, a graduate student in engineering, to market a radical new speaker he had designed...
Prem Narayan, a graduate student in engineering, to market a radical new speaker he had designed for automobile sound systems, founded Acoustic Concepts, Inc. Prem established the company’s headquarters into rented quarters in a nearby industrial park. He hired a receptionist, an accountant, a sales manager, and a small sales staff to sell the speakers to retail stores. Prem asked his accountant, Bob Luchinni, to prepare several cost-volume-profit analyses, using the information shown below. Sales price for one speaker set......................................................
Adriano now feels that he is almost ready to start setting up his dance teaching business,...
Adriano now feels that he is almost ready to start setting up his dance teaching business, however, there is only one more issue he is concerned about. Adriano will be investing a significant amount of his time, efforts and money into opening the business and he is worried whether his business will perform according to his expectations and be a viable venture or not. Adriano is almost ready to start setting up his dance teaching business, however, there is still...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT