Create a new project in ide named

Assignment Help Business Economics
Reference no: EM131432256

For this project, you will write a Java program that demonstrates exception handling. Your program will accept from the user ten values and place those numbers in an array. The numbers in the array will be added together and the result displayed to the user. The program will also perform division. The program should compare the values for elements 1 and 2 in the array and divide the larger number by the smaller number. It should compare the values for all odd/even elements and divide the larger by the smaller value. The program should use exception handling to avoid division by zero errors or out of range errors (dictated by the variable's data type) which would cause the program to stop due to the error. The program should prompt the user for a second set of ten numbers. When the user enters 9999 the program should terminate normally.

For this project, do the following:

  • Create a new project in your IDE named "ExceptionHandler."
  • Write code to accept numbers as described above from the user. Your code should ensure that only numbers are accepted.
  • Write code to add all values together and to divide larger numbers by smaller numbers in odd/even elements. Results should be displayed. Loop to get another set of ten numbers from the user until the user enters 9999 as the first number.
  • Use exception handling to handle division by zero and out of range exceptions.
  • In the catch blocks, be sure to display the cause of the exception to the user.
  • Make sure your exception handler will handle any other errors as a default.
  • Create a UML activity diagram that illustrates how your program works. Your diagram must include all the data items in your program.
  • Use good comments to describe how the program works.
  • Make sure the program runs correctly before submission.
  • Create a zip that includes your project folder and Word document, and upload it to the course porta.

Reference no: EM131432256

Questions Cloud

What would be the source of your information : In the determination of opening the Bark and Brew Café, you decide to complete a competitor analysis. Would you use a product form or a product category competition analysis? Why? What would be the source of your information?
Explain what types of addiction were addressed : Explain what types of addiction were addressed and how the film's characters became addicted, if known.How did this addiction physically affect the individuals involved?In what way did the addiction affect work and relationships?What were the long-te..
Business requirements and design requirements : Discuss the difference between business requirements and design requirements in network upgrading. Please give four examples of each.
How well did you progress towards achieving that goal : Think about your goal established in Week 5's discussion. How well did you progress towards achieving that goal? What additional work needs to be done to achieve or expand that goal?
Create a new project in ide named : Create a new project in your IDE named "ExceptionHandler." Write code to accept numbers as described above from the user. Your code should ensure that only numbers are accepted.
What does noddings say about male versus female language : What does Noddings say about male versus female language when opposing war in the article "Maternal Ethics". According to Caroline Heldman, which of the following is a question that applies to her sexual object test
What area would you choose as a target for improvement : Why do the percents not add to 100%? - Make a Pareto chart. What area would you choose as a target for improvement?
Technical communication and technical writing : What is the difference between technical communication and technical writing? After completing your reading assignments for this week, how would you define each of these terms?
Why do you think judy was reluctant to let paul go : What are the main issues in this case? Would you have let Paul go as he requested? Why do you think Judy was reluctant to let Paul go?

Reviews

Write a Review

Business Economics Questions & Answers

  Economics assignment

This document contains various important questions and their appropriate answers in the subject field of Economics.

  Demand and supply curves

Economics is the study of the principles governing the allocation of scarce means among competing ends when the objective of the allocation is to maximize the attainment of the ends.

  Long-run perfectly competitive equilibrium for the firm

Evaluate Government intervene and correct this situation?(a) Explain the concept of a concentration ratio. A rise in the price of magarine Explain the impact of external costs and external benefits on resource allocation long-run perfectly c..

  Supply and demand diagrams

Explain each of the following using supply and demand diagrams,  With the use of a graph, explain how these two programs affect cigarette consumption and the price of cigarettes.

  Case study: fisher-price toys

The case study of the Fisher-Price Toys, Inc., a popular case in basic economics and management from the prestigious Harvard Business School.

  Draw the production possibility curve

Draw the production possibility curve and a. Define consumer surplus and producer surplus.

  Tax revenue

The Australian government administers two programs that affect the market for cigarettes

  Maximize total welfare

How many tickets to sell to maximize total welfare.

  Difference between the cv and the ev

The change in consumer surplus (?CS) is not "theoretically" justifiable like the CV and EV but it continues to be the most widely used measure of consumer welfare change. Explain how this can be reconciled

  Depict von neumann-morgenstern utility index u in a diagram

Depict the von Neumann-Morgenstern utility index u in a diagram

  What is the market solution

What is the market solution (market price and quantity) and What is the total surplus of the society under the market solution

  Calculate gross national product and net national product

Calculate gross national product and net national product

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