Project_3Mod_Fa07 - Project 3Mod CS 1323, Fall 2007...

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

View Full Document Right Arrow Icon
Project 3 Mod CS 1323, Fall 2007 Objectives 1. Get input for primitive data types using String objects. 2. Show output of primitive data types using String objects. 3. Make use of selection statements to check validity of data input. 4. Make use of selection statements to control program flow and performed computations. 5. Include meaningful comments and variable names to document your code. Description You are to design and implement a program that will be useful when either two or three people split the cost of an acquisition, using cash. As an example, consider a situation where three roommates go grocery shopping and they have agreed to split the cost of the groceries evenly among the three of them. Suppose the bill is $78.23, and the first roommate gives the cashier $50, the second pays $20, and the third pays $10. The roommates receive the change from the cashier ($1.77) and immediately get confused about who gets the change and who owes who how much! Your task is to write a program that will provide the correct solution regarding who should pay who, and how
Background image of page 1

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

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 04/07/2008 for the course CS 1323 taught by Professor Antonio during the Fall '07 term at The University of Oklahoma.

Page1 / 2

Project_3Mod_Fa07 - Project 3Mod CS 1323, Fall 2007...

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

View Full Document Right Arrow Icon
Ask a homework question - tutors are online