Write a program to find all numbers between 24 and 1337 (both included) that are divisible by 2, but are not multiples of 9. The result obtained should be printed in a list called my_numbers.
Q: Create a program which totals a list of numbers that are read in using the input statement. The…
A: The program for given problem statement is written in python l=[]while(1): a=int(input())…
Q: Write an algorithm as following: 1- Create a list called Numbers 2- Prompt the user to enter Integer…
A: Given that write an algorithm as following 1. Create a list callsd Numbers 2. Prompt the user to…
Q: Write a program to ask the number of students in a class, their names and their gender. Display the…
A: Here I have taken input from the user and then stored the number into a variable. Next, I have…
Q: Task 3. Write a program to print only those numbers from a given list that satisfy the following…
A: Please find the answer below :
Q: In python, create a code that accepts the size of a list as an input (n). It will print out all the…
A: INTRODUCTUON: The Answer is
Q: Write code that randomly generates a number, then loops that many times while asking the user to…
A: Program: import random#genrates a random number between the…
Q: solve in python: Write a program that reads a character, then reads in a list of words. The output…
A: First, we will input the character and string. Then with the help of for loop, we will find words…
Q: .Write a python program to find the largest number in the list. 2)
A: Note - We are authorized to answer one question at a time since you have not mentioned which…
Q: When analyzing data sets, such as data for human heights or for human weights, a common step is to…
A: Program instructions:Create a function ‘GetMinimumInt()’, which is going to find minimum element…
Q: The program takes a list and prints the second largest number in the list.
A: Write a program that takes a list and find the second largest element of it. NOTE: As you have not…
Q: add a grade to a list using the grade average code below. Then print the list with a print statement…
A: print("What was your test grade? or 999 to quit")grade1 = float(input()) list = [] sum = 0count = 0…
Q: Q1: Write an algorithm to find the smallest integer number in a list of size (10 )?
A: An algorithm is a step by step method of solving a problem. It is commonly used for data processing,…
Q: Develop the pseudocode for a program that takes a list of integers (given, call it LIST) and returns…
A: The answer is given below:-
Q: Prompt the user to enter four numbers, each corresponding to a person's weight in pounds. Store all…
A: python program:- lst = [] w1 = float(input("Enter weight 1: ")) w2 = float(input("Enter weight 2:…
Q: Consider again a list of hourly temperature readings from a fridge, in degrees Celsius, as described…
A: Required code for the python program has been provided in the next step with comments for…
Q: readings from a fridge, as described in Question 9. Write a program that prints the hour at which…
A: Please check the step 2, 3, & 4 for solution of the question
Q: When analyzing data sets, such as data for human heights or for human weights, a common step is to…
A: To find the number of elements in array, use length for arrays
Q: Not sure how to do this question: Write a program that first gets a list of integers from input.…
A: def output_ints_less_than_or_equal_to_threshold(user_values, upper_threshold): for value in…
Q: Consider again a list of hourly temperature readings from a fridge, in degrees Celsius, as described…
A: Algorithm: 1. Input List 2. Put index as 0. 3. Check length if index is less than list 4. increment…
Q: Write a Python code of a program that asks the user to enter ten numbers then display the total and…
A: Create 3 variables for sum, count and average. Using for loop tae 10 inputs from user Check number…
Q: Rewrite the program that prompts the user for a list of numbers and prints out the maximum and…
A: Accept input in infinite loop Exit from loop when user enters done min function returns the minimum…
Q: When analyzing data sets, such as data for human heights or for human weights, a common step is to…
A: Use infinite loop to accept input and break from the loop when user enters -1 and then invoke the…
Q: Add a print statement in the program below that prints all of the entries in the list at the end.
A: height and name are initially lists and they are updated as return values and this makes previous…
Q: A list I that containing some integers is given below. Find the output of the code if the user…
A: Solution: Given,
Q: Create a python program that generates an eight-digit account number. The program should generate…
A: Given data is shown below: Create a python program that generates an eight-digit account number.…
Q: Write a program to take some names as input and sort the list in ascending order.
A: The required Java code is given below: import java.util.Scanner;public class AscOrder{ public…
Q: Write a program using pyton where the user enters names using the keyboard. You should put all the…
A: Algorithm: Create a list Create a flag variable to count the names in the list Input name from the…
Q: t allows the user to enter the series of game points, then -1 to signal the end of the list.
A: Approach Here, while loop executes until the user entered -1. In each iteration, the sum is computed…
Q: In python, create a code that accepts the size of a list as an input (n). It will print out all the…
A: here in this question we have asked to write a python program which take a list of size n as input…
Q: In Python use the Design Recipe to write a function, count_odds, that consumes a list and two…
A: Program Instructions:Write the function header and type contrast of the program.Write description…
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: a program that asks the user to input 2 lists of numbers, 5 numbers per y the common numbers in the…
A: Introduction of Program: The C++ program takes 5 elements in the first list and 5 elements in the…
Q: When analyzing data sets, such as data for human heights or for human weights, a common step is to…
A: import java.util.Scanner;public class LabProgram { public static void main(String[] args) {…
Q: Create a program that accepts n numbers and searches for any number in the list.
A: The code is given below.
Q: Write a Python program using List that prompts the user to enter the total rainfall for each of the…
A: A blank list, rain_fall, is declared for storing rainfall for each month. A list of months is made…
Q: Create a program that generates an eight-digit account number. The program should generate eight…
A: Declare List and String to store account number Then using for loop generate random times and store…
Q: The code below prompts the user to enter their full name, and then converts the name to a list.…
A: I give the code as per your requirement along with output and code screenshot
Q: Write a single function • that squares each item of a list, t • then sums all the items in the list,…
A: The required code for the python program is provided in the next step.
Q: Write a loop that replaces each number in a list named data with its absolute value in Python
A: The problem is based on the basics of loops in python programming language.
Q: A Latin square is an n by n list filled with n different Latin letters, each occurring exactly once…
A: Given: Latin Square or not.
Q: Split the following string into a list by splitting on the space character: U "NOS is going…
A: The commented codes and outputs are below of all programs.
Q: Write a program to add six numbers into list using the input box. When clicking on commandi square…
A: #include <iostream>#include <vector>using namespace std; int main() { // your code goes…
Q: When analyzing data sets, such as data for human heights or for human weights, a common step is to…
A: Code: //Java program to adjust the data setsimport java.util.Scanner;// starting point of the…
Q: Design a program that asks the user to enter a series of 20 numbers. The program should store the…
A: Since programming language not mentioned using python language.
Q: Write a program that replaces the name of each month with its three-letter abbreviation. Save it as…
A: A required program is as follows, File name: "months.py" # a) Create a list months = ['january',…
Q: Ask the user to input how many numbers to store in a list. Input the numbers as defined in Step 1.…
A: n = int(input("How many numbers to store in a list? ")) print("Enter", n, "numbers:")lst = [] for i…
Q: Write a program that prompts the user for floating-point numbers until the user enters the word…
A: I have given an answer in step 2.
Step by step
Solved in 3 steps with 1 images
- Pythom: Least Common Multiple, Greatest Common Factor (Grade Factor 1) This assignment assess problem solving ability and the use of the modulo operator, functions, lists and nested loops. The Modulo (%) operator returns a remainder of the two numbers divided. e.g. 9 % 2 will yield a 1 because 9/2 = 4 and the remainder is 1. Write one program that will compute both the Least Common Multiple, and the Greatest Common Factor of two random numbers between 2 and 30. The program will display all factors and multiples of the two numbers. When displaying the multiples of the numbers, only display up to the first input times the second input. Use functions to compute the answers. Loop the program so that the user try again. create the loop so that hitting enter will continue. The example is below: Integer1: 12Integer2: 3 The Multiples of 3 are 3, 6, 9, 12, 15, 18, 21, 24, 27, 30, 33, 36, The Multiples of 12 are 12, 24, 36, The lowest common Multiples is 12 The Factors of 3 are…First exercise: The user enters three words in one line separated by a space between each word and then presses the enter button to print the program with the most word with letters and if it finds two or more words equal in being the longest word? The program has to decide for itself which word to print (Note: It is forbidden to use the .next method for the string and use the nextLine method to replace it) The second exercise: The user enters the number of cycles of row (horizontal lines) and the number of stars (*) in each column (columns) and the program prints the cycles and number of stars based on the data entered by the userPlease do this in C# (C Sharp) Kilogram Converter In a medical office, employees must use weight measurements in kilograms and pounds. Create a program (console based ) that displays a table of kilograms 0-20 and the equivalent weight in pounds. The application should use a loop to display weights in a list box. Use this conversion: 1 kg = 2.2 lbs Calculating Factorials The notation n! represents to the factorial of the nonnegative integer n. The factorial of n is the product of all the nonnegative integers from 1 through n. For example, 3! = 1 x 2 x 3 = 6 9! = 1 x 2 x 3 x 4 x 5 x 6 x 7 x 8 x 9 = 362,880 Create a program (console based ) that lets the user enter a nonnegative integer and then uses a loop to calculate the factorial of that number. Display the factorial on a label or in a message box.
- 3.3.2: Nested loops: Print seats. Given numRows and numColumns, print a list of all seats in a theater. Rows are numbered, columns lettered, as in 1A or 3E. Print a space after each seat, including after the last. Use separate print statements to print the row and column. Ex: numRows = 2 and numColumns = 3 prints:1A 1B 1C 2A 2B 2CComplete the program below so that it prompts the user for two strings (or words) and then prints them out in alphabetical order. For example, Please enter two words: grade class Order: class gradeWrite a program in python that allows the user to enter the total rainfall amounts from your home town for each of 12 months of 2020 into a list. (Use whatever numbers you want) Display the month and the rainfall amounts. The program should calculate and display the total rainfall amount for the year and the average monthly rainfall, Be sure to identify the amounts displayed. Also determine and display the months with the highest and lowest rainfall amounts. When displaying the months with the highest and lowest rainfall, use a string method to display just the first three letters of the months with the highest and lowest rain amounts. REMEMBER to put comments, and write comments through both programs (file creation program, and display program) telling what the program is doing.
- # Debug the following program and submit the CORRECT version ####### Lists names = ["chris","dan", "edgar", "bonnie", "al", "fran"] usernames = ["202999", "100345", "299999", "309890", "298765", "345678"] passwords = ["password", "password123", "abcdef", "asdfjkl;", "ilovemom", "abc123"] menuChoice = 0 # user's menu choice ###### functions def printList(list):# print listprintprint(list)print def displayMenu():# displays user-friendly, creative menu printprintprint("******* MENU *******")print("1. (D)isplay list 1 in original order")print("2. D(I)splay list 2 in original order")print("3. (F)ind an item in the list 1")print("4. (L)ogin")print("99. (E)xit")printprint def isFound(list, value):# finds a value in list returns True if found, False otherwiseif (value in list):return Trueelse: return False ###### main program while (menuChoice != "99"):displayMenu()menuChoice = input("Enter a menu choice: ")# handling menu choices if (menuChoice == "10" or menuChoice.upper().strip() ==…The output of the following is __.List<String> name = new List<string> { "Jane", "Sue", "Annie" };name.Add("Lisa");MessageBox.Show(name.Count.ToString()); Question 13 options: 3 4 5 None of the aboveP3 – Inverted Pyramid of Odd Numbers Write a program that prompts the user to enter an integer from 1 to 15 (that shows the number of lines) and displays an inverted pyramid of odd numbers starting with 1, as shown in the following sample run: Please enter the number of lines: 7 13 11 9 7 5 3 1 3 5 7 9 11 13 11 9 7 5 3 1 3 5 7 9 11 9 7 5 3 1 3 5 7 9 7 5 3 1 3 5 7 5 3 1 3 5 3 1 3 1
- #Data is given in the order: Serial Number | Item Name | Quantity | Priceprice_list = [["01","Keyboard",4,200.0],["02","Mouse",4,150.0],["03","Printer",2,300.0]] #Write Code to increase the price of all the items by 50 taka #Code1 #Write code to add a new item to the list using user input #Code2 print()#Print the list using nested loops #Code3 #Sample output given below: Enter Serial: 05Enter Item Name: MonitorEnter Quantity: 200Enter Price: 50 01Keyboard4250.0-----------------02Mouse4200.0-----------------03Printer2350.0-----------------05Monitor20050-----------------Design a program that lets the user enter the total rainfall for each of 12 months into a list. The program should calculate and display the total rainfall for the year, the average monthly rainfall, and the months with the highest and lowest amounts.Based on coding below, help me fix all the error until the program can be run properly and neatly #include <iostream>#include <iomanip>#include <ctype.h>#include <string> using namespace std; struct nodeBankAccount{string bank_acc_name;string bank_acc_num;double bank_acc_bal; nodeBankAccount*link;}; nodeBankAccount *head, *rear;nodeBankAccount *current;nodeBankAccount *newNode;nodeBankAccount *deleteBank;nodeBankAccount *previous;nodeBankAccount *found; void addBankAccount(){char answer;int insertOption; do{newNode = new nodeBankAccount; cout << "Fill in the details below" << endl;cout << "Bank Account Name: ";cin>>newNode->bank_acc_name;cout << "Bank Account Number: ";cin>>newNode->bank_acc_num;cout << "Bank Account Balance: " << "RM ";cin>>newNode->bank_acc_bal;newNode->link = NULL; if(head == NULL){head = newNode;}else{cout<<"Press 1 to insert the new record at front of the…