Question: Write a program using c++ language. A father would like to encourage his sons to perform better in their studies. The father of Rashed and
Write a program using c++ language.
A father would like to encourage his sons to perform better in their studies. The father of Rashed and Hashem - the Twin - will award one of them a prize according to their GPA (). The one who gets the higher GPA wins the award. Constraints 50 < R, H <100 Input Format Input consists of two floating-point numbers in a single line R and H R: the GPA of Rashed H the GPA of Hashem Output Format A string represents the name of the winner or both names if a tie occurs Sample #1 Input 87.3 85.9 Output Rashed Explanation the first gpa for rashed is a grater than his brother so he is the winner Sample #2 Input 96.5 98.6 Output Hashem Explanation the first gpa for rashed is a less than his brother so his brother is the winner Sample #3 Input 98 98 Output Rashed Hashem Explanation the first gpa for rashed is a equal to the gpa of his brother
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
