Task 3 Binary Logic - Food vending Machine in Python

Nov 21st, 2013
Price: $45 USD

Question description

Task 3 – Binary logic


A food vending machine accepts 10p, 20p, 50p and £1 coins

One or more coins are inserted and the current credit is calculated and displayed.

A product is selected from those available. The system checks to see if there is enough credit to

purchase the product chosen.

If there is not enough credit the system displays an error message.

If there is enough credit it dispenses the product, updates the credit available and displays the

remaining credit.

Further selections can be made if there is enough credit.

The vending machine simulation should have five products and prices.

Design, code, test and evaluate a program for this simulation.

Tutor Answer

(Top Tutor) simba
School: Cornell University

Studypool has helped 1,244,100 students

Review from student
" Wow this is really good.... didn't expect it. Sweet!!!! "
Ask your homework questions. Receive quality answers!

Type your question here (or upload an image)

1828 tutors are online

Brown University

1271 Tutors

California Institute of Technology

2131 Tutors

Carnegie Mellon University

982 Tutors

Columbia University

1256 Tutors

Dartmouth University

2113 Tutors

Emory University

2279 Tutors

Harvard University

599 Tutors

Massachusetts Institute of Technology

2319 Tutors

New York University

1645 Tutors

Notre Dam University

1911 Tutors

Oklahoma University

2122 Tutors

Pennsylvania State University

932 Tutors

Princeton University

1211 Tutors

Stanford University

983 Tutors

University of California

1282 Tutors

Oxford University

123 Tutors

Yale University

2325 Tutors