Ask Question, Ask an Expert

+61-413 786 465

info@mywordsolution.com

Ask Business Economics Expert

A high school senior is applying for colleges.  He wants a program to calculate the out-of-pocket cost for attending each college he is applying.  The out-of-pocket cost is determined by the following formula:

Out-of-pocket cost = tuition + room + board + other expenses - financial aid

Write a program to calculate the out-of-pocket cost of every college he is applying.  After each college, ask the user whether to calculate cost for another college.  Enter 'y' for yes.  The following is an example:

Enter name of college: Wake Tech

Enter tuition: 8500

Enter room: 6000

Enter board: 4000

Enter other expenses: 3000

Enter financial aid: 2000

Out-of-pocket cost for this college: 19500

Calculate cost for another college? [y/n] y

Enter name of college: Jefferson College

Enter tuition: 35000

Enter room: 7000

Enter board: 4500

Enter other expenses: 5000

Enter financial aid: 22000

Out-of-pocket cost for this college: 29500

Calculate cost for another college? [y/n] y

Enter name of college: Freedom University

Enter tuition: 20000

Enter room: 10000

Enter board: 5000

Enter other expenses: 5000

Enter financial aid: 30000

Out-of-pocket cost for this college: 10000

Calculate cost for another college? [y/n] n

Save your Python program in a file named Lab04P1.py.  Submit the file to Blackboard for credit.

Problem 2

We wrote the following program to calculate BTU needed to cool a room.

roomLength = float(input('Enter room length: '))
roomWidth = float(input('Enter room width: '))
roomHeight = float(input('Enter room height: '))
roomVolume = roomLength * roomWidth * roomHeight
btuNeeded = roomVolume * 3.5
print('BTU needed for this room:', btuNeeded)

Modify the program by adding error checking loops.  Room length, width and height must all be greater than 0. Every time the user enters a negative number, display an error message and ask the user to re-enter a valid value immediately.

Business Economics, Economics

  • Category:- Business Economics
  • Reference No.:- M92196371
  • Price:- $30

Priced at Now at $30, Verified Solution

Have any Question?


Related Questions in Business Economics

Standards drive instruction therefore how do standards

Standards "drive instruction," therefore, how do standards influence curriculum planning?

A sample of 100 individuals was selected for a focus group

A sample of 100 individuals was selected for a focus group to determine information concerning consumer behavior. Among the questions asked was "Have you noticed our advertisements on TV?" Overall, 67 answered yes. 45 ma ...

Of all the companies on the new york stock exchange profits

Of all the companies on the New York Stock Exchange, profits are normally distributed with a mean of $6.54 million and a standard deviation of $10.45 million. In a random sample of 73 companies from the NYSE, what is the ...

Red bull is the most popular energy drink in sales in the

Red Bull is the most popular energy drink in sales in the United States. Red Bull GmbH (the parent company) has observed that daily sales are normally distributed with an average of 6,329,903 drinks sold with a standard ...

With its current leverage cowcow copr will have net income

With its current leverage, COWCOW copr will have net income next year of $7 million. If COWCOWs corporate tax rate is 30% and it pays 7% interest on its debt, how much debt can COWCOW issue this year and still receive th ...

Consider a country that has been producing a lot of oil and

Consider a country that has been producing a lot of oil and suppose that from one year to the next its oil wells run out. The country will be poorer than previously. According to the two definitions above, is it in a rec ...

A lottery game has balls numbered 1 through 19 what is the

A lottery game has balls numbered 1 through 19. What is the probability of selecting an even numbered ball or a 9

Per capita income of winterfell is 15000 with a growth rate

Per capita income of Winterfell is $15,000 with a growth rate of 4%. Per capita income of King's Landing is $25,000 with a growth rate of 0%. How long until per capita income is the same in both locations?

Carefully explain how the negative price elasticity of

Carefully explain how the negative price elasticity of demand affect the revenue or profit of an organization?

A production system has two spares of a critical component

A production system has two spares of a critical component that have average uptime 1/lamba = 1 month. Find the probability that the 3 components (the operating one and the two spares) will last more than 6 months. Assum ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As