Information Technology > STUDY GUIDE > Northern Virginia Community College - ITP 100ITP 100 homework 4_ Abdelhamid Daoud. (All)
Daoud Abdelhamid Professor: Susan Blackburn Class: ITP 100 Module 2-chapter 4 homework 1. Write pseudocode to calculate the weekly pay for employees. The user will be prompted to enter the number... of hours worked and their job code. Hours in excess of 40 are paid at 1.5 times the hourly pay. Job code hourly rates are: P - $10, Q - $12.50, R - $15.00, and S - $20.00. Use both a case and a selection structure. Global Constant Integer OVERTIME = 40 Global Constant Real OVERTIME_PAY = 1.5 Module main () Call module input Info Call module calc Pay Call module calc Weekly End Module Module input Info () Declare Real hours Worked Declare String job Code Display “Enter the number of hours you worked.” Input hours Worked Display “Enter your job code.” Input job Code End Module Module calc Pay (Real Ref hours Worked, String Ref job Code) Declare Real calc Hours If hours Worked > OVERTIME, Then Set calc Hours = OVERTIME_PAY * hours Worked [Show More]
Last updated: 1 year ago
Preview 1 out of 5 pages
Buy this document to get the full access instantly
Instant Download Access after purchase
Add to cartInstant download
We Accept:
Connected school, study & course
About the document
Uploaded On
Mar 23, 2021
Number of pages
5
Written in
This document has been written for:
Uploaded
Mar 23, 2021
Downloads
1
Views
195
In Browsegrades, a student can earn by offering help to other student. Students can help other students with materials by upploading their notes and earn money.
We're available through e-mail, Twitter, Facebook, and live chat.
FAQ
Questions? Leave a message!
Copyright © Browsegrades · High quality services·