Perform the following tasks on your lab machine: 1. Create a list with the following numbers (100, 300, 500, 2300, 2500) using the range function and answer the following: a. Print the length of the list b. Print the elements in the list such that each element appears in a separate line c. Print the average of all the items in the list d. Replace the maximum element of the list with the average value of the list e. Insert a new element at index 7. The value of the new element is t
Tag: chegg homework help
3 Tuple Comprehension a Create a tuple with numbers from 1 to 10 b Create a new tuple that
3. Tuple Comprehension: a. Create a tuple with numbers from 1 to 10. b. Create a new tuple that contains the squares of each number in the original tuple using tuple comprehension. c. Print the original and new tuple. 4. Dictionary and List: a. Create a dictionary of items and their prices. b. Create a shopping list as a list of tuples, where each tuple contains an item and the quantity you want to buy. c. Calculate the total cost of your shopping list. d. Print out the items and quantities in
Please in MIPS AssemblyIn this Project we will add a few more helpful subprograms to below
# Please in MIPS AssemblyIn this Project, we will add a few more helpful subprograms to below file.Notes: assume your subprograms already have inputs in the ‘a’ register(s) ($a0…$a3) and should store output(s) in the ‘v’ register(s) ($v0, $v1).Notes: no need to get user input or print output values, other subprograms in utils.asm can be used to do that.Notes: don’t ‘exit’ at the end of your subprogram, you need to return to the calling program using a jump operation NOR – take two input par
1 Create a TypeScript program that repeats the values 1 to 100 with the following loop
1. Create a TypeScript program that repeats the values 1 to 100, with the following loop operation: a. The first 10 loops display odd values (1, 3, 5, …, 19). b. The second 10 repetitions display even values (2, 4, 6, …, 20). c. And so on until we get to 100 repetitions. d. Each multiple of 10 displays the number of numbers displayed. e. Example output: Quantity: 25 2nd 10 repetitions: 12 14 16 18 20 Quantity: 80 3rd 10 repetitions: 2
1 Write a program in MARIE assembly language to perform following code segment Test your code
1. Write a program in MARIE assembly language to perform the following code segment. Test your code thoroughly using the MARIE simulator with values of X=10, X=20, and X=30. What is the value stored in X and Y by the end of execution? Include comments for each line of instruction in your program (12 points). X=10 Y=0 while X!=0 do Y=X X=X-1 endwhile while X!=0 do Y=X X=X-1 endwhile 2. Consider the following program in MARIE assembly language. Complete the table detailing the RTN
Wordle is a popular online word game Wordle There are instructions given at the official site for
Wordle is a popular online word game called Wordle. There are instructions given at the official site for Wordle, but essentially, it is a word guessing game. In this game, each guess is marked by indicating which letters of your guess match a secret answer. A Green mark indicates that you have found a correct letter in the correct position in the secret word. A Yellow mark indicates that you have found a correct letter but in an incorrect position relative to the secret word. A Grey mark indica
1 This program uses a loop to display a 2 table showing the numbers 1 through 10 3 and
Python please 6. See program 4-13. Using similar code, write a program for the multiplicatin table of 7 starting with 1 and ending with 34. That is the table should look like this:7 times 1 is 77 times 2 is 14……. 7 times 34 is …Submit the program nd the output. Look at the flowchart for program 4-8.7. program 14 has the code that looks likefor kph in range (…, …, …) . The third argument is the increment. consider the following code:for x in range (10, 100, 5): print(x)What do