Python Basics-Day 2 Assignment-shoppingcart Shopping Cart Program

Source: Internet
Author: User
Job Requirements

1, after starting the program, enter the user name password, if it is the first time to log in, let the user enter wages, and then print the product list

2. Allow users to purchase goods according to the product number

3, the user selects the goods, checks whether the balance is enough, enough on the direct debit, not enough on the reminder

4, can withdraw at any time, exit, print purchased goods and balance

5, in the user process, the key output, such as the balance, the product has been added to the shopping cart and other messages, need to highlight

6, the user after the next login, enter the user name password, directly back to the last state, that is, the balance of the last consumption or those, re-login to continue to purchase

7, allow to query the previous consumption records

Python Basics-Day 2 Assignment-shoppingcart Shopping Cart Program

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.