A lottery ticket buyer purchases 10 tickets a week,
always playing the same 10 5-digit lucky combinations.
Write a program that initializes an array or a vector with these numbers
and then lets the player enter this weeks win
CS140 Chapter 6 Assignment
This program is to help the user to Use a selection structure inside a function
to solve problem such as a broker agent paid.
The following is the pseudo code.
Assume a salesperson is paid a variable-rate commiss
This program is to lets the user enter the total rainfall for each of 12 months
into an array of doubles.
The program calculate and display the total rainfall for the year, the average
It also display the months with the highest and l
This program is to compoute and displays the charges for a patient's hospital
the following is the pseudocode
1. The program should ask if the patient is admitted as in-patient or outpatient.
2. select the patient type
3. input pateint data
CS140 Introduction to Programming
Program Design Documentation
Problem: Design a program that calculators & displays the current balance in a savings
account. The program asks for:
Total dollar amounts of deposits made
Total dollar amount