Through Scratch Programming - 1) Generate random numbers in a list. 2) 10 Numbers only 3) Count and report the number of As (say for 5 sec): A student earns an A if their grade is greater than or equal to 90. Traverse through the list and ask the right question! You will need a variable to keep track of your position in the list and a variable to do the counting.
Q: annels in X and f is equal. The range of the values are required to propose pre and/or post-process-…
A: The answer is
Q: The fastest form of inter-process communication under UNIX is
A: Intro we are going to understand which is the fastest inter-process communication form in UNIX.…
Q: When comparing a source-driven design for data collecting at a data warehouse to a…
A: Introduction: In a destination-driven design, data transfers from data sources to the data warehouse…
Q: Write a Java program to print a version of the user entered string, where for every star (*) in the…
A: Required: Write a Java program to print a version of the user entered string, where for every star…
Q: How can i convert the temperature in Fahrenheit from the degree celsius which is entered by user in…
A: Required:- How can I convert the temperature in Fahrenheit from the degree celsius which is entered…
Q: Explain Boolean logic and computer circuits. Why is Boolean logic so vital in computing
A: Boolean logic and computer circuits are related. Logic gates are the building blocks of computer…
Q: 1. What are the key characteristics of the IEEE 802.3 Ethernet standard?
A: Introduction: The following are the primary fields of a frame of classic Ethernet:
Q: Explain double precision in a few words.
A: Double precision The term "dual precision" refers to a particular form of floating point integer.
Q: Q1//Write a c++ program to enter names and marks of 5 students and then print names of passes…
A: To get the data of 5 students, create an array of StudentsList class's object and input name and…
Q: Illustrate the operations of Counting-Sort on an array A = (2,8,9, 7, 4, 4, 5, 2, 7).
A: The operations of counting-sort on an array A={2,8,9,7,4,4,5,2,7} Counting sort is a sorting…
Q: 14 LAB - Create LessonSchedule table with FK constraints Two tables are created:
A: Solution: SQL Code: CREATE TABLE LessonSchedule ( HorseID INT NOT NULL, StudentID INT,…
Q: In a new application program, how would you determine whether to utilize an ORM framework or a…
A: Introduction: JDBC stands for Java database connectivity and it is an application programming…
Q: A computer with subsystems and logical divisions outperforms one without.
A: Introduction When a computer's processors, memory, and storage are partitioned into logical…
Q: Computer science Short answer Can you tell the difference between a thin and a fat client?
A: Introduction: Thin client- A thin client is a central computer that runs programs in conjunction…
Q: Cache memory is a crucial part of today's computers. Explain the function of cache memory and why…
A: Cache memory, often called cache, is an auxiliary memory system that saves frequently used…
Q: Briefly describe media convergence and provide an example.
A: Introduction Briefly describe media convergence and provide an example.
Q: What are some of Splay tree's real-world applications?
A: Introduction: Splay tree: A splay tree is an efficient implementation of a balanced binary search…
Q: An array of integers is given. Write a recusrive function recLastname ( Use your last name ) that…
A: Solutions: Java code: public class Test { // This recursive function take 2 parameter //…
Q: Which keyword is a reference to the current object within a non-static method or a constructor?…
A: Solution:- this keyword refers to the current object in a non static method or constructor. •Within…
Q: Construct a 4 KB memory using 1 KB IC's
A: the solution is an given below :
Q: 2. Using suitable command encode the message "Your Name" by using matrix A given below: [1 2 31 A =…
A: Find the required code in matlab and output given as below :
Q: What is the difference between static and dynamic memory allocation?
A: Introduction DIFFERENCE BETWEEN STATIC AND DYNAMIC MEMORY LOCATION :
Q: What are the benefits of installing thin clients rather than regular desktop PCs in a university…
A: Advantages include: A university computer lab, for example, necessitates the use of many computers…
Q: is defined as where a variable is accessible or can be used. Private Class Scope Private Method None…
A: Variables are the names you provide for computer memory areas which are utilized to store values in…
Q: Q1.) Write a Review class that has: • These private data members: string user: ID of the user •…
A: We need to define the Review class as per the given description.
Q: Create a sequence diagram showing the interactions of objects in a group diary system, when a group…
A: The answer is given in the below step
Q: Define the terms "spatial locality" and "temporal locality", and explain how caches are used to…
A: Introduction The program tends to reuse data and instructions that they have used recently. The…
Q: What should the text on a button mean?
A: Indicates the text displayed on a button: When a button control is created on a form, its "Text"…
Q: Explanation of the destiny of a bathtub curve for a microprocessor working in an arctic location, on…
A: Bathtub curve: A bathtub curve is a graphic depiction of a product's or collection of goods'…
Q: What is a SQL injection attack, and how does it work? Explain how it works and how to avoid SQL…
A: SQL injection attack is an attack which occurs when untrusted user data is sent to the web…
Q: Explain how several access methods increase the capacity of the connecting line. Computer science
A: Introduction: Installing a 3G improvement with enhanced spectrum efficiency (such as HSPA+ or LTE).…
Q: Volume and Area of a Regular Icosahedron An icosahedron is a regular polyhedron with 20 congruent…
A: Tips to keep in mind: 1) Just one geometric solid is really the hexagonal pattern, cube, tetrahedra,…
Q: A method is often a void method that changes the values of instance variables or static variables.…
A:
Q: What does the abbreviation NoSQL stand for? What exactly is NoSQL, and what are the many varieties…
A: Intro NoSQL: The acronym NoSQL stands for "Not Only SQL." Traditional relational databases are…
Q: pins on Arduino that c
A: the solution is an given below :
Q: Q1.) Write a Review class that has: • These private data members: • string user: ID of the user…
A:
Q: Make a list of the six primary actions you'd take to build up a database for a certain company.
A: Database: It is a collection of data that has been organized for ease of access, management, and…
Q: .. Write a CPP program that reads a line consists of an unknown number of words. The program then…
A:
Q: Is it feasible to have two clustering indices on the same relation that are used for distinct search…
A: An index offers link to data with a specified value. Indices make search faster. A clustering index…
Q: Write a Java program to do the following task: Create an integer array of size 15. Input the values…
A: Your java program is given below as you required with an output.
Q: Write a java code to get the number of electrons passing through a heater wire in one minute, if it…
A: Required:- Write a java code to get the number of electrons passing through a heater wire in one…
Q: Controlling which processes have access to the untrusted programme and which processes and data the…
A: Introduction: Confinement Assuming that the only activity of the programme is to compute the total…
Q: What is an abstract class?
A: abstract class: abstract class are that class which contains both abstract and non-abstract methods…
Q: a.Using the Google Meet platform as a practical example, discuss how it would be categorized under…
A: The answer is given in the below step
Q: What are the issues with company-wide networking? Describe the issues and possible solutions to some…
A: Introduction: Problem #1: Your network is operating at an excessively slow speed.What exactly is the…
Q: If at all possible, could you clarify the metrics involved in the software development process?…
A: Introduction: A software metric is a measurable or countable measure of a program's properties that…
Q: Computer science Today's generations of mobile devices and personal computers are distinguished…
A: Introduction: They all have one thing in common: they provide a good overview of the history of…
Q: What is the purpose of an embedded computer?
A: Introduction: A tiny computer that is integrated into a larger system, device, or machine is known…
Q: What benefits and problems does the corporate sector confront as a result of the paradigm change…
A: Paradigm ShiftTo begin, Consider the following definition of paradigm shift: It represents a…
Q: What are policies, standards, procedures, and guidelines in the field of information technology?
A: Introduction: It is critical for any internal threats to ensure that rules, standards, guidelines,…
Through Scratch
1) Generate random numbers in a list.
2) 10 Numbers only
3) Count and report the number of As (say for 5 sec): A student earns an A if their grade
is greater than or equal to 90. Traverse through the list and ask the right question! You
will need a variable to keep track of your position in the list and a variable to do the
counting.
Step by step
Solved in 2 steps with 1 images
- 22.4 LAB: Adjust list by normalizing - functions (Use Python) When analyzing data sets, such as data for human heights or for human weights, a common step is to adjust the data. This can be done by normalizing to values between 0 and 1, or throwing away outliers. For this program, adjust the values by subtracting the smallest value from all the values. Input values should be added to the list until -1 is entered. Ex: If the input is: 30 50 10 70 65 -1 the output is: 20 40 0 60 55 Your program must define and call the function:get_minimum_int(nums)python: def character_gryffindor(character_list):"""Question 1You are given a list of characters in Harry Potter.Imagine you are Minerva McGonagall, and you need to pick the students from yourown house, which is Gryffindor, from the list.To do so ...- THIS MUST BE DONE IN ONE LINE- First, remove the duplicate names in the list provided- Then, remove the students that are not in Gryffindor- Finally, sort the list of students by their first name- Don't forget to return the resulting list of names!Args:character_list (list)Returns:list>>> character_gryffindor(["Scorpius Malfoy, Slytherin", "Harry Potter, Gryffindor", "Cedric Diggory, Hufflepuff", "Ronald Weasley, Gryffindor", "Luna Lovegood, Ravenclaw"])['Harry Potter, Gryffindor', 'Ronald Weasley, Gryffindor']>>> character_gryffindor(["Hermione Granger, Gryffindor", "Hermione Granger, Gryffindor", "Cedric Diggory, Hufflepuff", "Sirius Black, Gryffindor", "James Potter, Gryffindor"])['Hermione Granger, Gryffindor',…python: def character_gryffindor(character_list):"""Question 1You are given a list of characters in Harry Potter.Imagine you are Minerva McGonagall, and you need to pick the students from yourown house, which is Gryffindor, from the list.To do so ...- THIS MUST BE DONE IN ONE LINE- First, remove the duplicate names in the list provided- Then, remove the students that are not in Gryffindor- Finally, sort the list of students by their first name- Don't forget to return the resulting list of names!Args:character_list (list)Returns:list>>> character_gryffindor(["Scorpius Malfoy, Slytherin", "Harry Potter,Gryffindor", "Cedric Diggory, Hufflepuff", "Ronald Weasley, Gryffindor", "LunaLovegood, Ravenclaw"])['Harry Potter, Gryffindor', 'Ronald Weasley, Gryffindor']>>> character_gryffindor(["Hermione Granger, Gryffindor", "Hermione Granger,Gryffindor", "Cedric Diggory, Hufflepuff", "Sirius Black, Gryffindor", "JamesPotter, Gryffindor"])['Hermione Granger, Gryffindor', 'James…
- 5.13 LAB: Adjust list by normalizing Use Python programming. When analyzing data sets, such as data for human heights or for human weights, a common step is to adjust the data. This adjustment can be done by normalizing to values between 0 and 1, or throwing away outliers. For this program, adjust the values by dividing all values by the largest value. The input begins with an integer indicating the number of floating-point values that follow. Assume that the list will always contain fewer than 20 floating-point values. Output each floating-point value with two digits after the decimal point, which can be achieved as follows:System.out.printf("%.2f", yourValue); Ex: If the input is: 5 30.0 50.0 10.0 100.0 65.0 the output is: 0.30 0.50 0.10 1.00 0.65 The 5 indicates that there are five floating-point values in the list, namely 30.0, 50.0, 10.0, 100.0, and 65.0. 100.0 is the largest value in the list, so each value is divided by 100.0. For coding simplicity, follow every output value…Code following instructions using pyhton. 1.Write a statement that creates a list with the following strings: 'Einstein', 'Newton', 'Copernicus', and 'Kepler'. 2.Assume names references a list. Write a for loop that displays each element of the list. 3.Assume the list numbers1 has 100 elements, and numbers2 is an empty list. Write code that copies the values in numbers1 to numbers2.Use f_strings to output variables. This program requires the main function and a custom value-returning function.In the main function, code these steps in this sequence: use a list comprehension to generate 50 random integers all from -40 to 40, inclusive. These represent Celsius temperatures. use an f_string to report the lowest and highest Celsius temperature in the list. determine if 0C is in the list. If it is report the index where it first occurs. If it isn't in the list, report that, too. use a random module method to create a sublist of 10 unique Celsius temperatures. sort this sublist in ascending order. pass the Celsius sublist as the sole argument to the custom value-returning function. In the custom function: use either a loop or a list comprehension to create a list of 10 Fahrenheit temperatures equivalent to the Celsius temperatures. A bonus of 3 points will be awarded if a list comprehension is employed. return the Fahrenheit list to main. Back in main: use a for…
- 2.15 LAB: Descending selection sort with output during execution Write a program that takes an integer list as input and sorts the list into descending order using selection sort. The program should use nested loops and output the list after each iteration of the outer loop, thus outputting the list N-1 times (where N is the size of the list). Important Coding Guidelines: Use comments, and whitespaces around operators and assignments. Use line breaks and indent your code. Use naming conventions for variables, functions, methods, and more. This makes it easier to understand the code. Write simple code and do not over complicate the logic. Code exhibits simplicity when it’s well organized, logically minimal, and easily readable. Ex: If the input is: 20 10 30 40 the output is: [40, 10, 30, 20] [40, 30, 10, 20] [40, 30, 20, 10] Ex: If the input is: 7 8 3 the output is: [8, 7, 3] [8, 7, 3] Note: Use print(numbers) to output the list numbers and achieve the format shown in the…Code the following write a For loop that iterates through a list of products (any number of products) that are sold in a store and prints them. [examples: fan, fridge, freezer, washer, etc.]. b) copy the code from a) and use the same loop to add more products(any)to the list. You must use list methods to add. c) Copy the code from c), and search for a specific product (any), if the product is found the loop is terminated. Make sure to use else in the for loop. d) Create an empty dictionary, then add 4 entries (the key is a word, the value is word’s frequency in a book). [example: {‘street’: 23}]. e) Create a for loop to access the entries from d) and print the keys and values. f) Copy the code from e) and search for a specific key in the dictionary and prints its value. The program prints a message “ the {key} is not found”, if the key does not exist. ..?TODO 7 Using list comprehension, make a list of all odd numbers up to fifty. Remember that you can use an if condition to determine whether the remaining modulo is equal to 1. If this is the case, the list will only contain odd numbers! Put the odd list variable in the output. #TODO 7.1 odd_list = print(f"odd_list output: {odd_list}") todo_check([ (odd_list==[1,3,5,7,9,11,13,15,17,19,21,23,25,27,29,31,33,35,37,39,41,43,45,47,49], 'odd_list does not contain all odd numbers between 1 and 49') ])
- (List maintenance) a. Write a complete C++ program that can be used to update an ordered list of numbers. Use the list of numbers shown in Figure 7.13 to test that your program is working correctly. b. Test the program you wrote for Exercise 4a, using a new part number of 86 with the list of numbers shown in Figure 7.13. This test should place this new code at the beginning of the existing list. c. Test the program you wrote for Exercise 4a, using a part number of 200 with the list of numbers shown in Figure 7.13. This test should place this new part number at the end of the existing lista-)Write a game of rock paper scissors, one of the choices will be from the user and theother from the computer (use random) Print results for each game.Play the games in a row until you exit the game. Explain each step as comment.Game rules:Rock crushes scissors, you win.Paper covers rock, you win.Scissors cut paper, you win.(İn Python) b-)Write a program that sorts a list in ascending order. Don’t use sort method.Ask user number of list elements (at least 10 elements)Enter all elements from keyboard and printed.Sort your list.(İn python) c-)Write a code for craps game. Craps is a dice game in which the players make wagerson the outcome of the roll, or a series of rolls, of a pair of dice.The rules of the dice game craps are as follows:You roll two dice. Each die has six faces, which contain one, two, three, four, five and six spots,respectively. After the dice have come to rest, the sum of the spots on the two upward faces iscalculated. If the sum is 7 or 11 on the first throw, you…Python question please include all steps and screenshot of code. Also please provide a docstring, and comments throughout the code, and test the given examples below. Thanks. (while loop) Write a function firstNeg() that takes a (possibly empty) list of numbersas input, finds the first occurrence of a negative number, and returns its index of thatnumber. If there is no negative number or the list is empty, the program should return -1.>>> firstNeg([2, 3, -1, 4, -2])2>>> firstNeg([2, 3, 1, 4, 2])-1