Python Forum

Full Version: Python homework assigment
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
first of all u wanna apologize if it's asking too much, but i need if someone can here who's decent with python to write me a small program that's gonna be like this :

When you start a program it shows up a menu like this :
Greetings, please select down below what would you like to buy from our Adobe Products Shop :

(now it shows up products with each number representing it)

Photoshop 30$
Ilustrator 25$
Animate 30$
Flash 20$
and below this menu it should says like :

Please note that if you buy all four of our products you'll make a 15% discount of the total price.

So now if they type 1 or 2 or 3 or 4, or 1 and 2 and 1 and 3 and so on the program will calculate the final price value and show the message like this :

You successfuly bought the Photoshop and Flash, your price is..

But if the buyer selects all four of them it should show like :

Thank you for choosing all of our products, you made a total 15% discount of the total value and your price is ..

I'm in high school and we're learning programming right now and i need a lot of catching becuase i missed some of my classes. Our professor gave us this assigment and we must have it done asap. Please if anyone have some spare time to build this for me and share his source code it would help me big time and maybe to python learners and so for you to test your Python skills a little bit!
We don't need to test our skills by doing your homework for you and you won't learn programming if you don't do it yourself.
I understand that, but i really need this done so i came here to ask for the help if it's possible, after all, it's a homework section.
This area is for helping with code you have written for your homework, that you have errors with or doesn't function as expected that you can be pointed out where you are going wrong.

try this to get you started
import cheat

cheat.homework(my_assignment, output_location)
just replace my_assignment with your assignment and output_location with where you would like the generated python file to be saved.