Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Starting with a variable text containing an empty string, write a loop that prompts the user to type a word. Add the user's input to

Starting with a variable text containing an empty string, write a loop that prompts the user to type a word. Add the user's input to the end of text and then print the variable. The loop should repeat while the length of text is less than 10 characters.A retail company must file a monthly sales tax report listing the total sales for the month, and the amount of state and county sales tax collected. The state sales tax rate is 5 percent and the county sales tax rate is 2.5 percent. Write a program that asks the user to enter the total sales for the month. From this figure, the application should calculate and display the following:
The amount of county sales tax
The amount of state sales tax
The total sales tax (county plus state)(use functions)
Write a program that keeps vegetable names and prices in a dictionary as key-value pairs.
The program should display a menu that lets the user see a list of all vegetables and their prices, add a new vegetable and price, change the price of an existing vegetable, and delete an existing vegetable and price. The program should pickle the dictionary and save it to a
file when the user exits the program. Each time the program starts, it should retrieve the dictionary from the file and unpickle it.(you have to study for this code be open minded)
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Systems A Practical Approach To Design Implementation And Management

Authors: THOMAS CONNOLLY

6th Edition

9353438918, 978-9353438913

More Books

Students also viewed these Databases questions

Question

Explain the global implications for recruitment.

Answered: 1 week ago

Question

Describe what competencies and competency modeling are.

Answered: 1 week ago

Question

Summarize job design concepts.

Answered: 1 week ago