Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

1) Using UML Notation, draw a specification UML diagram that documents the Account class in Developer Homework 9 - Accounts. The program files are attached.

1) Using UML Notation, draw a specification UML diagram that documents the Account class in Developer Homework 9 - Accounts. The program files are attached. Using any UML tool, draw the class diagram for this class Accounts. Upload an image of the UML diagram of the Account class

2)Write a program that uses a structure to store the following data about a customer account: Customer name Customer address City State ZIP code Telephone Account balance Date of last payment The program should use an array of at least 20 structures. It should let the user enter data into the array, change the contents of any element, and display all the data stored in the array. The program should have a menu-driven user interface. Prompts And Output Labels. Your main menu should be the following: 1. Enter new account information 2. Change account information 3. Display all account information 4. Exit the program The user is expected to enter 1 or 2 or 3 or 4. The main menu is displayed at the start of the program and after the handling of choices 1, 2 and 3. If 1 is entered for the main menu, the program prompts for each of the data listed above, in the order listed above, using the above data descriptions (e.g. "ZIP code") as prompts (followed in each case by a colon). After reading in and processing the data, the program prints You have entered information for customer number X where X is the customer number: 0 for the first customer and increasing by 1 for each subsequent customer that is entered. If 2 is entered for the main menu, the program prompts for the customer number: Customer number: Upon entering a valid customer number the program displays all the data for the particular customer that has been saved: Customer name: ... Customer address: ... City: ... State: ... ZIP code: ... Telephone: ... Account balance: ... Date of last payment: ... The program then skips one or two lines and prompts for a change, using the same prompts as in choice 1 above for all the data items associated with a customer. If 3 is entered for the main menu, the program displays all the data for each customer that has been saved, using the display format in choice 2 above. After the display of each customer the program prompts "Press enter to continue..." and waits for the user to hit return. If 4 is entered for the main menu, the program terminates. Input Validation (OPTIONAL).When the data for a new account is entered, be sure the user enters data for all the fields. No negative account balances should be entered. To complete this developer homework, upload your cpp module and a image of your run.

3)

  • Write a program that lets the user enter the total rainfall for each of 12 months (starting with January) into an array of doubles. The program should calculate and display (in this order):

    • the total rainfall for the year,

    • the average monthly rainfall,

    • and the months with the highest and lowest amounts.

Months should be expressed as English names for months in the Gregorian calendar, i.e.: January, February, March, April, May, June, July, August, September, October, November, December. Use an Array for saving the Month names and values. Input Validation: Do not accept negative numbers for monthly rainfall figures. When a negative value is entered, the program outputs "invalid data (negative rainfall) -- retry" and attempts to reread the value. NOTE: Decimal values should be displayed using default precision, i.e. do not specify precision. Sample Output: EnterrainfallforJanuary:1

EnterrainfallforFebruary:2

EnterrainfallforMarch:3

EnterrainfallforApril:4

EnterrainfallforMay:5

EnterrainfallforJune:6

EnterrainfallforJuly:7

EnterrainfallforAugust:8

EnterrainfallforSeptember:9

EnterrainfallforOctober:10

EnterrainfallforNovember:11

EnterrainfallforDecember:12

Totalrainfall:78

Averagerainfall:6.5

Leastrainfallin:January

Mostrainfallin:December Submitted by: Your Name Upload the cpp program file and image of the output to submit. Write your name in a comment on the upper portion of the program and on the output.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions

Question

State the uses of job description.

Answered: 1 week ago

Question

Explain in detail the different methods of performance appraisal .

Answered: 1 week ago

Question

Why is the System Build Process an iterative process?

Answered: 1 week ago