Using Netbeans(is kind of Java)

Program description: you
will write a program that evaluates and compares the profitability of several
businesses and return back the most profitable one along with all financial
numbers and the specific year in which it will achieve 100% ROI. Assignment objectives: to
practice the different programming concepts we learned in class so far that
includes: variable and data types, arrays and strings, decision and loop
statements
assignment_1.docx

Unformatted Attachment Preview

Don't use plagiarized sources. Get Your Custom Essay on
Using Netbeans(is kind of Java)
Just from $13/Page
Order Essay

Using Netbeans(is kind of Java)
PROGRAMMING
Program description: you will write a program that evaluates and compares the profitability of several businesses
and return back the most profitable one along with all financial numbers and the specific year in which it will
achieve 100% ROI.
Assignment objectives: to practice the different programming concepts we learned in class so far that includes:
variable and data types, arrays and strings, decision and loop statements
Program operation: program should do the following:
?
Ask the user for the initial investment capital and the number of years for profitability evaluation
?
Ask the user to enter the following for each of the businesses:
o Expected profit margin (percentage) o
Expected fixed operation expenses (fixed
number that differs from one business to another) o
Expected variable expenses
(percentage of the operating budget)
?
Per each business and for each year, store and display the following: o Final gross and net profit o
Ending balance
?
Choose the winning most profitable business and display all its financial figures.
?
Finally, advise the investor on the period for which he/she should run the business before attaining 100%
return on investment (ROI) in case the years of evaluation are not sufficient to reach this goal.
tips:
o
assume a maximum of 10 business at most will be evaluated, your arrays can be of size 10 o
while loop should be used to accept use input
o
outside for loop in which each loop iteration will evaluate a separate business; and an inside for loop to
perform the year-to-year calculations for each individual business
o
to find most profitable business, you will loop through all calculated financial information found in
previous steps and compare net profits until the most profitable is found. Then check if 100% ROI is
achieved or perform further processing up to the year in which this 100%% ROI target is achieved.
Program example output:
run:
Please enter the number of years for the financial analysis?
5
Please enter the initial investment capital?
10000
Please enter the profit margin (%) for business# 0
0.3
Please enter the annual fixed expenses for business# 0
75
Please enter the annual variable expenses for business# 0
0.1
Do you want to process more businesses? true/false true
Please enter the profit margin (%) for business# 1
for or
0.2
Please enter the annual fixed expenses for business# 1
100
Please enter the annual variable expenses for business# 1
0.1
Do you want to process more businesses? true/false
false
——————————Currently analyzing business# 0
——————————year: 0 analysis
grossProfit: 3000.00
netProfit: 1925.00
endBalance: 11925.00
year: 1 analysis
grossProfit: 3577.50
netProfit: 2310.00
endBalance: 14235.00
year: 2 analysis
grossProfit: 4270.50
netProfit: 2772.00
endBalance: 17007.00
year: 3 analysis
grossProfit: 5102.10
netProfit: 3326.40
endBalance: 20333.40
year: 4 analysis
grossProfit: 6100.02
netProfit: 3991.68
endBalance: 24325.08
——————————Currently analyzing business# 1
——————————year: 0 analysis
grossProfit: 2000.00
netProfit: 900.00
endBalance: 10900.00
year: 1 analysis
grossProfit: 2180.00
netProfit: 990.00
endBalance: 11890.00
year: 2 analysis
grossProfit: 2378.00
netProfit: 1089.00
endBalance: 12979.00
year: 3 analysis
grossProfit: 2595.80
netProfit: 1197.90
endBalance: 14176.90
year: 4 analysis grossProfit:
2835.38 netProfit:
1317.69 endBalance:
15494.59
—————————————————-*
most profitable business is number: 0, with overall profit= 14325.08
*
It will achieve/exceed 100% ROI in year:(3), with a total ending balance at the end of year(4) = 24325.08
BUILD SUCCESSFUL (total time: 31 seconds)
Useful Formulas:
? Gross_profit (year i) = starting_balance (year i) * profit_margin%
? Net_profit (year i) = gross_profit (year i) ? ALL_expenses (year i)
? Return On Investment (ROI) = total_ net_profit / original_invested_capital
Important: assignments are to be coded individually and submitted on time. Penalties for late submissions are
listed in the course outline. Copied assignments will receive zero regardless of who copied from who!

Purchase answer to see full
attachment

Order a unique copy of this paper
(550 words)

Approximate price: $22

Basic features
  • Free title page and bibliography
  • Unlimited revisions
  • Plagiarism-free guarantee
  • Money-back guarantee
  • 24/7 support
On-demand options
  • Writer’s samples
  • Part-by-part delivery
  • Overnight delivery
  • Copies of used sources
  • Expert Proofreading
Paper format
  • 275 words per page
  • 12 pt Arial/Times New Roman
  • Double line spacing
  • Any citation style (APA, MLA, Chicago/Turabian, Harvard)

Our guarantees

Delivering a high-quality product at a reasonable price is not enough anymore.
That’s why we have developed 5 beneficial guarantees that will make your experience with our service enjoyable, easy, and safe.

Money-back guarantee

You have to be 100% sure of the quality of your product to give a money-back guarantee. This describes us perfectly. Make sure that this guarantee is totally transparent.

Read more

Zero-plagiarism guarantee

Each paper is composed from scratch, according to your instructions. It is then checked by our plagiarism-detection software. There is no gap where plagiarism could squeeze in.

Read more

Free-revision policy

Thanks to our free revisions, there is no way for you to be unsatisfied. We will work on your paper until you are completely happy with the result.

Read more

Privacy policy

Your email is safe, as we store it according to international data protection rules. Your bank details are secure, as we use only reliable payment systems.

Read more

Fair-cooperation guarantee

By sending us your money, you buy the service we provide. Check out our terms and conditions if you prefer business talks to be laid out in official language.

Read more

Calculate the price of your order

550 words
We'll send you the first draft for approval by September 11, 2018 at 10:52 AM
Total price:
$26
The price is based on these factors:
Academic level
Number of pages
Urgency

Order your essay today and save 15% with the discount code ESSAYHELP