Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

them as reference parameters if they need to be modified in the module. (Referen

ID: 3870110 • Letter: T

Question

them as reference parameters if they need to be modified in the module. (Reference: Writing a Decision Structure in Psaudocode, page 118) Lab 3.2 - Peudocode and Decision:s Critical Review Module main () //Dec!re local variables Questions are often asked using an if statement such asifX > Y). wbereas the question aakedis"is X greater than Y" Function calls The general structure of an if statement is If condition Then 3tatement 3tatement End Module End If //th module take in the required u er input Help Video: lab3-2.wmv Display "Enter the total sales for the month. This lab requires you to think about the steps that take place in a program by writing pseudocode. Read the following End Module program prior to completing the lab. A retail company assigns a $5000 store bonus if monthly //this module vill determine if a bonus is avarded Module ale, are $100,000 or more. Additionally, if their -e exceed 125% or more of their monthly goal of $90,000, then all employees trill receive message stating that they will get a day off Print "You get bonus of $5,000!! !" End If End Module variable. Declare the Step variables that you wil1 need in the program, using the proper data type and documenting the purpose. Depending on your programming style, you may find additional variables are useful. If that is the case, adjust your program as necessary 1: This program is easiest when solved using just one //this module trill determine if all employees get day //off. If 1e are greater than or equal to 112500, then //they get day off Module ariable Name urpose End Module Step 2: Given the major including? task ivolved in this program, purpose of the module. wiat modules might you consider Also describe the Module Name Purpose ales should be ararded off should be avarded user nter Step 3: Complete the pseudocode by writing the missing lines. When writing your modules and making calls, be sure to pass necessary variables as arguments and accept

Explanation / Answer

Step1:

This variable will be use to store monthlysales

Step2:

Step3:

Module Main()
long int montlySales;
getSales(montlySales);
get_Empl_Bonus_satus(montlySales)

get_employee_day_off_status(monthlySales)

End Module

//This module takes in the required user input
Module getSales(long int &montlySales)
Display "Enter the total sales for the month."
Input monthlySales
End Module


//this module will determine if a bonus is awarded

Module get_Empl_Bonus_satus(long int monthlySales)
If monthlySales >= 100000 Then
print "You get a bonus of $5,000!!!"
End If
End Module

//this module will determine if all employee get a //day off. If Sales are greater than or equal to 112500 then they //get a day off
Module get_employee_day_off_status(long int montlySales)
If monthlySales >= 112500 Then
Print "All employee will get day off."
End If
End Module

Variable Name Purpose montlySales

This variable will be use to store monthlysales