Write a program which requests that requests a product name

Assignment Help Python Programming
Reference no: EM132373948

Python Assignment -

Stages of Assignment:

Stage 1: Data Entry

Write a program which requests that requests a product name and a stock number. Store that data in a List or a Dictionary. After the user has entered data, request that the user enters Y or N to continue. If they enter N, print the list of products and stock numbers to the screen. If they enter Y, repeat the first step.

Stage 2: Validation and Totals

Building on stage 1, you now need to ensure that the program checks for valid entries in each case, and converts the text to the appropriate format.

You need to:

  • Ensure that a stock number and product name were entered, If any of these were not entered, do not record that item and go straight to asking if they wish to continue.
  • Ensure that the user enters either "Y", "y", "N" or "n" when asked if they wish to continue. Continue to ask until they enter a valid result.
  • Ensure that the stock number is a number.
  • Output the total number of products held in stock.

Stage 3: Product List and Menu

This involves three separate jobs:

  • Create a menu with multiple options
  • Add products separately and allow the user to select the product.
  • Allow multiple stock numbers to be entered for each product and record the total.

Stage 4: Importing, Exporting and Reporting

In the final stage we introduce the ability to load product lists, export stock levels, and compare stock levels with expected stock levels to generate a report. You will be provided with a sample file for stock and a sample file to compare against.

This will require additional research into Python

Now that things are getting more complex, you are expected to use functions to manage these tasks in your program.

Attachment:- Python Assignment Files.rar

Reference no: EM132373948

Questions Cloud

Primary functions of the study of learning : Are behaviorism and cognitive some of the primary functions of the study of learning?
Where do our moral tendencies come from : Where do our moral tendencies come from? What approximate percentage would you attribute to these source(s) (e.g., if, say, one source was from parents
Discuss the importance of treating substance use disorders : Discuss the importance of treating substance use disorders with a family systems approach. Why would treatment not be effective if you do not include the family
Explain the uniqueness of the individual person : Regarding uniqueness, one asks: How can one possibly explain the uniqueness of the individual person in a scientific manner
Write a program which requests that requests a product name : Write a program which requests that requests a product name and a stock number. Store that data in a List or a Dictionary
Specified potential causes of personality : What does research say about the specified potential causes of personality disorders? Please use a detailed explanation and citations
Identify and describe the organizational holdings at risk : ICT 205 CYBER SECURITY-KING’S OWN INSTITUTE-Australia-Identify and describe the potential security threats to the organization.
Topic in industrial and organizational psychology : Work-based assessment is a central topic in industrial and organizational psychology. Work-based assessments are often criticized for lack of quantitative
Use MS-Excel to plot a graph of the Demand Curve for hats : Use MS-Excel to plot a graph of the Demand Curve for hats. How much must they reduce the price of the hats in order to sell an additional hat

Reviews

Write a Review

Python Programming Questions & Answers

  Write a python program to implement the diff command

Without using the system() function to call any bash commands, write a python program that will implement a simple version of the diff command.

  Write a program for checking a circle

Write a program for checking a circle program must either print "is a circle: YES" or "is a circle: NO", appropriately.

  Prepare a python program

Prepare a Python program which evaluates how many stuck numbers there are in a range of integers. The range will be input as two command-line arguments.

  Python atm program to enter account number

Write a simple Python ATM program. Ask user to enter their account number, and print their initail balance. (Just make one up). Ask them if they wish to make deposit or withdrawal.

  Python function to calculate two roots

Write a Python function main() to calculate two roots. You must input a,b and c from keyboard, and then print two roots. Suppose the discriminant D= b2-4ac is positive.

  Design program that asks user to enter amount in python

IN Python Design a program that asks the user to enter the amount that he or she has budget in a month. A loop should then prompt the user to enter his or her expenses for the month.

  Write python program which imports three dictionaries

Write a Python program called hours.py which imports three dictionaries, and uses the data in them to calculate how many hours each person has spent in the lab.

  Write python program to create factors of numbers

Write down a python program which takes two numbers and creates the factors of both numbers and displays the greatest common factor.

  Email spam filter

Analyze the emails and predict whether the mail is a spam or not a spam - Create a training file and copy the text of several mails and spams in to it And create a test set identical to the training set but with different examples.

  Improve the readability and structural design of the code

Improve the readability and structural design of the code by improving the function names, variables, and loops, as well as whitespace. Move functions close to related functions or blocks of code related to your organised code.

  Create a simple and responsive gui

Please use primarily PHP or Python to solve the exercise and create a simple and responsive GUI, using HTML, CSS and JavaScript.Do not use a database.

  The program is to print the time

The program is to print the time in seconds that the iterative version takes, the time in seconds that the recursive version takes, and the difference between the times.

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