Friday
September 19, 2014

Homework Help: CSI 115 Logic And Design

Posted by Preston on Thursday, January 13, 2011 at 3:37pm.

Hi I know you have got this same question ask to you a lot, but mine is for week 2 unstead of week 1. This week they want me to come up with and Create the Modular Design for the same subject as week 1, example underneath please.

A small startup software developer company needs to create a program that will calculate the pay of its employees. For the first version of the program, the company wants the program to accept an employee’s name, the number of hours the employee worked, and the hourly pay rate. The program will then calculate the gross pay, and display the employee’s name, number of hours worked, pay rate, and gross pay.

Using the design that you designed for Week 1, modify your design so that the following are done in separate modules:

1. Opening Message
2. Prompting and retrieving the input
3. Calculation for the total pay
4. Displaying the output
5. Program Termination

Create the pseudocode for each of the modules and the main module.


Here is my week one psuedocode.


//declare the variables and their respective data types
Declare String nameOfEmployee
Declare Real hoursWorked
Declare Real hourlyPayRate
Declare Real grossPay

//provide welcome statement and simple directions: enter values when prompted
Display “Welcome to the Pay Calculator”
Display “Enter the requested values to calculate the gross pay for an employee”

//get the input
Display “Please enter the employee Name”
Input employeeName
Display “Please enter the hours Worked”
Input hoursWorked
Display “Please enter the hourly pay rate”
Input payRate

//calculate the gross Pay
Set grossPay=hourlyPayRate * hoursWorked

//display the output
Display “The gross pay is“, employeeName, “is:”
Display “Hours worked:“, hoursWorked
Display “Hourly pay rate:“, hourlyPayRate
Display “Gross Pay:“, grossPay

//display termination message
Display “Thank you for using Pay Calculator”
Display “Enter any key to quit”
Input

Answer this Question

First Name:
School Subject:
Answer:

Related Questions

CIS 115 - CIS 115 week 7 exercise: Determine output. I need help with this week'...
Logic and Design - I need help with pseudocode, and any help regarding forming ...
math - I have a table with this info. plant growth: Week 1 - 1 inch, week2 -4 ...
Math - Over a four-week period, Gail earned the following commissions? Week 1 $...
economics - Each week, Bill, Mary and Jane select the quantity of two goods, x1 ...
Math 115 week 8 cum-test - I was wondering if anyone has the questions for week...
5th grade - If your parents paid you $10.00 a week for a year you would have $...
math 6 - Jillianknits hats for her family and friends. In the first week, she ...
math - If Martha read one book a week for the first week and double the number ...
MATH - I HAVE LOOKED AT THE CUMULATIVE FEQUENCY TABLE EXAMPLE, AND I AM STILL ...

Search
Members