Ask Question, Ask an Expert

+61-413 786 465

info@mywordsolution.com

Ask Programming Language Expert

Because an array is an object it must be declared using the new operator: int[ ] myarray = new int[5]; or it could be declared and initialized statically using the format

int[ ] myarray = {1, 3, 5, 7, 9};

Because the C# array is an object member of the Array class it also comes with a number of built-in methods such as Reverse, Sort and Binary Search. You can use the Reverse method

ACTUAL ASSIGNMENT REQUEST IS AS FOLLOWS:

[Assignment3_yourlastname.cs] Create a program that includes the following requirements:

1. Create an accounts class

2. Private class members for:

an array of 5 account numbers

an array of 5 account balances (currency)

an array of 5 account names (last name)

3. Public class methods:

a method to fill all three parallel arrays by keyboard inputs

a method to search the account number array and display

when found, the account number entered at the keyboard along with the corresponding balance and last name

if nothing is found for the account number entered display "You entered an invalid account" on the console

a method to compute and display the average of all 5 balances as currency (you must use the array's Length property at least once in this method)

4. In Main:

Instantiate one new accounts object

call the class method that will fill the accounts array

a menu detailing entries to select search (a or A), average (b or B) or exit (x or X)

accept an entry from the keyboard and use a while-loop to allow the user to make selections until an x or an X is entered

when an x or an X is entered terminate the while loop

5. Internal Documentation.

POSSIBLE OUTPUT SHOULD LOOK SOMETHING ALONG THE LINES OF THE FOLLOWING EXAMPLE:

Enter the integer account number 1

Enter the account balance 1111

Enter the account holder last name Stutte

Enter the integer account number 2

Enter the account balance 2222

Enter the account holder last name Stanton

Enter the integer account number 3

Enter the account balance 3333

Enter the account holder last name Staton

Enter the integer account number 4

Enter the account balance 4444

Enter the account holder last name Stiles

Enter the integer account number 5

Enter the account balance 5555

Enter the account holder last name Stone

*****************************************

enter an a or A to search account numbers

enter a b or B to average the accounts

enter an x or X to exit program

*****************************************

Enter an option ---> B

The average dollar amount for the accounts is: $3,333.00

*****************************************

enter an a or A to search account numbers

enter a b or B to average the accounts

enter an x or X to exit program

*****************************************

Enter an option ---> 4

you entered an incorrect option

*****************************************

enter an a or A to search account numbers

enter a b or B to average the accounts

enter an x or X to exit program

*****************************************

Enter an option ---> A

Enter an account number to search for 4

Account # 4 has a balance of $4,444.00 for customer Stiles

*****************************************

enter an a or A to search account numbers

enter a b or B to average the accounts

enter an x or X to exit program

*****************************************

Enter an option ---> X

Press any key to continue

PLEASE COMPILE AND RUN TO ENSURE CODE IS CORRECT BEFORE SENDING

Programming Language, Programming

  • Category:- Programming Language
  • Reference No.:- M91606929
  • Price:- $20

Priced at Now at $20, Verified Solution

Have any Question?


Related Questions in Programming Language

Extend the adworks applicationi add dialogs to allow the

Extend the AdWorks application I. Add Dialogs to allow the user to Add, Edit, Read and Delete a Customer and refresh the view accordingly. 1. The user should be able to select a specific customer from the DataGrid and cl ...

Question 1 what is hadoop explaining hadoop 2 what is

Question: 1. What is Hadoop (Explaining Hadoop) ? 2. What is HDFS? 3. What is YARN (Yet Another Resource Negotiator)? The response must be typed, single spaced, must be in times new roman font (size 12) and must follow t ...

Task silly name testeroverviewcontrol flow allows us to

Task: Silly Name Tester Overview Control flow allows us to alter the order in which our programs execute. Building on our knowledge of variables, we can now use control flow to create programs that perform more than just ...

Assignment - haskell program for regular expression

Assignment - Haskell Program for Regular Expression Matching Your assignment is to modify the slowgrep.hs Haskell program presented in class and the online notes, according to the instructions below. You may carry out th ...

1 write a function named check that has three parameters

1. Write a function named check () that has three parameters. The first parameter should accept an integer number, andthe second and third parameters should accept a double-precision number. The function body should just ...

Question - create a microsoft word macro using vba visual

Question - Create a Microsoft Word macro using VBA (Visual Basic for Applications). Name the macro "highlight." The macro should highlight every third line of text in a document. (Imagine creating highlighting that will ...

Background informationthis assignment tests your

Background Information This assignment tests your understanding of and ability to apply the programming concepts we have covered throughout the unit. The concepts covered in the second half of the unit build upon the fun ...

Assignment - horse race meetingthe assignment will assess

Assignment - Horse Race Meeting The Assignment will assess competencies for ICTPRG524 Develop high level object-oriented class specifications. Summary The assignment is to design the classes that are necessary for the ad ...

Assignment - horse race meetingthe assignment will assess

Assignment - Horse Race Meeting The Assignment will assess competencies for ICTPRG524 Develop high level object-oriented class specifications. Summary The assignment is to design the classes that are necessary for the ad ...

Overviewthis tasks provides you an opportunity to get

Overview This tasks provides you an opportunity to get feedback on your Learning Summary Report. The Learning Summary Report outlines how the work you have completed demonstrates that you have met all of the unit's learn ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As