Try these. And good luck.
--------------------------------------------
Mini-project:
11001101100011000F1000
0010001000100001011011
1100101011110000100010
110101001000011110100
1110100010101010000101
1101000101000101010100
1101010000100101010100
1101001010101000010100
0100000100101001100010
101S110000101000100001
Display the array so that 0's appear as spaces.
Locate the S and change to it an *
Move the * horizontally or vertically to the F a position at a time.
1 is blocked 0 is open.
Re-display the array after each move.
----------------------------------------------------
Mini-project:
1)create a text file containing these records:
23.0 22.7 23.7 23.9 24.1 24.9 23.9 23.7 23.9 23.9 24.2 23.7
22.9 22.4 23.4 23.8 23.9 24.7 23.7 23.5 23.7 23.7 24.1 23.5
22.8 22.2 23.3 23.6 23.7 24.5 23.4 23.3 23.5 23.6 23.9 23.5
22.6 22.0 23.0 23.5 23.5 24.3 23.2 23.1 23.3 23.4 23.7 23.4
22.5 21.8 22.9 23.3 23.4 24.2 23.0 23.0 23.2 23.3 23.6 23.3
22.5 21.6 22.7 23.2 23.3 24.0 23.0 22.9 23.1 23.1 23.5 23.3
22.6 21.9 23.2 23.8 24.1 24.6 23.5 23.3 23.6 23.9 24.3 23.9
24.1 24.3 25.4 26.0 26.3 26.8 25.5 25.2 25.5 26.3 26.1 25.3
25.7 27.0 28.1 28.5 28.6 28.8 27.8 27.7 27.9 28.8 28.1 27.2
26.6 28.9 29.7 30.0 29.9 30.2 29.2 29.0 29.5 30.1 29.2 28.2
27.5 30.1 30.7 31.1 30.5 31.1 29.6 29.3 30.1 30.7 30.0 29.0
27.9 31.0 31.4 31.3 30.4 31.3 30.0 29.7 30.3 30.6 30.5 29.7
27.9 31.6 32.0 31.3 30.2 31.3 30.2 29.5 29.8 29.7 30.4 29.7
27.9 31.9 31.4 30.7 29.3 31.0 29.6 28.7 29.7 29.2 30.5 29.1
27.7 31.7 29.6 29.9 29.1 30.6 29.0 28.2 29.4 28.7 29.7 28.6
27.3 31.0 28.9 28.5 28.5 30.1 28.7 27.9 28.7 27.7 29.1 28.5
26.7 29.3 28.0 27.4 27.8 29.2 28.2 27.3 27.9 26.9 28.2 27.4
25.8 27.7 27.1 26.5 26.9 28.3 27.5 26.7 27.1 26.2 27.1 26.4
25.0 26.4 26.2 25.8 26.2 27.4 26.5 25.8 26.1 25.6 26.3 25.6
24.5 25.4 25.7 25.3 25.6 26.7 25.8 25.2 25.5 25.2 25.7 25.0
24.1 24.6 25.2 24.9 25.3 26.3 25.2 24.8 25.1 24.8 25.3 24.6
23.7 24.0 24.7 24.6 24.9 25.8 24.8 24.5 24.7 24.5 25.1 24.4
23.4 23.5 24.4 24.3 24.6 25.5 24.4 24.2 24.3 24.3 24.8 24.1
23.2 23.0 24.0 24.1 24.4 25.1 24.1 24.0 24.1 24.1 24.5 23.9
Each record represents an hour (hence there are 24 records) and each column represents a month
of the year January through December). The values are Celsius air temeratures.
2) read the text file into your program in some suitable fashion
3) Calculate: a) Maximum and Minimum air temperatures and their hours of occurrence
b) Mean daily air temperature
c) Mean monthly air temperarture
4) Show the results of the calculation in:
a) Celsius
b) Fahrenheit
c) Kelvin
--------------------------------------------------------------
"Banking Project Specification" for C++
Course Project
You are a C++ developer at a software company marketing financial products. The Marketing Department has signed a contract for a Bank Accounting System. Your assignment is to create the accounting portions of the system. Someone else will do the final graphical user interface (GUI). Your user interface need only be sufficient to test your objects.
According to a bank accountant contacted by Marketing, the accounting system must be able to handle various types of accounts: 1) checking accounts, 2) savings accounts, 3) credit card accounts, 4) and loans.
The bank uses unique random account numbers to identify accounts. That is, the account number is not a code for a type of account.
Customers are also kept on a bank mailing list. There is a department in the bank whose function is to keep the customer name, address, city, state, and zip code current. There are separate mailing lists for credit card customers and loan customers. A customer may appear on multiple mailing lists.
One customer can have multiple accounts (multiple checking, multiple savings, etc.).
One account can have several customers (joint accounts, for example).
Checking accounts require checks containing the date, check number, payee, and amount. Deposits will be accepted and will contain date, deposit amount, and tracking number.
Savings accounts require deposits and withdrawals. Each deposit or withdrawal will contain the date of deposit or withdrawal, the amount and the tracking number.
Credit card accounts require charges and payments. A charge will contain the date of charge, the name of the business, the amount and the tracking number. A payment will contain the date, the amount of the payment and the tracking number. Credit card accounts have a credit limit. Charges beyond the limit are not accepted.
Loan accounts keep track of the loan amount and current balance. Payments are made by check or by a transfer from another account. Payments contain the date and amount and a tracking number.
Account transfers carry the source and destination account, amount, date, and tracking number.
Tracking numbers identify the clerk who created the transaction. Clerks are bank employees who may also be customers of the bank.
At a minimum the system must:
1) Maintain the customer mailing list
2) Produce mailing labels based on a mailing list. A print to disk will be enough.
3) Keep track of which accounts belong to which customers and produce an online report by either customer or account number
4) List one or more customers by name or by customer showing their accounts and account balances.
5) List one or more accounts by number with account balances
6) List one or more accounts by number showing the individual deposits, checks, withdrawals, etc. with the account balance at the end of the list. This is the account register report.
7) List all customers with their balances showing a grand total at the end. This is the bank Net Worth Report
8) Produce the Tracking Report which lists by clerk the transactions the clerk initiated.
Remember that someone else will do the user interface. It is not necessary to develop the data entry portion of the system. Also, you are not responsible to print these lists on a printer. Display on the monitor or to disk is sufficient.
The Bank is expecting
1) An object diagram showing the object relationships and associations.
2) An event trace diagram for each scenario the system is able to perform
3) A test plan to test each of the objects in the system, each scenario, and the overall system. Boundary value checking is also required.
4) C++ source code that compiles and executes with no warnings.
5) A driver program that implements the test plan. This must be automated. The Bank will do no data entry of test cases.
6) The driver program will determine, and log, whether a specific test passed or was failed by comparing expected output with actual output. The log will not be intermixed with the system output.
7) The executable program cannot crash.
8) The Bank has just trained their programmer to use the C++ Standard Template Library and so the system is expected to use it.
Suggested output:
*************************
Customer:
Name: Helen Adams
Address: 347 NE 108th #24
City: Bellevue
State: WA
Zip: 98007
Account Detail:
Account: 12345
Date Check# Payee Amount Transaction Number
-------------------------------------------------------------------------------------------
05/03/2001 15475 McEspresso -19.50 13456
05/10/2001 15476 GasMan -213.07 2075
05/15/2001 15477 Food Mart -162.30 27387
04/30/2001 DEP 745.00 21345
06/05/2001 WDRAW -30.00 24567
Account: 67890
05/25/2001 15478 Star Cleaning -36.20 31236
06/02/2001 15479 VideoRent -7.55 43267
06/10/2001 15480 Rent-a-Tool -23.86 58674
05/01/2001 DEP 661.00 36782
06/30/2001 WDRAW -60.00 87367
Account Balances:
Account: 12345 Balance: 320.13
Account: 67890 Balance: 533.39
*************************
Customer:
Name: Richard Buchmiller
Address: 123 Elm St.
City: Redmond
State: WA
Zip: 99765
Account Detail:
Account: 56585
Date Check# Payee Amount Transaction Number
-------------------------------------------------------------------------------------------
03/21/2001 21372 Pizza Man -22.75 22354
04/06/2001 21373 A-1 Barber -17.00 2075
04/15/2001 21375 Market Park -98.32 45678
04/30/2001 DEP 441.00 76548
06/05/2001 WDRAW -60.00 1132
Account: 98765
Date Check# Payee Amount Transaction Number
-------------------------------------------------------------------------------------------
05/25/2001 478 Star Cleaning -36.20 23456
06/02/2001 479 VideoRent -7.55 98765
06/10/2001 480 Rent-a-Tool -23.86 32457
07/01/2001 DEP 1045.00 44876
07/30/2001 WDRAW -60.00 98612
Account Balances:
Account: 56585 Balance: 242.93
Account: 98765 Balance: 917.39
*************************
End of Report
*************************
Bank Net Worth
Account: 12345 Balance: 320.13
Account: 56585 Balance: 242.93
Account: 67890 Balance: 533.39
Account: 98765 Balance: 917.39
Net Worth: 2013.84
-------------------------------------------------------------------
Refrigerator Course Project for C++ Developers
The Refrigerator Game
Overview
Create a game that simulates the interaction of a small family with a refrigerator. The objective of the game is to keep the family members alive and healthy while meeting their dietary requirements in a predefined period of time. The player enters commands from the keyboard to instruct the family to shop for food, store the food in the refrigerator, and eat the food. Periodically (at the end of each "day" of play) the game evaluates the health of each family member and the wholesomeness of the food in the refrigerator.
The rules:
1. Each family member has certain dietary requirements that must be met or the family member becomes sick. For example, each family member has a minimum number of days that a poor diet can be tolerated without becoming sick.
2. Foods can spoil in the refrigerator be becoming moldy. One moldy food in the refrigerator causes all other food in the refrigerator to spoil twice as fast. A food can be preserved by freezing, which halts the aging process, but the food must be thawed for a day before it can be eaten
3. Foods must be wholesome and nutritional. For example, even if a food is on a family member's diet, if the food is moldy the family member will become sick. Meat is the only food that must be cooked in order to be wholesome, but cooking a food twice destroys its nutritional value. Foods that are not wholesome can be thrown away.
4. If a family member is sick and something occurs that would make them sick, the family member dies.
The Family:
George, the Father
Wilma, the wife
Billy, the son
Jessica. the daughter
Agnes, the grandmother
Deliverables
The student is to complete and object-oriented analysis and design. This should include a class diagram and an event trace diagram.
The implementation should consider using:
Templates
Exceptions
Smart Pointers
Design Patterns
----------------------------------------------------