Question

In: Computer Science

Python Programming Question Bicycle shop. A bicycle shop sells bikes and helmets. Some people already own...

Python Programming Question

Bicycle shop. A bicycle shop sells bikes and helmets. Some people already own helmets, so on average the shop sells three helmets for every five bicycles. Helmets cost $50 and bikes cost $250. Write a program that prompts for the number of bikes that the shop expects to sell over the next month and outputs the total amount of expected revenue.

You should not be using eval() at all; use int() or float() instead when called for.

Solutions

Expert Solution

def calculateRevenue():
    numberOfCycles = input("the number of bikes that the shop expects to sell over the next month? ")

    costForCycle = 250;
    costForHelmets = 50;
    numberOfHelmets = int(numberOfCycles/5)*3;
    totalCost = (numberOfHelmets*costForHelmets) + (costForCycle*numberOfCycles)

    print "the total amount of expected revenue", totalCost

calculateRevenue()

Related Solutions

SHU Bicycle Shop sells Mountain bikes, Dirt bikes and Leisure bikes. D. Shim, owner, aggregated the...
SHU Bicycle Shop sells Mountain bikes, Dirt bikes and Leisure bikes. D. Shim, owner, aggregated the following information with help of SHU Accounting Consulting Group: Product sales price purchase cost Mountain bike $1,500 $900 Dirt Bike $1,800 $800 Leisure Bike $800 $600 The shop anticipates selling 600 Mountain bikes, 250 Dirt bikes and 150 Leisure bikes. Monthly common fixed costs which can’t be separated to any product are $1,000,000 and income tax rate is 40%. Required) 1. What is unit...
Head-First Company now sells both bicycle helmets and motorcycle helmets. Next year, Head- First expects to...
Head-First Company now sells both bicycle helmets and motorcycle helmets. Next year, Head- First expects to produce total revenue of $585,000 and incur total variable cost of $372,000. Total fixed cost is expected to be $60,000. Required: 1. Calculate the break-even point in sales dollars for Head-First. Round the contribution margin ratio to four decimal places and sales to the nearest dollar. 2. Check your answer by preparing a contribution margin income statement. Required: 1. Calculate the break-even point in...
You are considering opening a bicycle shop. You will sell bikes for all ages, genders, abilities,...
You are considering opening a bicycle shop. You will sell bikes for all ages, genders, abilities, and usage. (beginners and advanced; recreational riders, those who use it for their main mode of transportation, mountain bikers, racers, etc.) However, you are still not sure if it’s worth the investment so you decide to do some planning. Specifically you want to assess the marketing environment and do some research. What will you try to find out and how will you go about...
Giro Inc. manufactures and sells bicycle safety helmets. Price and cost data for the product follows:...
Giro Inc. manufactures and sells bicycle safety helmets. Price and cost data for the product follows: Selling price per unit $25.00 Variable costs per unit:         Direct Materials 10.50         Direct Labour 5.00         Manufacturing overhead 3.00         Selling expenses 1.30                 Total variable cost per unit $19.80 Annual total fixed costs:         Manufacturing overhead $192,000         Selling and administrative 276,000                   Total fixed costs $468,000 Forecasted annual sales volume in units 120,000 Required: Calculate Giro’s margin of safety in...
QUESTION TWO Flemington Bikes sells racing bikes on credit. It uses the ageing of accounts receivable...
QUESTION TWO Flemington Bikes sells racing bikes on credit. It uses the ageing of accounts receivable method for estimating bad debts. On 30 June 2020, the Allowance for Doubtful Debts account had a balance of $8,800 CR before any adjustments. An ageing analysis of the account receivable balance as at 30 June 2020 is provided below. The uncollectable percentages for each age group are based on past experience and are shown next to the respective aged balances. Flemington Bikes is...
Tim’s Bicycle Shop sells 21-speed bicycles. For purposes of a cost-volume-profit analysis, the shop owner has...
Tim’s Bicycle Shop sells 21-speed bicycles. For purposes of a cost-volume-profit analysis, the shop owner has divided sales into two categories, as follows: Product Type Sales Price Invoice Cost Sales Commission High-quality $ 1,150 $ 490 $ 70 Medium-quality 570 270 60 Three-quarters of the shop’s sales are medium-quality bikes. The shop’s annual fixed expenses are $196,500. (In the following requirements, ignore income taxes.) Required: Compute the unit contribution margin for each product type. What is the shop’s sales mix?...
Brad Smith has done some analysis about the profitability of the bicycle shop. If Brad builds...
Brad Smith has done some analysis about the profitability of the bicycle shop. If Brad builds the large bicycle shop, he will earn $60,000 if the market is favorable, but he will lose $40,000 if the market is unfavorable. The small shop will return a $30,000 profit in a favorable market and a $10,000 loss in an unfavorable market. At the present time, he believes that there is a 50-50 chance that the market will be favorable. His former marketing...
A bicycle shop sells two styles of a road bike, 10-speed and 14-speed. During the month...
A bicycle shop sells two styles of a road bike, 10-speed and 14-speed. During the month of September, the management expects to sell exactly 45 road bikes. The monthly profit is given by P(x,y)=−(1/9)x^2−5y^2−(1/9)xy+10x+65y−100, where x is the number of 10-speed road bikes sold and y is the number of 14-speed road bikes sold. How many of each type should be sold to maximize the profit in September?
Python Programming Question: Objective: Sum of Numbers. Design a program with a loop that asks the...
Python Programming Question: Objective: Sum of Numbers. Design a program with a loop that asks the user to enter a series of positive numbers. The user should enter "0" (zero) to signal the end of the series. After all the positive numbers have been entered, the program should display their sum. The program should display the following: • Contain proper indentation. • Comments (Blocks or Lines). • Good Variables initializations. • Good questions asking for the parameters of the code....
In your own words, What are some of the obstacles that LGBTQ people face in society?...
In your own words, What are some of the obstacles that LGBTQ people face in society? How are those obstacles similar to other “out-groups”? How are they dissimilar?
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT