Answered step by step
Verified Expert Solution
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 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 percent and the county sales tax rate is 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 stateuse functions
Write a program that keeps vegetable names and prices in a dictionary as keyvalue 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 ityou have to study for this code be open minded
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started