{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

208 lab7

# 208 lab7 - Rochester Institute of Technology Golisano...

This preview shows pages 1–2. Sign up to view the full content.

Rochester Institute of Technology Golisano College of Computing and Information Sciences Department of Information Technology 4002-208 Page 1 of 5 Fall 20081 Name: ____________________________________ 4002-208 Lab 7: More Functions Exercise 1 – Calculating weekly wage (3 points) This exercise must be completed during the lab period. Problem Statement You are to write a program to compute the wages for an hourly employee. The weekly gross wage is the hours worked times the hourly rate. No taxes are deducted. The hours worked must be between 0 and 40 hours, inclusively. The hourly rate must be between 6.55 [Federal minimum wage] and 25.00, inclusively. Design Requirements 1. You must write a function named readDoubleBetween which reads a double between two specified values. The function has 3 parameters. The first parameter is of type string and contains the user prompt. The second parameter is of type double and contains the minimum acceptable value. The third parameter is of type double and contains the maximum acceptable value. For example, the minimum acceptable value for the hours worked is 0.0 and the maximum acceptable value is

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

### Page1 / 5

208 lab7 - Rochester Institute of Technology Golisano...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document
Ask a homework question - tutors are online