Ask Question, Ask an Expert

+61-413 786 465

info@mywordsolution.com

Ask Computer Engineering Expert

Assignment

In preparation for more complex data processing tasks using object oriented objects that you will create in up-coming units, in this unit you will utilize arrays to build some basic processing logic and structures. This unit will not require you to do "object-oriented" programming per se, but you will utilize basic C# ***** structures.

- You are expected to follow the "General Directions" found in the "Course Project Instructions" link on our course page.

- In a production program you would need robust error checking and user input validation, to provide your user with a complete menu system, and to make sure that there were no conditions in which your program would end unexpectedly (i.e. you would want to catch and handle all error conditions). However, this program is a prototype of various tasks, not a production program. At this point I do not expect advanced error checking, complicated menus, etc.; just carry out the tasks asked of you, based on the requirements of the program.

Your tasks for Unit 2 are:

•1) Customers: Create an array of customer names. (For this Unit, you should store first and last names in one field, in the format "Last_name, First_name".) Populate the array with 4 to 6 customer names, entering the names in "non-alphabetical" order. (Note: In order to practice receiving user-input and adding elements to your program, you will allow the user to add one customer to your array when your program runs. Thus your array only needs to be one item larger than the number of customers you pre-load. Obviously in a production program you would need to allow your customer list to grow most likely using a database.)

•For the Customer array, create a program to demonstrate the following tasks:

?Prompt the user for a new customer name; add the name to the array (in an empty location).

?Tell the user how many customer names are ***** ***** array. (See Note #1 in Programming Notes below.)

?Sort the array alphabetically.

?Print the sorted results.

?Prompt the user for a customer name to search for; if the name is ***** ***** array, print it; if not, indicate so. Continue prompting the user for more user names to search for until the user indicates they no longer want to search for any more names. (You choose the way for the user to indicate this, whether they enter the word "end" or something else you decide on. Make sure you inform the user how to use your program!)

•2) Boat Slips: Create an array of numbers, representing slip numbers.

•For the Boat Slip array, create a program to demonstrate the following tasks:

?Populate the array with some numbers. (Note: the slip number array will not need to grow or have additions after it is defined and initially populated.)

?Prompt the user for a slip number to search for; if the number is ***** the array, print it; if not, indicate so.

?Indicate to the user that (rather than searching for one slip) they can print out a list of all slip numbers; tell them how and do so if they choose to.

?Continue prompting the user for more slip numbers to search for until the user indicates they no longer want to search. (You choose the way for the user to indicate this, whether they enter the word "end" or something else you decide on. Make sure you inform the user how to use your program!)

•3) Slip Rental Amount: Create an array of numbers, representing the amount each slip is rented for (monthly). Populate the array with some dollar amounts (with two decimal places). (Note: the slip amounts array will not need to grow or have additions after it is defined and initially populated; however, it should have the same number of entries as the boat slip number array above.)

•For the Slip Rental array, create a program to demonstrate the following tasks:

?Print out each of the monthly rental amounts shown in currency format.

?Display the total amount that all slips rent for (i.e. sum of all numbers in the array) in currency format. (See Note #2 in Programming Notes below.)

?(For this exercise, slip rental amounts do not yet need to be associated with a slip number.)

Unit 2 Programming Notes:

1.For determining the total number of Customers, you can either keep track if it programmatically (i.e. a variable you set and update), or you can determine it on-the-fly.

2.To print the "currency" for slip rental amounts, you will want to use the methods talked about in the "Formatting Floating-Point Values" section on page 56 ff. of your textbook.

Computer Engineering, Engineering

  • Category:- Computer Engineering
  • Reference No.:- M92072541
  • Price:- $40

Priced at Now at $40, Verified Solution

Have any Question?


Related Questions in Computer Engineering

With regards to data mining business analytics why is it

With regards to data mining/ business analytics, Why is it not ideal to evaluate a classifier's performance on the training data set?

On june 23 2016 the brits voted to exit the eu the

On June 23, 2016, the Brits voted to exit the EU. The following were the daily values of an investment. June 23 24 Dollars 109.60 111.60 If returns were to accumulate at the same rate over an entire year (252 trading day ...

What are your thoughts on grant writing and grant money

What are your thoughts on grant writing and grant money toward purchase? How essential is this practice when looking at gaining money toward purchases?

Assembly programs use 32 bits to address memory and can

Assembly programs use 32 bits to address memory and can access up to 4gb of memory. If an assembly code for a system uses 16 bits to address memory, how many bytes of memory can the program access? Is it as simple as 2^1 ...

Discuss how a successful organization should have the

Discuss how a successful organization should have the following multiple layers of security in place for the protection of its operations: Information security management. Data security Network security

Question research different information systems management

Question : Research different information systems management disaster response plans of major organizations that have had to respond to fairly recent disasters. Discuss the results of the organization's recovery efforts.

Discuss the impact of the market on well-diversified

Discuss the impact of the market on well-diversified portfolios. What does this suggest about the performance of mutual funds? Include real-world examples in your explanation.

Assignmenta in the slides and textbook one of the examples

Assignment (a) In the slides and textbook, one of the examples features a class for counting up. An interface which defines this functionality is given below: public interface IncrementCounter { //Increments the counter ...

Requirementsdesign and implement an application with a

Requirements Design and implement an application with a graphical user interface to manage a library of songs. A song is uniquely identified by name and artist (case insensitive). Your application should have a SINGLE WI ...

Today is your 35th birthday and it occurs to you that your

Today is your 35th birthday and it occurs to you that your current retirement savings may be insufficient to maintain for you the lifestyle to which you have become accustomed. • The value of your retirement account toda ...

  • 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