Skip to content
View in the app

A better way to browse. Learn more.

Tip.It Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

C++ help!!!!!!!!

Featured Replies

hi, my teacher gave me a C++ assignment, and i am completely lost. please, before you start flaming, i have worked on this for several hours, and i dont even know how to start.

 

 

 

can someone point me in the right direction? any help would be amazing!

 

 

 

CS140

 

Assignment #6

 

Wisniewski

 

 

 

 

 

You will be developing a program for Joe̢̢̮ââ¬Å¡Ã¬Ã¢ââ¬Å¾Ã¢s Bank and Trust. It will be used to create and maintain Savings Accounts. The program will provide the following menu:

 

 

 

1. Create new Savings Account

 

2. Calculate and Print Monthly Interest for all Savings Accounts

 

3. Change the annual interest rate

 

4. Print all Savings Accounts to the screen

 

5. Print all Savings Accounts to a file

 

6. Quit

 

 

 

Data Structures

 

 

 

The information for the savings accounts will be stored in an array of structures. The array should be large enough to hold 20 Saving Accounts.

 

 

 

Commands

 

 

 

Create new Savings Account

 

Prompt the user for the Account #, Customer̢̢̮ââ¬Å¡Ã¬Ã¢ââ¬Å¾Ã¢s first and last name, mailing address, city, state, zipcode and beginning balance. Put this information into the next available element in the array of structures.

 

 

 

Calculate and Print Monthly Interest for all Savings Accounts

 

Prompt the user for the name of the month and the year. Monthly interest is calculated by multiplying the balance by the annual interest rate divided by 12. You can start with an annual interest rate of 3%. Add the monthly interest to the balance.

 

Print out the report as follows:

 

 

 

Joe̢̢̮ââ¬Å¡Ã¬Ã¢ââ¬Å¾Ã¢s Bank and Trust

 

December 2003

 

 

 

Account # Monthly Interest New Balance

 

 

 

1234 $ .25 $100.25

 

5678 $ .50 $ 200.50

 

6655 $ 2.50 $ 1002.50

 

 

 

Change the annual interest rate

 

Prompt the user for the new annual interest rate. Use this interest rate to calculate the monthly interest.

 

 

 

Print all Savings Accounts to the screen

 

 

 

 

 

Print all Savings Accounts to a file

 

 

 

̢̮â¬Å¡Ãâ÷ Print Balance in money format.

 

̢̮â¬Å¡Ãâ÷ Create at least three additional functions besides main

 

 

 

 

 

Data Validation:

 

̢̮â¬Å¡Ãâ÷ The balance must be greater than 0.

 

̢̮â¬Å¡Ãâ÷ The annual interest rate must be greater than 0.

"The greatest joy a man can know is to conquer his enemies and drive them before him. To ride their horses and take away their possessions. To see the faces of those who were dear to them bedewed with tears, and to clasp their wives and daughters in his arms."

 

-Genghis Khan

First of all, it doesnt seem like a hard task, how much experience do you have with c++?

yourmysin.jpeg

Current Goals

80/80 Fletching

60/75 Woodcutting

97/100 Combat

Start by making a simple class for the SavingsAccount. In your Main create an array of 20 of those classes. Your class methods will include (beside the constructor) CalculateMonthlyInterest, PrintMonthlyInterest, GetInterestRate, ShowReports (print accounts to screen), SaveReports (save accounts to file) and a method to ask the user for all the information needed to create a savings account. I would keep the InterestRate as a class variable as well as all of the other information needed for a savings account. The constructor should set the initial value of the InterestRate and set the other variables to a known state (null or zero).

 

 

 

This assignment is really a trivial programming task but if you don't know C++ it could be rather difficult to implement it correctly.

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.