Create an array of numbers representing the amount each slip

Assignment Help Computer Engineering
Reference no: EM131317937

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.

Reference no: EM131317937

Questions Cloud

What is probability of default implied by this information : Following the Detroit bankruptcy filing in mid-2013, yields on Detroit bonds increased to approximately 16 percent. Lenders ultimately received about 25 percent of the cash flows they were promised by Detroit. Assume that the expected return on risky..
Fine ounce of gold : The U.S. standard is $ 25.00 per fine ounce of gold. The U.K. standard is £ 5.00 per fine ounce of gold. Transatlantic shipping costs are $ 0.75 per fine ounce of gold. The spot rate is $ 4.80 / £ 1.00 How much profit per fine ounce can be earned..
Determining the spot rate : The U.S. standard is $ 25.00 per fine ounce of gold. The U.K. standard is £ 5.00 per fine ounce of gold. Transatlantic shipping costs are $ 0.75 per fine ounce of gold. The spot rate is $ 4.80 / £ 1.00 How much profit per fine ounce can be earned..
What is the yield on two-year treasury securities : The real risk-free rate is 2%. Inflation is expected to be 1.75% this year and 4.25% during the next 2 years. Assume that the maturity risk premium is zero. What is the yield on 2-year Treasury securities? What is the yield on 3-year Treasury securit..
Create an array of numbers representing the amount each slip : 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).
How will the reserve impact current earnings : How will the reserve impact current earnings?- Next year when the obsolete inventory is identified, how will this impact earnings?
Discuss how the edwards rule is related to this situation : Identify and discuss the constitutional amendments that would relate to this situation.Discuss how the Edwards Rule is related to this situation.In your opinion, determine if the suspect's confession to the detective is admissible.
Determine the bond yield to maturity : Determine the bond's yield-to- maturity. Explain why an investor would be willing to pay $1,025 for a bond that is going to be worth only $1,000 at maturity.
Prepare statement of retained earning-income statement : You are thinking of investing in one of two corporations, both in the same industry, the Bill Gate Corporation. Prepare a statement of Retained Earning. Prepare Income Statement including EPS. Prepare multiple step Balance Sheet.Capital Stock must be..

Reviews

Write a Review

Computer Engineering Questions & Answers

  Basic concepts of communicating with restful web services

Demonstrate the fundamental basic concepts of communicating with RESTful Web services. Demonstrate the ability to persist application data to a remote Web server. Demonstrate the ability to retrieve application data from a remote Web server without e..

  Write another program that deserializes objects from file

Write a class named TestScores . The class constructor should accept an array of test scores as its argument. The class should have a method that returns the average of the test scores.

  How can string and word variable type data structures be

how can string and word variable type data structures be implemented? describe how a word from a programming language

  How to compute an arithmetic mean(average), median

I want to compute an arithmetic mean(average), median, and mode for up to 50 test scores. The data are contained in a text file. To determine the median, I must first sort the array. The median is the score in the middle of the range.

  What multimedia elements to use

Some multimedia can be difficult to view on a mobile device due to screen size or bandwidth limitations. Find out two articles that discuss considerations and new developments that will enable multimedia on a site to be viewed effectively on a mob..

  Questionconfiguring a databasethere are two parts to this

questionconfiguring a databasethere are two parts to this work. the first part is to generate a database and some

  Conduct research and provide a two page apa response

1.conduct research and provide a two page apa response. describe and discuss the following topics regarding nonlinear

  What are the trends of data warehousing and data mining

What are the trends of data warehousing and data mining

  Construct the binary search tree

Construct the binary search tree for the following input stream, assuming no balancing or pivoting is done: Frodo, Bilbo, Smaug, Gandalf, Wormtongue, Denethor, Sauron, Galadriel, Aragorn.

  Managing an it infrastructure

Imagine you are an Information Security Manager for a large national retailer. You have been hired to be directly responsible for the planning and oversight of IT audits.

  How many hour work each week to pay for gas to fuel the car

As a part time student and a part time worker, you earn $4.50 an hour. Your parents would buy you a used car, but you must pay for the gas. gas costs $1.10/gallon and you use 20 gallons/week. How many hours will you work each week to pay for the g..

  What dependencies there may be

For each one justify why you would select the particular file format and what dependencies there might be.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd