Objectives:
In this lab, you will learn how to convert a Raptor flowchart to a Python program and create a dual-alternative selection structure using Raptor.
After completing this lab, you will be able to:
- Create a dual-alternative selection structure using Python
PreLab:
Do the following activities before doing the lab assignment:
- Review the Python Selection lecture notes.
Problem:
Convert lab 3 from Raptor to a Python program. Name the file as lab8.py.
Output sample:
Enter weekly hours worked: 35
Enter the hourly rate: 20
Weekly gross pay: $700
Output sample:
Enter weekly hours worked: 50
Enter the hourly rate: 30
Weekly gross pay: $1650
Grading:
Submit the file named lab8.py to Canvas. Do not change the file name to any other name.