Thursday
April 24, 2014

Homework Help: Computer Science(python)

Posted by Michael on Friday, October 12, 2012 at 4:02pm.

Service Price
Basic Lawn Mowing $20
Trimming and Sweeping $25
Pool Cleaning $50
Watering Plants $10

Prompt the user to input whether or not they want each of the services. You can assume the input will be a character that is either a 'y' or an 'n'. Print out the total of the bill. Write this as efficiently as you can, using as few comparisons and if statements as possible, no more than 4 if statements.

Example run:
Enter your choices as y or n.
Do you want Basic Lawn Mowing? y
Do you want Trimming and Sweeping? n
Do you want Pool Cleaning? y
Do you want Watering Plants? n

The total for your services is $70
Thank you for your business!



I'm having a little trouble with this problem. Anyone got any ideas

Answer this Question

First Name:
School Subject:
Answer:

Related Questions

microeconomics problems - The GreenAcres mowing company wants to buy the new ...
Math - A lawn service will fertilize a lawn at at a rate of 59cents per 100 ...
Math Problem Solving - Jay and Mark run a lawn mowing service. Mark's mower is ...
Economics - ob's lawn-mowing service is a profit-maximizing, competitive firm. ...
English - I am still having a few problems with capitalizations. I the sentence ...
Economics - You have opened your own word-processing service. You bought a ...
ECO 550 - 1) You have opened your own word-processing service. You bought a ...
applied physics - a gardener pushes a mower a distance of 900m in mowing a yard...
accounting - As a team, prepare the income statement of Maltbee Lawn Service for...
computer science - how do i write a program in python for an atm machine

Search
Members