Total amount of income and expenses for the month

Assignment Help Business Management
Reference no: EM132256260

Budgeter.java

This interactive program focuses on if/else statements, Scanner, and returning values. a file named Budgeter.java. To use a Scanner for console input, you must import java.util.*; in your code.

This program prompts a person for income and expense amounts, then calculates their net monthly income. Below are two example logs of execution from the program. This program's behavior is dependent on the user input (user input is bold and underlined below to make it stand out). Your output should match our examples exactly when given the same input. (Be mindful of spacing, such as after input prompts and between output sections.) Look at the other example logs on the Canvas site to get more examples of the program's behavior.

The program begins with an introductory message that briefly explains the program. The program prompts the user for the number of income categories, then reads in that many income amounts. Next, the program asks whether the user would like to enter monthly or daily expenses. (The user enters 1 for monthly and 2 for daily.) The program will then read in a number of expense categories and an amount for each category, similar to how income was read.

The program should then print out the total amount of income and expenses for the month, as well as the average amount of each per day. You may assume a month has exactly 31 days, though your program should be able to be easily modified to change this assumption (see below).

After printing the total income and expenses, the program should print out whether the user spent or earned more money for the given month and by how much. If income and expenses were exactly equal, the user is considered to have earned $0 more than they spent (as opposed to spending $0 more than they earned).

Finally, the program should print out which category the user falls into based on their net income for the month (rounded to two decimal places). The user's net income is the result of subtracting their expenses from their income. The four categories are defined as follows:

More than +$250: "big saver"

More than $0 but not more than +$250: "saver"

More than -$250 but not more than $0: "spender"

-$250 or less: "big spender"

After printing the user's category, print a custom message of your choice about their spending habits. This message should be different for each range shown above. It should be at least 1 line of any non-offensive text you like.

Sample run. Things in bold and underlined are user input:

This program asks for your monthly income and

expenses, then tells you your net monthly income.

How many categories of income? 3

Next income amount? $1000

Next income amount? $205.25

Next income amount? $175.50

Enter 1) monthly or 2) daily expenses? 1

How many monthly categories of expense? 4

Next expense amount? $850

Next expense amount? $49.95

Next expense amount? $75

Next expense amount? $120.67

Total income = $1380.75 ($44.54/day)

Total expenses = $1095.62 ($35.34/day)

You earned $285.13 more than you spent this month.

You're a big saver.

<<your custom message here>

Another sample run. Things in bold and underlined are user input:

This program asks for your monthly income and

expenses, then tells you your net monthly income.

How many categories of income? 2

Next income amount? $800

Next income amount? $200.25

Enter 1) monthly or 2) daily expenses? 2

How many daily categories of expense? 1

Next expense amount? $45.33

Total income = $1000.25 ($32.27/day)

Total expenses = $1405.23 ($45.33/day)

You spent $404.98 more than you earned this month.

You're a big spender.

<<your custom message here>

This program processes user input using a Scanner. All monetary inputs will be real numbers; all other input will be integers. You may assume the user always enters valid input. When prompted for a value, the user will enter a value of the correct type. The user will enter a number of income and expense categories ≥ 1 and will only ever enter 1 or 2 when asked how to enter expenses. The amount for each category of income and expense will be a non-negative number.

You are required to define a class constant for the number of days in a month. You should refer to this constant throughout your program so that the value can be changed and your program will continue to function correctly. 

Reference no: EM132256260

Questions Cloud

What are panera bread resources and capabilities : What are Panera bread resources and capabilities
Design a buck-boost convert : Design a buck-boost convert whose output is unique to you alone - The load resistance is chosen to be 33? - Using the average value of your buck-boost output
Discuss erp systems in the focus of systems analysis : Discuss ERP Systems in the focus of Systems Analysis & Design, its application - specific, analysis, modelling, design, testing
Why did you select phd in information technology : Why did you select PhD in Information Technology? Why did you select University of the Cumberlands? As an individual, what are your strengths and weaknesses.
Total amount of income and expenses for the month : This interactive program focuses on if/else statements, Scanner, and returning values. a file named Budgeter.java. To use a Scanner for console input
Benefits of holistic approach in change management : Benefits of holistic approach in change management
Estimate average length of firm short-term operation cycle : Estimate the average length of the firm's short-term operating cycle. How often would the cycle turn over in a year
How must a method return if it returns a value : CIS 36A What is the difference between a class and an object? How must a method return if it returns a value? What name does a constructor have?
Common objective function for project selection problems : A common objective function for project selection problems is to. In a project selection problem formulation:

Reviews

Write a Review

Business Management Questions & Answers

  Caselet on michael porter’s value chain management

The assignment in management is a two part assignment dealing 1.Theory of function of management. 2. Operations and Controlling.

  Mountain man brewing company

Mountain Man Brewing, a family owned business where Chris Prangel, the son of the president joins. Due to increase in the preference for light beer drinkers, Chris Prangel wants to introduce light beer version in Mountain Man. An analysis into the la..

  Mountain man brewing company

Mountain Man Brewing, a family owned business where Chris Prangel, the son of the president joins. An analysis into the launch of Mountain Man Light over the present Mountain Man Lager.

  Analysis of the case using the doing ethics technique

Analysis of the case using the Doing Ethics Technique (DET). Analysis of the ethical issue(s) from the perspective of an ICT professional, using the ACS Code of  Conduct and properly relating clauses from the ACS Code of Conduct to the ethical issue.

  Affiliations and partnerships

Affiliations and partnerships are frequently used to reach a larger local audience? Which options stand to avail for the Hotel manager and what problems do these pose.

  Innovation-friendly regulations

What influence (if any) can organizations exercise to encourage ‘innovation-friendly' regulations?

  Effect of regional and corporate cultural issues

Present your findings as a group powerpoint with an audio file. In addition individually write up your own conclusions as to the effects of regional cultural issues on the corporate organisational culture of this multinational company as it conducts ..

  Structure of business plan

This assignment shows a structure of business plan. The task is to write a business plane about a Diet Shop.

  Identify the purposes of different types of organisations

Identify the purposes of different types of organisations.

  Entrepreneur case study for analysis

Entrepreneur Case Study for Analysis. Analyze Robin Wolaner's suitability to be an entrepreneur

  Forecasting and business analysis

This problem requires you to apply your cross-sectional analysis skills to a real cross-sectional data set with the goal of answering a specific research question.

  Educational instructional leadership

Prepare a major handout on the key principles of instructional leadership

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