Negative the program must give an error

Assignment Help Business Management
Reference no: EM131715013

initialBalance = float(input("Enter initial balance: "))

if initialBalance < 0:

  print ("ERROR: Please enter a positive balance. ")

else

print ("Balance", initialBalance)

sum = initialBalance

for i in range(1, 11):

  print (initialBalance * 0.05)

  sum += i

print(sum) 

Question: This is the code I have as of right now, I am trying to figure out a for loop that would, given two things: a balance and that interest rate of 5% is implemented every year for 10 year, to calculate and print the balance at the end of each year for 10 years. And if the balance that the user gives us is negative the program must give an error and tell them to enter a positive number.

Reference no: EM131715013

Questions Cloud

Determine the amount of depletion expense for current year : Determine the amount of depletion expense for the current year
Develop a flow chart solution to output : Develop a flow chart solution to output the needed number of employees per hour. (There is no such thing as a partial employee.)
Software was fully managed on-premises : Until now, all IT technology and software was fully managed on-premises. However, the practice is adding another location and five new employees.
Define compute the sum of the years digits depreciation : Assume the useful life is 20 years, the cost is $100,000, and the salvage value is $5,000
Negative the program must give an error : And if the balance that the user gives us is negative the program must give an error and tell them to enter a positive number.
Cross-classification between education and workplace : One issue in the U.S. statistical community in recent years is whether the American Statistical Association (ASA) should offer a certification process.
How do theorists explain schizophrenia : What is the nature of these attitudes? Where do they come from? How can they eliminate their bias?How do theorists explain schizophrenia?
Determine what net income would have been in second year : Determine what net income would have been in the second year if the allowance method
What corrective action to take in-flight : With that said, describe what a "black hole" illusion is, what corrective action to take in-flight, and how an aviator can prevent it from occurring.

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