1. Total Sales Design a program that asks the user to enter a store’s sales for each day of the week. The amounts should be stored in a list. Use a loop to calculate the total sales for the week and display the result.
Q: Design a program in python that asks the user to enter а store's sales for each day of the week. The…
A: Python used to answer this question
Q: This is a special value that signals when there are no more items from a list of items to be…
A: Correct option: a
Q: . Continuously prompt the user to enter a word until the user enters q. 2. Store the entered words…
A: logic:- use while True to input a word continously. use if condition to check if word=='q'…
Q: 1. Ask how many pasties are being purchased. Use a loop to ask for the flavor and price of each…
A: while(True): flav_list = [] flav_price = [] print("Welcome to Andy's Cornish Pasties!")…
Q: Match the terms to their corresponding descriptions This loop structure can be used when the number…
A: Loop statements:- A statement which is executed repeatedly is called loop statement. There are…
Q: %3D Write a for loop that will display 5 times the sentence The number of repetitions of this…
A: Write a MATLAB code which prints the statement given for 5 times with the number of times it has…
Q: PYTHON PROGRAMMING ASSIGNMENT PYTHON PROGRAMMING LANGUAGE ASSIGNMENT Create a new text…
A: I have uploaded the Images of the code, Typed code and Output of the Code. I have provided…
Q: Distance File Modify the Distance Calculator program that you wrote for Programming Problem 1 so it…
A: Start Visual Studio (or Visual Studio Express). Update an existing project “DistanceFileProj”.…
Q: Assume the variable authors references a list. Write a for loop that displays each author in the…
A: The complete code is given below with the output.
Q: Create a list object
A: Here is the code which is mentioned below :
Q: subject: microprocesor and assembly language Write a program that displays a string in all possible…
A: Answer :- PROGRAM INCLUDE Irvine32.inc.datacount DWORD ?.codemain PROC mov eax, 0 + (0 * 16)…
Q: A college must track equipment items purchased using special funds. Create a struct name Inventory…
A: Answer: Here I have write a code in C++ (CPP) please find the code below: I have covered all the…
Q: TODO list This is an item on the todo list X This is another item on the todo list X Add item
A: <head><meta charset="utf-8"><meta name="viewport"…
Q: structure. Create a menu with that gives the user three choices: Grade Book Grade Book O: Exit 1:…
A: Python program to implement a gradebook application''' # create an empty list of gradesgrades = []…
Q: Instructions MeanMedian.java The mean of a list of numbers is its arithmetic average. The median of…
A: Given: The mean of a list of numbers is its arithmetic average. The median of a list is its middle…
Q: Question 2: Write a Program to calculate max and min of rain fall over 12 months, with below…
A: Description: The code is written in Python language. It uses lists and loops to find out the max and…
Q: Create a program that outputs a given number of unique random values between 1 and 100. The program…
A: Task :- Create a python program to generate random numbers. Python program :- import random n =…
Q: write a while loop that asks the user to enter two numbers. The numbers should be added and the sum…
A: We have to write a python program that will ask the user to enter two number and displays the sum of…
Q: ftware allows the user to key in two numbers (the beginning and ending values), and then a…
A: (HTML & Javascript) Create a nested loop program that generates a multiplication table, but…
Q: Character Picture Grid Say you have a list of lists where each value in the inner lists is a…
A: In Python, print() method is use to display the output in the screen or console. print() method has…
Q: Question 2: Write a Program to calculate max and min of rain fall over 12 months, with below…
A: Description: The code is written in Python language. It uses lists and loops to find out the max and…
Q: Python program language You and a friend sell your farm goods at a local farmers market 4 weekends…
A: Python program language You and a friend sell your farm goods at a local farmers market 4 weekends…
Q: c++ circular linked list program where you need to create a playlist of songs and you need to loop…
A: The answer for the above mentioned question is given in the below steps for your reference.
Q: Create a program that reads the total monthly sales for an entire year. The program outputs the…
A: Store all the months name in a list Now, input all the sales for each month Now find the average and…
Q: Create a program that draws a rectangle in text mode given the dimensions provided by the user.…
A: As no programming language is mentioned, it is solved using basic Python
Q: Create a program that stores the names of the user's friends in a list. The program should allow a…
A: // Friend structure definition struct Friend{ // name for name of friend string name; //…
Q: 15. Speed Conversion Chart Your friend Amanda, who lives in the United States, just bought an…
A: Please find the answers to the above questions below:
Q: mions Add Item. Vien Items. Delete Items and Exit From the program our program and display a list of…
A: Java code: import java.util.*;class items{class node{int data;node link;}node root;void…
Q: Lottery Number Generator:Design a program that generates a seven-digit lottery number. The program…
A: 1. Assign to the variable- "noDigits", the value- "7" 2. For "noDigits" times, 1. Generate a…
Q: (HTML & Javascript) Create a nested loop program that generates a multiplication table, but instead…
A: I have provided HTML CODE( having internal JS) along with CODE SCREENSHOT and OUTPUT…
Q: 2) Travel List Program Create a travel list program that does the following: a) Display a list of at…
A: Answer:
Q: anugage in python Design a program that asks the user to enter a store's sales for each day of the…
A: The store sales consists of sales of stores in the order of each day. Everyday's sales must be…
Q: :Nested loops a. is a command that generate matrices. b. is a kind of programming structure that has…
A: Nested Loop Option b. Is a kind of programming structure that has loop inside another loop
Q: Design a program that generates a seven-digit lottery number. The program should generate seven…
A: Since programming language not mentioned using python language.
Q: Create a function positive_sum(my_list) that would calculate the sum of positive values in the list.…
A: len is used to find the length of list and the list indexing ranges from 0 to n-1 if there are n…
Q: Design a program that asks the user to enter a store's sales for each day of the week. The amounts…
A: days = ["Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday"]sales = [] for…
Q: Number Analysis Program Design a program that asks the user to enter a series of 20 numbers. The…
A: Define function list with lst as parameter Define variables lowest, highest and total. Use for…
Q: PYTHON PROGRAMMING LANGUAGE Create a new text document called names.txt (this is done by hand -…
A: Here, you need to write three functions such as main, readFunction and writeFunction. Main function…
Q: Lottery number generator: Write a program that generates a seven-digit lottery number. The program…
A: Step-1: StartStep-2: Declare a empty listStep-3: Start a loop from i=0 to 6 Step-3.1: Declare a…
Q: Design a program that lets the user enter the total rainfall for each of 12 months into a list. The…
A: Note: Answering the code in python as no language is mentioned. Input : The total rainfall for each…
Q: 3- Write a program that calculates the average of several numbers entered by the user. The program…
A: HINT:- use regex to check for floating number. complete program along with screenshot is available…
Q: 15. Payroll Report Write a program that displays a weekly payroll report. A loop in the program…
A: The given problem is to be solved in a progamming format where the program will read the employee…
Q: Lab Goal : This lab was designed to teach you more about list processing and algorithms. Lab…
A: Since you did not specify any language, I will write the program in python.
Q: lanugage in python Question: Design a program that asks the user to enter a store's sales for each…
A: #In python as you know indentations play a major role and it signifies the end of loop tsales=0.0;…
Q: 10. Largest and Smallest Write a program with a loop that lets the user enter a series of integers.…
A:
Q: prompt user to enter a number num this num would be set as the range the user to enter other…
A: First, create an empty list. Next, accept a list size from the user (i.e., the number of elements in…
Q: You have been asked to write an application that automatically grades a quiz. The quiz has 15…
A: Here is complete program in python of QUIZ GRADING APP ;
Q: .Lists: Write a program that asks the user to input numbers. They should type them in a line with…
A: Algorithm: Start Enter First n no. on input list Print original list Sorted list element for…
1. Total Sales
Design a
amounts should be stored in a list. Use a loop to calculate the total sales for the week and
display the result.
Trending now
This is a popular solution!
Step by step
Solved in 2 steps with 1 images
- C# Gas Station Program: Write a program that allows the users to select items that are for sale in a gas station. Candy, Soda, Pizza, Muffins and the list goes on. Keep a running total of the items ordered (loop until user is done ordering) when they are done ordering items, output the total salessales.A list called parts has already been created and filled with data. It has a length of 5. Write a for loop that prints each value in this list.Largest Value. Create a program that uses a list to store input values, and outputs the largest value entered at its location in the list. The program shall accept input values until the user enters -1. And Next Movie Time. Create a program that shows the user when the next showing for a movie is. The program first reads the different showing times (only hours) in a 24-hour clock format (that is, 1PM is 13, 6PM is 18, etc.). The program then asks when a customer wants to go to the movies. The program replies with the time for the next showing. If the next showing matches the hour input by the customer, show the next showing after that. If the next showing is past the last one, the program shall output, “There are no more showings.”, Here is a sample execution: I am trying to use these programs as practice for practicing lists, strings and inputs. But am struggling a bit after laying down the foundation on each problem. I plan to put them into thonny to compare them with my own work.
- c++ double linked list program where you need to create a playlist of songs and you need to loop the songs in the playlistC) Create a program that generates an eight-digit account number. The program should generate seven random numbers, each in the range of 0 to 9, and assign each number to a list element. Then write another loop that displays the entire contents of the list without the [].1. Lottery Number Generator:Design a program that generates a seven-digit lottery number. The program should generate seven random numbers, each in the range of 0 through 9, and assign each number to a list element. (Random numbers were discussed in Chapter 6.) Then write another loop that displays the contents of the list python coding please
- Assume the variable authors references a list. Write a for loop that displays each author in the list.lanugage in python Design a program that asks the user to enter a store's sales for each day of the week. The amounts should be stored in a list. Use a loop to calculate the total sales for the week and display the result.Lottery number generator: Write a program that generates aseven-digit lottery number. The program should have a loopto generate seven random numbers, each in the range 0through 9 and assign each number to a list element.2. Write another loop to display the contents of the list.3. Tip: You will need to create/initialize your list before you canassign numbers to it.4. Use program 7-1 sales_list as an example. You will start witha seven-digit lottery number that contains all zeros. Then inyour loop, you will assign a random number instead ofgetting the data from the user.Turn in your program to the practice assignment link in coursecontent.
- Code the following write a For loop that iterates through a list of products (any number of products) that are sold in a store and prints them. [examples: fan, fridge, freezer, washer, etc.]. b) copy the code from a) and use the same loop to add more products(any)to the list. You must use list methods to add. c) Copy the code from c), and search for a specific product (any), if the product is found the loop is terminated. Make sure to use else in the for loop. d) Create an empty dictionary, then add 4 entries (the key is a word, the value is word’s frequency in a book). [example: {‘street’: 23}]. e) Create a for loop to access the entries from d) and print the keys and values. f) Copy the code from e) and search for a specific key in the dictionary and prints its value. The program prints a message “ the {key} is not found”, if the key does not exist. ..?Unique Random. Create a program that outputs a given number of unique random values between 1 and 100. The program shall ask the user for the number of random values to generate. Hint: Use a list to store the random values being generated, and use the in (or not in) operator to check whether a values was already generated before adding it to the list. Notice that the program cannot generate more than 100 unique valuesTrue or False When you create a List object, you do not have to know the number of items that you intend to store in it.