Question: NEED THIS IN PYTHON C++ 1. Create a list named nums and initialize it with at least 3 numbers (1,2,3). Create a list named hobbies,

NEED THIS IN PYTHON C++ NEED THIS IN PYTHON C++ 1. Create a list named nums and initialize it with at least 3 numbers (1,2,3). Create a list namedhobbies, initialize it with at least 3 of your hobbies, for example['Playing Cricket', 'Reading Books', 'Cooking'). Iterate over the list nums and print

1. Create a list named nums and initialize it with at least 3 numbers (1,2,3). Create a list named hobbies, initialize it with at least 3 of your hobbies, for example ['Playing Cricket', 'Reading Books', 'Cooking'). Iterate over the list nums and print hobbies for each list element, so that the output looks like this: 1 Playing Cricket Reading Books Cooking 2 Playing Cricket Reading Books Cooking 3 Playing Cricket Reading Books Cooking 2. Ask the user for a number, then print a pattern like you can see here below. For the example below, we have assumed that the number entered was 5: 1 22 333 4444 55555 Note: You will probably need a nested loop for this problem. Keep in mind, the example described above assumed the user entered 5, but of course this could be any positive number (less than 15). 3. A video game store sells a video game CD that sells for 990 Rupees each. The store gives quantity based discounts according to the following table: Quantity Range 2-5 6-10 11-15 16 or more Discount (percentage) 6 12 18 30 Write a program that asks the user to enter the number of video games disk purchased. The pro- gram should then display the amount of the discount (if any) and the total amount of the purchase after the discount. An example of possible input and the expected output: Enter the quantity of video games purchased: 14 Total discount: 2494.8 Total purchase amount: 11365.2 Note: I have highlighted the possible input value by a user in yellow. Of course, we need to program for any possible number of games purchased, We expect this quantity to be an integer value (ie, a whole number). 4. Develop a GPA Calculator in Python. The features that you need to include are: a. The student will input the letter grade and units (credit hours) for 3 courses b. The output should be the student GPA, based on his/her performance in the courses cif student GPA is below 2.2, show a message indicating that "Student is on Probation d. If student GPA is above 3.6, show a message indicating that "Student is on the Merit List" Extra checks: make sure the letter grade is correct ('A', 'B', 'C', 'D' or 'F'), also accept the same letters in small case (eg, 'a', 'b', 'c','d', ort) If the letter grade is incorrect, show an error message, and make the program exit without calculating the GPA the grade points for each grade are as follows: Grade A B D F Grade Points 4.0 3.0 2.0 1.0 0.0 An example of possible input and the expected output (round off to 2 decimal places): Enter the letter grade for course 1: A Enter the credit hours for course 1:3 Enter the letter grade for course 2: C Enter the credit hours for course 2:4 Enter the letter grade for course 1: B Enter the credit hours for course 1:4 Student GPA is: 2.91 Note: I have highlighted the possible input values by a user in yellow. Of course, we need to program for any possible choice of letter grades and credit hours. We expect credit hours to be an integer value (le, a whole number). (20 marks)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!