Design and implement a stringed musical instrument class

Assignment Help Programming Languages
Reference no: EM13936135

1. Design and implement a C# program that will gather floating point numbers and determine the sum and average of the data entered. The program should use separate methods for inputting the data, calculating the sum, calculating the average, and displaying the results.

A sentinel value should be used to indicate the user has completed entering their numbers.  The output should display a message that includes the count of the numbers entered, the sum of the numbers and the average of the numbers. If the sum of the numbers is greater than 100, a warning message should be displayed indicating "values have exceeded a sum 100".

2. Additional requirements include:

a. Be sure to comment your code.

b. Include a comprehensive set of application test data that you used to test your program. Your test data can be shown in a table that includes input data, expected output, actual output and pass/fail results from the test. 

Example application test data:

Input

Expected Output

Actual Output

Did Test Pass?

10.0
20.0
30.0

Sum = 60.0
Average = 20.0

Sum = 60.0
Average = 20.0

Y

Additional test cases here. Be sure to test all logic.

 

 

 

 

 

 

 

1. Design and implement a Java program that computes a speeding fine according to the speed limit, the actual speed, the speeding zone and the processing fee. The program should output the fine based on the user's input.

  • there are 3 different zones: highway, residential, and school
  • for highway, the fine is 5 times the amount of speed excess plus processing fee
  • for residential, the fine is 7 times the amount of speed excess plus processing fee
  • for school, the fine is 9 times the amount of speed excess plus 100 plus processing fee

2. Additional requirements include:

a. Use JOptionPane.showInputDialog() methods for your user to input their data

b. Use JOptionPane.showMessageDialog() methods to display your result.

c.  Include a comprehensive set of application test data that you used to test your program. Your test data can be shown in a table that includes input data, expected output, actual output and pass/fail results from the test.  Your test data can be presented in the form of a table as follows:

Example application test data:

Input

Expected Output

Actual Output

Did Test Pass?

speed limit: 75
actual speed: 88
zone: highway

fee: 100

165



Additional test cases here. Be sure to test all logic.

 

 

 

 

 

 

 

Reference no: EM13936135

Questions Cloud

Case study - launching a new product line : An analysis of stakeholder groups, stakeholder issues and stakeholder management strategies - An analysis of project tasks and phases using key project management planning tools.
What is the total profit or loss to the strangle buyer : If the spot price of the dollar at option expiration is £0.63, what is the total profit or loss to the strangle buyer? If the spot price of the dollar at option expiration is £0.51, what is the total profit or loss to the strangle writer?
Current debate in marketing and brand management : Select a current debate in marketing and brand management. • Search the Internet and University of Roehampton Library and identify a relevant article about the current debate you selected.
Construct a contingency graph for a long pound straddle : Construct a contingency graph for a long pound straddle. Construct a contingency graph for a short pound straddle.
Design and implement a stringed musical instrument class : Design and implement a Java program that will gather integer numbers and performs some computations on the data entered. The program should use separate methods for inputting the data, calculating the sum, calculating the average, calculating the ..
Create a new top level directory : In Assignment One, you set up the basic design of the site, now you must expand the functionality of the site by adding SERVER-side PHP scripts. Design All new pages created for this assignment must conform to the design criterion established for ..
What is the maximum possible gain the writer of a strangle : What is the maximum possible loss the purchaser of a strangle can achieve using these options? What is the maximum possible gain the writer of a strangle can incur? Locate the breakeven point(s) of the strangle.
Integrated marketing communication issues : A brief discussion of the Integrated Marketing Communication issues which impact on competitiveness. These issues should be discussed from an implementation point of view.
How listening skills impact and are critical to a client : In addition to your interview, use your textbook, the Argosy University online library resources, and the Internet to conduct research on how listening skills impact and are critical to a client-patient relationship

Reviews

Write a Review

Programming Languages Questions & Answers

  Write application to compute and show parking charges

Write down the application which computes and shows parking charges for each customer who parked in garage yesterday. You must enter hours parked for each customer.

  Enhanced cleverskater

Create an cleverSkater. Use that code as the basis for your World. In addition to the skateForward, spin and skateAround methods, create skateBackward and jump class-level methods.

  Create new method public to create and return new picture

Create a new method public Picture frame (int frameSize, Color frameColor) this method will create and return a new picture object.

  Write program to prompt user to enter year-find leap year

Write down program to prompt the user to enter year, and then tells user whether it is leap year. If user doesn't enter valid year (i.e., a positive integer).

  Create new program which prompts user for numbers

Create a new program whihc prompts a user for numbers and determines total revenue using following formula: Total Revenue = Price * Quantity.

  Use one-dimensional array to read in twenty numbers

Use the one-dimensional array to solve problem: Read in 20 numbers, each of which is between 10 and 100. As each number is read, print it only if it is not duplicate of number which has already been read.

  Draw application which reads inventory records file

Draw an application which reads inventory records file and produces a report whihc show item-number, item-description, and price of every item on each day, one through 7.

  Values of variables of logical section of the pseudocode

What are the values of variables a, b, and c after each line of code of each logical section of the pseudocode. Show why the logical section is running.

  Write program that asks user to enter five test scores

Write a program that asks the user to enter five test scores. The program should display a letter grade for each score and the average test score.

  Write a function that computes a taxi fare.

Write a function that computes a taxi fare. In some cities, taxi fares are calculated based on start and end zones plus a per-minute charge. In this city, there are three zones (1, 2, and 3) and a graduated scale for time. Thus, your function shou..

  Write application layer protocols to permit through firewall

As part of your own planning process, write the application layer protocols which you would permit through the firewall, those you would block and your reasons for doing so.

  Translate the given code into mips64 assembly language

you can use the instructions 'blt' (branch on less than), 'ble' (branch on less or equal), 'bgt' (branch on greater than) and 'bge' (branch on greater or equal) - Translate the given code into MIPS64 assembly language.

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