Computer Science hw /AN

. As with all projects in this course, your program’s output will display your name, your EUID, your
e-mail address, the department name, and course number. This means that your program will
print this information to the terminal (see the sample output).
2. Declare and initialize the following global parameters.
• A global integer constant to store the length of account number and initialize it to 6.
• An enumeration constant with values Business and Personal and assign integer values 0
and 1 to the data items, respectively. They represent the type of bank account.
• Another enumeration constant with values Add, Remove, Process, Display, and Quit, and
assign integer values 1, 2, 3, 4 and 5 to the data items, respectively. They represent menu
choice presented to the user.
• A structure named Account with the following members.
o Name of the account
o Number of the account
o Type of the Account (i.e. Business or Personal)
➢ You must use a suitable enum type variable for this member.
3. In your main function:
• Display a menu for the user (SEE SAMPLE OUTPUT) that provides the user the following
choices.
o Add a new account
o Remove an existing account
o Process new transaction on an account
o Display the stored transactions on an account.
o Quit the program
• Using a suitable message, ask the user to make the menu choice using an integer variable.
• Based on the value entered by the user for menu choice, design a switch-case block to
implement the following requirements.
o You must use the enumeration constants to set up your cases.
o You must use a variable of your enumeration constant type for switching control.
o If the user chooses to add an account
➢ Call the function addAccount
o If the user chooses to remove an account
➢ Using a suitable message, ask the user the account number of the account
to remove.
➢ Call the function removeAccount and pass the account number entered
by the user.
o If the user chooses to process transactions for an account
➢ Using a suitable message, ask the user the account number of the account
to process transactions for.
➢ Call the function processAccount and pass the account number entered
by the user.
o If the user chooses to display transactions for an account
➢ Using a suitable message, ask the user the account number of the account
to display transactions for.
➢ Call the function displayAccount and pass the account number entered
by the user.
o If the user choose to quit the program.
➢ Exit the program with a suitable message.
o If the user chooses anything else, execute the default case to notify the user an
incorrect choice.
➢ Using a suitable loop, ask the use for the choice again.
➢ Your program must keep on looping until the user enters the correct
choice
4. Write a function named getName which gets the name on the bank account. Inside the function:
• Using a suitable message, prompt the user for the name on the account. The name can
have multiple words.
• Only alphabets (A-Z or a-z) and whitespaces are permitted in the account name.
o If the user enters any other characters in the name, you need to generate an
error message and ask for the name again.
o Your program must keep on asking the user to enter the name until the user
enters it correctly.
• The user may type the name in either uppercase or lowercase, but you need to convert
every initial to uppercase.
• This function will be called by the addAccount function.
5. Write a function named getAccountNumber which get the account number. Inside the function:
• Using a suitable message, prompt the user for the number of the account.
• The account number must be a 6-digit number.
• If the user enters an account number with more than 6 digits generate an error message
and ask the user to enter the number again.

Fountain Writers
Calculate your paper price
Pages (550 words)
Approximate price: -

Why Work with Us

Top Quality and Well-Researched Papers

We always make sure that writers follow all your instructions precisely. You can choose your academic level: high school, college/university or professional, and we will assign a writer who has a respective degree.

Professional and Experienced Academic Writers

We have a team of professional writers with experience in academic and business writing. Many are native speakers and able to perform any task for which you need help.

Free Unlimited Revisions

If you think we missed something, send your order for a free revision. You have 10 days to submit the order for review after you have received the final document. You can do this yourself after logging into your personal account or by contacting our support.

Prompt Delivery and 100% Money-Back-Guarantee

All papers are always delivered on time. In case we need more time to master your paper, we may contact you regarding the deadline extension. In case you cannot provide us with more time, a 100% refund is guaranteed.

Original & Confidential

We use several writing tools checks to ensure that all documents you receive are free from plagiarism. Our editors carefully review all quotations in the text. We also promise maximum confidentiality in all of our services.

24/7 Customer Support

Our support agents are available 24 hours a day 7 days a week and committed to providing you with the best customer experience. Get in touch whenever you need any assistance.

Try it now!

Calculate the price of your order

Total price:
$0.00

How it works?

Follow these simple steps to get your paper done

Place your order

Fill in the order form and provide all details of your assignment.

Proceed with the payment

Choose the payment system that suits you most.

Receive the final file

Once your paper is ready, we will email it to you.

Our Services

No need to work on your paper at night. Sleep tight, we will cover your back. We offer all kinds of writing services.

Essays

Essay Writing Service

No matter what kind of academic paper you need and how urgent you need it, you are welcome to choose your academic level and the type of your paper at an affordable price. We take care of all your paper needs and give a 24/7 customer care support system.

Admissions

Admission Essays & Business Writing Help

An admission essay is an essay or other written statement by a candidate, often a potential student enrolling in a college, university, or graduate school. You can be rest assurred that through our service we will write the best admission essay for you.

Reviews

Editing Support

Our academic writers and editors make the necessary changes to your paper so that it is polished. We also format your document by correctly quoting the sources and creating reference lists in the formats APA, Harvard, MLA, Chicago / Turabian.

Reviews

Revision Support

If you think your paper could be improved, you can request a review. In this case, your paper will be checked by the writer or assigned to an editor. You can use this option as many times as you see fit. This is free because we want you to be completely satisfied with the service offered.