Answered step by step
Verified Expert Solution
Question
1 Approved Answer
python code Stage 1: Base Program Basic Program Stage Overview Create a program gathers input data for ONE person (without validating it). calculates total pay
python code
Stage 1: Base Program Basic Program Stage Overview Create a program gathers input data for ONE person (without validating it). calculates total pay and their tier for the month, and then prints the final report for that person (see below for exact format). Input (for 1 person) Use input() function with appropriate prompts to get the following information from the user name, base salary, tier. number of basic laptops sold, number of premium laptops sold, number of deluxe laptops sold Processing (for 1 person) Compute their monthly pay base salary + commission + bonus) --and the SUPER_BONUS if they earn it Determine if they moved up a tier or not for get the SUPER_BONUS added to their monthly payl Tests Stage 2: Data Validation Stage 2 Overview AFTER STAGE 1 WORKS CORRECTLY add data validation (see rules below) for the input gathering Input Validation (added in stage 2) Tier values can ONLY be one of. T.M. Sort,m.s). . Before checking for validity, do 2 things to help the user" by fixing certain things: o Grab just the oth char they entered in case they type in Low) Share : input_str(e) Capitalize that first char (in case they entered a) cap_char = chare, upper() If it's invalid, keep asking the user for a valid tier letter until they enter something correct Each of the 3 tier types will have its own validation loop. Base salary must be a positive number integer or real number that's ca MAX VALID SALARY (a constant set to see,ese) off it's invalid, keep asking the user for a valid salary amount until they enter something correct Number of basic premium and deluxe Laptops must be le or positive integers that are c= MAX VALD UNITS (a constant setto se If it's invalid. keep asking the user for a valid number of units until they enter something correct o Each of the 3 types of laptops wil have its own validation LOOD Collapse Stage 3: Multiple Salespeople Stage 3 Overview AFTER STAGE 2 WORKS CORRECTLY add looping so that the program can handle as many salespeople as the user provides. After handling one person, the program asks whether the user wants to enter data for another person then proceeds accordingly). (STAGE 3 VERSION OF THE PROGRAM IS THE ONE THAT YOU SHOULD SUBMIT TO GET THE FULL 100 POINTS). Input -Multiple Salespeople (added in stage 3) After printing the report for a single person, ask the user if they wish to enter another salesperson (YES or NO). If they say YES (or Yes or yes or YES or yes or...) or Y for y). then go around the big loop again. . Use the 2 String methods to 1) grab just the 1st char and 2) capitalize it) to reduce the number of cases that need to be checked to just "Y" (so that'd include yup, yea, yo, yellow, Any other response (Like Noo/NInnopelnaw/whatever/who cares/red/green/...) will be assumed to be a NO. Stage 1: Base Program Basic Program Stage Overview Create a program gathers input data for ONE person (without validating it). calculates total pay and their tier for the month, and then prints the final report for that person (see below for exact format). Input (for 1 person) Use input() function with appropriate prompts to get the following information from the user name, base salary, tier. number of basic laptops sold, number of premium laptops sold, number of deluxe laptops sold Processing (for 1 person) Compute their monthly pay base salary + commission + bonus) --and the SUPER_BONUS if they earn it Determine if they moved up a tier or not for get the SUPER_BONUS added to their monthly payl Tests Stage 2: Data Validation Stage 2 Overview AFTER STAGE 1 WORKS CORRECTLY add data validation (see rules below) for the input gathering Input Validation (added in stage 2) Tier values can ONLY be one of. T.M. Sort,m.s). . Before checking for validity, do 2 things to help the user" by fixing certain things: o Grab just the oth char they entered in case they type in Low) Share : input_str(e) Capitalize that first char (in case they entered a) cap_char = chare, upper() If it's invalid, keep asking the user for a valid tier letter until they enter something correct Each of the 3 tier types will have its own validation loop. Base salary must be a positive number integer or real number that's ca MAX VALID SALARY (a constant set to see,ese) off it's invalid, keep asking the user for a valid salary amount until they enter something correct Number of basic premium and deluxe Laptops must be le or positive integers that are c= MAX VALD UNITS (a constant setto se If it's invalid. keep asking the user for a valid number of units until they enter something correct o Each of the 3 types of laptops wil have its own validation LOOD Collapse Stage 3: Multiple Salespeople Stage 3 Overview AFTER STAGE 2 WORKS CORRECTLY add looping so that the program can handle as many salespeople as the user provides. After handling one person, the program asks whether the user wants to enter data for another person then proceeds accordingly). (STAGE 3 VERSION OF THE PROGRAM IS THE ONE THAT YOU SHOULD SUBMIT TO GET THE FULL 100 POINTS). Input -Multiple Salespeople (added in stage 3) After printing the report for a single person, ask the user if they wish to enter another salesperson (YES or NO). If they say YES (or Yes or yes or YES or yes or...) or Y for y). then go around the big loop again. . Use the 2 String methods to 1) grab just the 1st char and 2) capitalize it) to reduce the number of cases that need to be checked to just "Y" (so that'd include yup, yea, yo, yellow, Any other response (Like Noo/NInnopelnaw/whatever/who cares/red/green/...) will be assumed to be a NO Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started