Customer name when printing the receipt

Assignment Help Basic Computer Science
Reference no: EM132320262

How do I write a program called a2p1.py that creates a text-based purchasing system for Buy-nary Computing. For this first part, you'll build a menu system that allows customers to purchase quantities of a single type of electronic product. The program should start by asking the customer for their name. Next it should display a menu that asks the user to select one of the following 4 kinds of products:

  1. Desktop Computer ($850 each)
  2. Laptop Computer ($1225 each)
  3. Tablet ($600 each)
  4. Toaster Oven ($85 each)

The user should make their selection by entering the corresponding number. You can assume the user will enter an integer, though they may enter an invalid integer (e.g., <=0, >4). Invalid selections should be handled with a suitable error message and the menu should be repeated. Once the customer has selected a valid product, the program should ask how many of that product the customer would like to buy. Following this, the program should provide the user with their receipt (report the product, quantity, and total cost of the user's order). The program should also be personable and use the customer's name when printing the receipt.

Reference no: EM132320262

Questions Cloud

Academic and business discussions : The evaluation of information technology and its business value are the subjects of many academic and business discussions.
Write the word blue : Draw a Flowchart that performs the following: Ask a user to enter a number. If the number is between 0 and 10, write the word blue.
C programming language : Min Heap program with array implementation that can perform three operations. The user can choose the desired operation
What risks do these devices pose : Your company is thinking of introducing a Bring Your Own Device (BYOD) policy. You have been tasked with assessing the risks associated
Customer name when printing the receipt : How do I write a program called a2p1.py that creates a text-based purchasing system for Buy-nary Computing. For this first part, you'll build a menu system
Completed a higher degree by research : A student who has completed a higher degree by research is required by LTU to deposit a copy of his/her thesis in the library. What type
Virtual team that is working on a project : You are the manager of a virtual team that is working on a project. You uploaded a Word document to an OneDrive account that your team is sharing.
Vertices proceduced by topological-sort : Show the ordering of vertices proceduced by Topological-Sort when it is run in the following dag, where it is assumed that the for-loop of the DFS procedure
Identify the connected componentof g : Show that a DFS of an undirected graph G can be used to identify the connected componentof G, and that the DFS contains as many trees as G

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Identifies the cost of computer

identifies the cost of computer components to configure a computer system (including all peripheral devices where needed) for use in one of the following four situations:

  Input devices

Compare how the gestures data is generated and represented for interpretation in each of the following input devices. In your comparison, consider the data formats (radio waves, electrical signal, sound, etc.), device drivers, operating systems suppo..

  Cores on computer systems

Assignment : Cores on Computer Systems:  Differentiate between multiprocessor systems and many-core systems in terms of power efficiency, cost benefit analysis, instructions processing efficiency, and packaging form factors.

  Prepare an annual budget in an excel spreadsheet

Prepare working solutions in Excel that will manage the annual budget

  Write a research paper in relation to a software design

Research paper in relation to a Software Design related topic

  Describe the forest, domain, ou, and trust configuration

Describe the forest, domain, OU, and trust configuration for Bluesky. Include a chart or diagram of the current configuration. Currently Bluesky has a single domain and default OU structure.

  Construct a truth table for the boolean expression

Construct a truth table for the Boolean expressions ABC + A'B'C' ABC + AB'C' + A'B'C' A(BC' + B'C)

  Evaluate the cost of materials

Evaluate the cost of materials

  The marie simulator

Depending on how comfortable you are with using the MARIE simulator after reading

  What is the main advantage of using master pages

What is the main advantage of using master pages. Explain the purpose and advantage of using styles.

  Describe the three fundamental models of distributed systems

Explain the two approaches to packet delivery by the network layer in Distributed Systems. Describe the three fundamental models of Distributed Systems

  Distinguish between caching and buffering

Distinguish between caching and buffering The failure model defines the ways in which failure may occur in order to provide an understanding of the effects of failure. Give one type of failure with a brief description of the failure

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd