Professional Documents
Culture Documents
2. Write a program that reads your overall lab mark from the keyboard (with an assumption that
youll enter only valid value). The maximum value for lab mark is 100 and your program
needs to convert the mark to be over 15 percent. For example, if your lab mark is 90 then the
converted lab score is 13.5. Next, print My lab score is followed by the lab score. If the lab
mark percentage is more than 13, display Well done! message on the screen. Otherwise,
print Dont be sad, do your best in your final exam. message.
Two samples input and output of the program are shown below and should guide you in
writing the program:
3.
Write a program that prompts the users to enter the value of Ritcher scale number (n), and
print its equivalent effect to the users based on the following table:
CSEB113
Effect
Little or no damage
Some damage
Serious damage: walls may crack or fall
Disaster: house or building may collapse
Catastrophe: most buildings destroyed
4. Suppose a company decides to raise the salaries of its employees according to the following
table:
employee_status
years_of_service
percent_raise
Full-time
Full-time
Part-time
Part-time
4.0
5.0
2.5
3.0
5.