Write simple mathematics (combination of addition, subtraction, multiplication) game program for kids which gives ten randomly generated questions. Your program should keep track of the scores for the right answers and should display them to the students after they finished answering all questions. If the answer is right, print Right!. If the answer is wrong print Wrong! and display the right answer. You should write the program code using the loop concept. Also, print the question numbers, when printing the question
Assume, it is the end of the semester and the students would like to know the GPA they achieved for the subjects they registered and sit for the final exam. You are going to develop a program that can calculate GPA for the students according to the grade they get and the subject credit hours. The point scale for the grade is shown below. Grade Point Scale A 4.0, A- 3.7 ,B+ 3.3, B 3.0, B- 2.7, C+ 2.3, C 2.0, C- 1.7, D+ 1.3, D 1.0, D- 0.7, F= 0 Note the formulae below to calculate the GPA. πΊππ΄ = πππ ππ (πππππππ ππππ ππ π₯ ππππ π πππππ) / πππππ ππππ ππ πππππππππ Please make sure to apply the loop concept.Β
Write a program to get input from a student for their name, how many subjects they want to register, and the subject name. Your program should only ask to enter the subject name according to the number they provide. (Use loop concept). If they want to register for five subjects, your program should ask for the input for the subject name only five times
For this question, alter the code in question 7, count the total numbers in the list, find the average of the numbers in the list and find how many numbers are in the range of 10 - 30. Print the count of the total numbers, an average of the numbers, and the count of the numbers in the range of 10 - 30
Write a program to get numbers as input from the user and save them in a list. The program should keep getting the input until they type, Quit. If they typed Quit, it should stop asking for the input and should print the number they have typed.Β
Write codes that ask the user to write the name in lowercase. If they did not write in lowercase, keep asking them to re-enter the name until they write in lowercase. If they followed as instructed, then print the statement βEntered name is in lowercaseβ
smartphone_brand = βSamsung Galaxy S20β Write a program to find the number of uppercase, lowercase, and numbers in the value assigned to the variable smartphone_brand above. Make sure to use the loop concept to answer the question.
A delicious sambal recipe made in Malaysia gains acclaim in Indonesia and the Philippines.
Write a Python program with features that could be extended from anyΒ ONE (1) of the business innovationsΒ mentioned in the article above. The program should consist of at least THREE (3) functions, ONE (1) repetition and TWO (2) selection structures.Β It should utilize at leastΒ TWO (2) listΒ andΒ ONE (1) text fileΒ to store the data and information. Use comments or docstrings to add justification on how the program relates to the selected business innovation.[60 marks]
Given polynomial, write a program that prints polynomial in Cix^Pi + Ci-1x^Pi-1 + .... + C1x + C0 format.InputThe first line contains a single integer N. Next N lines contain two integers Pi, Ci separated with space, where Pi denotes power and Ci denotes coefficient of Pi.OutputPrint the polynomial in the format Cix^Pi + Ci-1x^Pi-1 + .... + C1x + C0, where Pi's are powers in decreasing order, Ci is coefficient, and C0 is constant. There will be space before and after the plus or minus sign. If the coefficient is zero, then don't print the term. If the term with the highest degree is negative, the term should represent -Cix^Pi. For the term where power is 1, represent it as C1x instead of C1x^1. If the polynomial degree is zero and the constant term is also zero, then print 0 to represent the polynomial.For term Cix^Pi, if the coefficient of the term Ci is 1, print x^Pi instead of 1x^Pi.ExplanationIf N = 4For power 0,
You are given a square matrix A of dimensions NxN. You need to apply the below given 3 operations on the matrix A.Rotation: It is represented as R S where S is an integer in {90, 180, 270, 360, 450, ...} which denotes the number of degrees to rotate. You need to rotate the matrix A by angle S in the clockwise direction. The angle of rotation(S) will always be in multiples of 90 degrees.Update: It is represented as U X Y Z. In initial matrix A (as given in input), you need to update the element at row index X and column index Y with value Z.After the update, all the previous rotation operations have to be applied to the updated initial matrix.Querying: It is represented as Q K L. You need to print the value at row index K and column index L of the matrix A. InputThe first line contains a single integer N.Next N lines contain N space-separated integers Aij (i - index of the row, j - index of the column).Next lines contain various operations on the array. Each operation on each line