4,
5,
6,
0,
your
your
your
your
program
program
program
program
should
should
should
should
print
print
print
print
the
the
the
the
message
message
message
message
"Breakfast".
"Breakfast".
"Breakfast".
"Patience
Question 2) Assume all first semester students have 4 courses: CSE110, ENG091, M
AT110, PHY111.
Credits for these courses are 3, 0, 3, 3 respectively.
Take the grades of four courses from the user (out of 4.0 scale) and then print
the GPA
Formula:
GPA
a = 721
b = 463
After Exchange:
a = 463
b = 721
Question 8) Solve supplementary problem 2.1.2 in page 47.
Take value of a, b, c from the user. Then print in such a way that
value of a goes to b
value of b goes to c
value of c goes to a.
Input and output will be similar to Question 7.
Question 9) Solve supplementary problem 2.1.3 in page 47.
Input and output will be similar to Question 7.
Question 10) Take a number from user and print its absolute value. If user gives
minus five, print positive five. If user gives positive five, print positive fi
ve. No need to print plus sign.
Question 11) Ask user for mark, currentScale, targetScale and then convert the m
ark from currentScale to targetScale. If user gives 5, 10, 30, that means quiz m
ark 5 is out of 10 (currentScale), convert it to 30 and print 15.
Those who did not understand the question or need further help, you can take hel
p of the ST
or you can ask in the group by clicking reply to this email (instead of composin
g a new mail)