Write a program that will take this dictionary: gradePoints = {"A":4,"B":3,"C":2,"D":1,"F":0} and this list: courseList = ["CST 161","Mat 144","ENG 201","PSY 101","HIS 101"] and randomly use elements from each of these lists : gradeList = ["A","B","C","D","F"] creditList = [3,4] and produce a grade point average.
Q: create tauth table and k-map. F(xソ」)=XYナz.
A:
Q: Consider the Hadamard gate UH and the CNOT gate UCNOT, show that (I2 ® UH)UCNOT(I2 ® UH)\jk) = (-1)*...
A:
Q: Write, compile and test a program that displays the following patterns on the screer b) 1 12 123 123...
A:
Q: Instead of dynamically allocating an array to store the data, your program will will an STL array. E...
A: Explanation: Include the necessary header files. In the main function initialize the array with the...
Q: What is polymorphism? Be sure to include what role virtual functions play in this and the difference...
A: Polymorphism: Polymorphism is an object-oriented programming concept that refers to the ability of a...
Q: In Bubble Sort Ascending Order Show the step by step process on how sorting was done such as first ...
A: answer is
Q: Build the ItemToPurchase class with the following specifications: Attributes item_name (string) item...
A: Step 1 The code is given in the below step
Q: 1.Research is a systematic, formal, rigorous, and exact procedure used to find answers to issues and...
A: Introduction: Research is described as the generation of new concepts, techniques, and understanding...
Q: PLACE .FILL X45A7 LDI R3, PLACE The assembler puts the translated version of the LDI instruction abo...
A: Consider the instructions,PLACE .FILL x45A7LDI R3, PLACE• Here, the LDI instruction follows into the...
Q: /Questions on the Computer Network I Q1/ Assume you have the IP address 220.254.255.x / 28. Finish t...
A: Introduction 1 . IP Address : 220.254.255.x/28 Address 220.254.255.0 1101 1100 . 1111 1110 . 1...
Q: Tunneling is accomplished by the use of a point-to-point transport layer protocol.
A: Introduction: The Point-to-Point Transport Layer Protocol provides demand-driven, multi-protocol vir...
Q: C) Look at the sample webpage below. Write a snippet of JavaScript that implements a click event for...
A: <html> <body> <button id = "clicker-button">Click me! </button> <script...
Q: What is regression testing?
A: Answer : Regression Testing is defined as a kind of software testing to verify that a recent progr...
Q: A semaphore currently has the value 3. A process that attempts to subtract 4 from this semaphore wil...
A: A semaphore currently has the value 3. A process that attempts to subtract 4
Q: 3. Write an application that reads the radius of a sphere then calculates and displays the circumfer...
A: Introduction
Q: What exactly is a Device Controller?
A: Introduction Under the context of computing, a controller is a small hardware device or a software ...
Q: the main objectives is to keep high operational database flexibility for their customers and supplie...
A: There are five factors that influence database performance: workload, throughput, resources, optimiz...
Q: 1. Write an application that prompts for and reads the user's first and last name (separately), then...
A: Answer:
Q: What are the three generations of advancement in wireless security that have taken place throughout ...
A: Introduction: Since the early 1990s, wireless security methods have evolved to provide both increase...
Q: Draw the Enhanced Entity–Relationship (EER) model and the relational schema for the case study below...
A: Answer: There are total 6 Entities which are: Entities: branch, supervisor, staff, member, rent, vid...
Q: Create a web form that has Full name as text input, Lucky number as text input, and favorite colors ...
A: Create a web form that has Full name as text input. Lucky number as text input, and favorite colors ...
Q: What's the distinction between signed and unsigned conditional Jump Instructions? 2- What are the in...
A: Intro Difference between Signed and Unsigned Conditional Jump What are flags those effects on the w...
Q: What is the sociological significance of the mass media and popular culture?
A: Mass Media is a new form of a communication channel to the world. It overpowers the traditional way ...
Q: Using pumping lemma prove that the language L = { aibj | i < j < 2i } is not regular.
A: Answer: Using Pumping Lemma prove that the language L= { aibj | i < j < 2i } is Not Regular.
Q: What is the distinction between sequential and random access?
A: Introduction: We look at how data is written or read to a computer programme when we talk about sequ...
Q: a) consider the employee database . What are the appropriate primary keys? b) Consider the employee...
A: a) The appropriate primary key is written in bold and underlined: employee(person_name, street, city...
Q: Write a C++ program to take two strings from the user, append them together and print the result. Ho...
A: In order to concatenate two strings, C++ has a built in function. To concatenate two strings, strcat...
Q: 7. b) Write a VB 6 program that should take a positive number n as input. Your program should displa...
A: The Visual Basic code is given below.
Q: One of the techniques used in transport layer protocols is the receipt of acknowledgements (such as ...
A: Introduction: This program manages, establishes, and closes the connection between two specified n...
Q: Two endpoints are connected by a single link of rate R- 56kbps and the propagation speed along the l...
A: The answer is
Q: What are some examples of potential applications for cloud-based collaborative tools? Employees' abi...
A: Introduction: A cloud-based collaboration tool isn't only for chatting. Several programmes exist to ...
Q: Take a screenshot of a program Please please please do the homework in a quarter of an hour using C+...
A: ALGORITHM:- 1. Declare all the variables with the given values. 2. Calculate all other values using ...
Q: 1- Write a class declaration named Circle with a private member variable named radius. Write set and...
A: public class Main{ public static void main(String[] args) { Circle c1=new Circle(); //create Circle...
Q: Data transformation can range from the most basic format or representation change to the most compli...
A: Introduction: Data transformation is the process of converting one data form to another so that peop...
Q: What is regression testing?
A: Introduction: In this instance, regression refers to a previously fixed software bug that has return...
Q: uter scientist
A: given - Information need of computer scientist
Q: This class will allow a user to enter 5 scores into an array. It will then rearrange the data in de...
A: Hello Student Greetings Hope you are doing great. I will try my best to answer your question....
Q: Is it the responsibility of the Database Administrator or the Server Administrator to perform backup...
A: Introduction: Database administrators (DBAs) are in charge of storing and arranging data with the us...
Q: Describe benefits of REST over SOAP.
A: SOAP or Simple Object Access Protocol and REST or Representational State Transfer are both web servi...
Q: O PROTECTED VIEW Be careful-files from the Internet can contain viruses. Unless you need to edit, it...
A: The solution of the following is given below.
Q: The variable data refers to the string "No way!". The expression data[3:6] evaluates
A: According to the question below the solution
Q: Is the Input Factory Full Value? Create a function that checks whether the given number is a total v...
A: Approach: Firstly we will take the value of integer n and then check if it is less then 1 or not if ...
Q: In switched and routed networks, how does the department ensure network access?
A: Introduction: To send a single packet across a network, let alone across many networks, an enormous ...
Q: Add a main function, three paramters, arguments and variables, to the code: def display_vedefhicle...
A: Given: Add a main function, three paramters, arguments and variables, to the code: def display_vede...
Q: Write a program to implement Singly Linked List in C++ using Class Template: 1. Create a C++ functio...
A: ALGORITHM: Step 1:Create a class node. Initialize the variable data Step 2: The head of a list and a...
Q: Frite the treatment p.
A: The wrong data entry errors are the common these days- In this errors occurs when we have entered w...
Q: 2. When senders get acknowledgment of receipt of packets, senders infer that: a. They send at rate h...
A: The question is on when senders get acknowledgment of receipt of packets, senders infer what.
Q: SECTION III: (SELECT ONE TRUE OPTION) Read this question CAREFULLY AND SELECT one TRUE option FROM B...
A: Please upvote. I am providing the correct answer below. Answer 1. Identical metrics (k values)
Q: Consider a project and map it both with and without architecture. What effect it will have on the fi...
A: Introduction: The architectural decisions in software architecture are linked to the strategic needs...
Q: The parameter option that should be used when the module calling the sub wishes to grant the sub acc...
A: Intro The correct answer of the given question is "ByRef".
Write a program that will take this dictionary:
gradePoints = {"A":4,"B":3,"C":2,"D":1,"F":0}
and this list:
courseList = ["CST 161","Mat 144","ENG 201","PSY 101","HIS 101"]
and randomly use elements from each of these lists :
gradeList = ["A","B","C","D","F"]
creditList = [3,4]
and produce a grade point average.
Trending now
This is a popular solution!
Step by step
Solved in 3 steps with 1 images
- Write a program that will take this dictionary using python : gradePoints = {"A":4,"B":3,"C":2,"D":1,"F":0} and this list: courseList = ["CST 161","Mat 144","ENG 201","PSY 101","HIS 101"] and randomly use elements from each of these lists : gradeList = ["A","B","C","D","F"] creditList = [3,4] and produce a grade point average. Academic average is determined by dividing the total number of qualitypoints earned by the total number of credits taken, whether passed orfailed. The following table is an illustration of this computation:GRADE & QUALITY NUMERICAL POINTSCourse . . . Credits Value Per CourseHIS 101. . . . . .3 C (2) 6PSY 101. . . . . 3 B (3) 9MAT 144. . . . 4 D (1) 4ENG 201. . . . 3 B+ (3.5) 10.5CST 161. . . . . 3 F (0) 0Total credits taken: 16Total quality points earned 29.529.5 divided by 16 results in a 1.8 gradepoint average. Here the gradeList element will be embedded as the key in referencing the grade points. (e.g. gPoints = gradePoints[random gradeList…In the C programming language Suppose you are given an array of integers. You want to insert a number x to the array and rearrange so that all the elements are less than or equal to x are before x, and the elements after x are greater than x. For example, suppose the list is {3, 2, 7, 0 1, 5}and x is 4, since3, 2, 0, and 1,are less than or equal to 4,7and 5 are greater than 4, the new array is {3, 2, 0, 1, 4, 7, 5}.The new array has the length of n+1 where n is the length of the input array. Example input/output #1: Enter the length of the array: 10 Enter the elements of the array: 3 5 14 03 92 8 11 Enter the number for insertion: 3 Output: 3 1 0 3 2 3 5 4 9 8 11 Example input/output #2: Enter the length of the array: 8 Enter the elements of the array: 5013 4 1 7 3 5 Enter the number for insertion: 6 Output: 5 0 4 1 356 13 7 1) Name your program arrays.c 2) Include the rearrange( ) function to rearrange the array: void rearrange(int *a, int n, int insert, int *b); a…Suppose a list contains the final exam results of CSE110, PHY111, and MAT110 of each student in a listed form. Your task is to sort the list based on a course name that will be given by the user and print the names after sorting. For example, a list looks likelst = [ ["Farzad",95,87,91] , ["Mahjabin",92,90,83], ["Sadman",87,92,80], ["Nakhla",85,94,90] ]where for each list, 1st index is name, 2nd index is CSE110, 3rd index is PHY111 and 4th index is MAT110. ===================================================== Hint:create a python function for sorting, then call it everytime instead of rewriting the code. Get the data in the individual lists from the given nested list. ===================================================== Sample InputMAT110 Sample OutputFarzadNakhlaMahjabinSadman
- In Python Write code that creates a LIST (data type) of only the first names of the students who are juniors. call it juniorRoster= Given the folowing data set: studentDataScores =…In the C(89) standard of C programming language Suppose you are given an array of integers. You want to insert a number x to the array and rearrange so that all the elements are less than or equal to x are before x, and the elements after x are greater than x. For example, suppose the list is {3, 2, 7, 0 1, 5} and x is 4, since 3, 2, 0, and 1, are less than or equal to 4, 7and 5 are greater than 4, the new array is {3, 2, 0, 1, 4, 7, 5}. The new array has the length of n+1 where n is the length of the input array. Example input/output #1: Enter the length of the array: 10 Enter the elements of the array: 3 5 14 03 92 8 11 Enter the number for insertion: 3 Output: 3 1 0 3 2 3 5 4 9 8 11 Example input/output #2: Enter the length of the array: 8 Enter the elements of the array: 5 0 1 3 4 1 7 3 5 Enter the number for insertion: 6 Output: 5 0 4 1 3 5 6 13 7 1) Name your program arrays.c 2) Include the rearrange( ) function to rearrange the array: void rearrange(int *a, int n, int…In Python write a function that will play Rock, Paper, Scissors with itself. It will pick two random elements from a list. Then the function must know if random element #1 won, lost or drawed. The list is rps=[‘rock’, ‘paper’, ‘scissors’] Then the function must add to a dictionary the number of times the first element won per option in the list. Example{‘rock’:’400’, ‘paper’:’300’, ‘scissors’:’300’ } You need to run this at least 1000 times. You can either create a single thread, or you can create multiple threads. You need to use the random module and the random.choice(LISTNAME) to pick a random element from a list. Here's what I have so far: import random rps = ["rock", "paper", "scissors"] NumRock = 0 NumPaper = 0 NumScissors = 0 rand1 = random.choice(rps) rand2 = random.choice(rps) if rand1 == rand2: print("it's a tie") elif rand1 == "rock": if rand2 == "scissors": NumRock += 1…
- In python: student_dict is a dictionary with students' name and pedometer reading pairs. A new student is read from input and added into student_dict. For each student in student_dict, output the student's name, followed by "'s pedometer reading: ", and the student's pedometer reading. Then, assign average_value with the average of all the pedometer readings in student_dict..value_list is read from input. shift_right() has one parameter list_to_modify, and shifts list_to_modify right. Call shift_right() with a copy of the list value_list as the argument to avoid modifying value_list. Ex: If the input is: The best is yet to come, and won't that be fine then the output is: Shifted right: ['fine', 'The', 'best', 'is', 'yet', 'to', 'come,', 'and', "won't", 'that', 'be'] Original: ['The', 'best', 'is', 'yet', 'to', 'come,', 'and', "won't", 'that', 'be', 'fine']Write a function multiply_ends (nums) that takes a non-empty list of integers and returns the first integer multiplied by the last integer. For example, if nums is the list [5, 4, 6, 2], the function would return 5 * 2 = 10. If the list has only 1 element, the first and last elements are the same so the function should return the square of the element. For example: Test Result print(multiply_ends( [5, 4, 6, 2])) 10 Answer: (penalty regime: 0, 10, 20, ... %) 1 | Precheck Check
- For example, suppose the word “robot” is found in lines 7, 18, 94, and 138. The dictionary would contain an element in which the key was the string “robot”, and the value was a list containing the numbers 7, 18, 94, and 138. Once the dictionary is built, you should prompt the user for a word. If the word is found in the dictionary, then print out all the lines on which they are found in ascending order. The code for the print out is provided in the stub code. A stub code is provided for you. If you do not see it, click the "Load default template" button. # The get_word_dict function returns a dictionary containing# the words from line_list as keys, and their line numbers# as values.def get_word_dict(line_list):# Create a line counter.count = 0 # Create a dictionary to hold the words.word_dict = {} # Step through the list of lines.#######Add you code below############# ####################################### Return the dictionary.return word_dict #####DO NOT CHANGE ANYTHING…Write the python function named keep_even_values. This function will have 1 parameter that will be a list of integer values. This function is to return a list that keeps the even integer values (values that are mutliples of 2) and remove any odd integer values. The order of the even integer values in the list returned by the function should match the relative ordering of those values given to the function via its parameter. For example: keep_even_values ([6, 4, 2, 5, 3, 8, 1, 7, 12, 10, 9]) ==> [6, 4, 2, 8, 12, 10] keep_even_values ([16, 42, 12]) ==> [16, 42, 12] keep_even_values ([11, 7, 123]) ==> [] Note: Sometime essay questions in Blackboard remove leading spaces on a line. Leading spaces in python code can be very important. To show the leading spaces, you can type in the up-arrow character, ^, (shift-6) at the start of the line instead of using the space character and the grader will know you mean a space character. This is only needed for spaces at the beginning of a line of…IN PYTHON PLEASE This program will store roster and rating information for a soccer team. Coaches rate players during tryouts to ensure a balanced team. (1) Prompt the user to input five pairs of numbers: A player's jersey number (0 - 99) and the player's rating (1 - 9). Store the jersey numbers and the ratings in a dictionary. Output the dictionary's elements with the jersey numbers in ascending order (i.e., output the roster from smallest to largest jersey number). Hint: Dictionary keys can be stored in a sorted list. (3 pts) Ex: Enter player 1's jersey number: 84 Enter player 1's rating: 7 Enter player 2's jersey number: 23 Enter player 2's rating: 4 Enter player 3's jersey number: 4 Enter player 3's rating: 5 Enter player 4's jersey number: 30 Enter player 4's rating: 2 Enter player 5's jersey number: 66 Enter player 5's rating: 9 ROSTER Jersey number: 4, Rating: 5 Jersey number: 23, Rating: 4 Jersey number 30, Rating: 2 ... (2) Implement a menu of options for a user to modify the…