Python Forum
Arithmetic Application design
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Arithmetic Application design
#1
Can I please get some help with my coding assignment! I'm really stuck.

The question is: You have recently been employed by a company that specialises in application development. Your first
project is to help them design an application using Python that will help shoppers determine which
products to buy at the supermarket and price after a percentage discount is applied.

At a minimum, your application will:
1. Provide a menu asking the type of calculation needed (discount or best buy)

2. Based on the selection appropriate prompts should be presented

3. For best buy;
a. Ask for the cost of at least two products
b. Ask for the mass or quantity of the products
c. Tell the user which product is better value

4. For discount, consider a case where either the percentage discount is given, or the prices before and
after discount are given.
a. For the first case, you should ask the user for the ticket price and percentage discount then tell
the user the unit price after discount
b. For the second case, you should ask the user for the price before discount and after discount in
order to inform the user of the percentage discount
c. Finally, tell the user of the best deal

For extra credit:
You may consider adding extra functionality to the application, for example your code could:
a. Consider the quality of the product in its overall value (cheaper is not always better!)
b. Incorporate a shopping list with costing
c. Code accounts for misuse (equal value, incorrect inputs)
d. Consider using loops and prompts in order to avoid having to re-run the code to perform another
calculation. Remember to give the user the option to quit!

I m really sorry if this is too much, but my code isn t working... at all. I just have a feeling that I messed everything up.
Reply
#2
Please post what you have written so far and any error messages you receive. When posting it helps if you use the tags in the editor to make the code stand out. The blue and yellow thingie is for Python code. The red X is for errors. The block with the up-arrow is for output that was not an error.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Arithmetic and python pythonuser1 1 1,604 Apr-12-2020, 07:11 PM
Last Post: pythonuser1
  Arithmetic exercice with python pythonuser1 4 2,095 Apr-11-2020, 04:00 PM
Last Post: pythonuser1
  Arithmetic operations using lists yassine 2 2,393 May-02-2018, 06:20 PM
Last Post: j.crater

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020