Create a friendlier payment system for customers


Assignment:

Background

Programs are more interesting when they involve the user - supplying values to use in calculations, asking for names, and so on. We can get a string from the user via the input() function, and then convert to other types as needed via other built-in functions of Python, such as int(), float(), and bool().

Variables give us the chance to store values for later, recallable by name. We can even repeatedly update the value associated with that name, as a replacement: forgetting the old value forever, remembering the new value until further notice. As procedural programs are very much a sequence of executed instructions, the exact order of when we store (or replace) a value for a variable, and when we look up and use the current value, is an important part of understanding how to create the solution to a programming task.

This project will get us comfortable getting values of various types from the user and using variables while calculating different things. We'll explore control structures next, so be sure to master these more basic tasks.

Scenario

A popular ice cream shop in San Diego, that is cash only and has many visitors from Mexico, wants to create a friendlier payment system for its customers and is looking for a program that can display itemized receipts and change in two currencies - US dollar (USD) and Mexican peso (MXN). Your task is to write a Python program that gets, via user input, all the necessary info of a hypothetical purchase in this shop, then calculates the respective quantities for both currencies, and finally prints the two variations of the receipt.

Procedure

1.Create your Python file

2.When this file is run, ask questions about the ice cream purchase in the following order, storing the answers in variables as needed:

i.What is the cost (USD) of one scoop?

ii.What is the cost (USD) of one topping?

iii.How many scoops do you want?

iv.How many toppings do you want?

v.What is the USD/MXN exchange rate?

vi.What is the face value of the banknote (USD) you're paying with?

vii.What is your name?

3.Print the receipt in USD

4.Print the receipt in MXN

Request for Solution File

Ask an Expert for Answer!!
Business Law and Ethics: Create a friendlier payment system for customers
Reference No:- TGS03037166

Expected delivery within 24 Hours