Write a function product or sum(num1, num2) that takes two int parameters and returns either their sum or their product, whichever is larger. In the first example below, the sum (17+ 1) is greater than the product (171), so the sum is returned. In the second example, the product (211) is greater than the sum (2+11), so the product is returned For example: Test Result print (product or sum(17, 1)) 18 print(product or sum(2, 11)) 22
Q: Provide some instances for each of the three primary categories of file management.
A: The process and demonstration of making a coordinated construction wherein you store data for…
Q: Make sure you know the difference between a PAN, LAN, MAN, and WAN
A: LAN represents neighborhood. A gathering of organization gadgets permit correspondence between…
Q: What do we use the second parameter of the open() call to indicate? a. How large we expect the file…
A: The above question is solved in step 2 :-
Q: What does it mean when we say that the data is fragmented?
A: When data becomes fragmented, it means it is stored in separate locations. Processes like data…
Q: Computer science a performance assessment utilising a performance optimization tool as an example.
A: Introduction: Computer science a performance assessment utilizing a performance optimization tool as…
Q: What are some of the reasons why people consider the internet to be the pinnacle of information and…
A: A quick overview: The internet is the most powerful tool accessible in the twenty-first century,…
Q: Let's assume, for the sake of simplicity, that the address 581132 on the disc is the location of a…
A: Start: In order to answer this issue, we must first comprehend how file blocks are identified and…
Q: Identify five (5) risks to present security architecture and design, as well as possible asset…
A: Introduction: The following are examples of dangers to the existing security architecture and…
Q: How is cooperation synchronisation given for Ada tasks?
A: Introduction: The cooperation synchronisation given for Ada tasks are :
Q: The end result that you have in mind when talking about the authentication process's objectives is…
A: The process of ascertaining whether someone or something is who or what they claim to be is known as…
Q: (d) Draw the final B+ tree when the key 34 is deleted from the following B+ tree of order M = 5 and…
A:
Q: number of flip a binary modul-
A:
Q: Disk requests are received by a disk drive for cylinder 20, 25, 45, 5, 10, 17, 60, 70, 35, 90.…
A: The Answer is
Q: Q. Can you tell me about the history of Windows operating systems?
A: Introduction: Microsoft Windows is a personal computer operating system (OS) developed by Microsoft…
Q: Do some research on authenticating users as a means of access control and write a report on it.
A: Definition: Security techniques impose system assurance levels. Operating systems use trust levels…
Q: In this section, you should provide a succinct summary of the two functions that are regarded the…
A: Introduction: The term "operating system" refers to the software that enables a computer to…
Q: Perhaps a concise explanation of the operating system's two most significant tasks should appear…
A: Input/output, memory management, and processing are just a few of the operations that an operating…
Q: Question 2 of 10 Which two features could be added to a game using an "if () then' block? A. A…
A: if() blockk can be adden when there is yes or no condition.
Q: tradeoff
A: A space-time off or time-space off in software engineering is a situation where a calculation or…
Q: Please explain to us the fundamentals of successful data entry fields. There may be occasions…
A: Intro while this may seem obvious, it is necessary to say. Many illustrations deceive the viewer by…
Q: Which idea of access control limits a user's access to the specific information that is required for…
A: Given: What are some of the objectives of the authentication process? Investigate both the positives…
Q: What precautions may be done to lessen the chance of a network failure?
A: Introduction: One of the most serious threats is network failure, which has a direct impact on…
Q: What is called data base
A: Database: A database is an organised collection of structured information or data typically stored…
Q: In a network, what functions are performed by the bridge, the router, the gateway, and the switch?
A: Gateway switch: A gateway is exactly what it sounds like: a device that operates as a crossing point…
Q: Walk me through the three most common approaches to managing my files, and show me how they work
A: File system in a the computer system, is the way or the method of naming the files and then to know…
Q: Q1: Use Input to print "==>" and stop the program until the user enters a value and Pressing the…
A: - We have to code for the vector input. - We are using python here.
Q: escribe the multifactor authentication technique and the phrase's meaning. What level of security…
A: Intro Describe the multifactor authentication procedure and the meaning of the phrase. What level of…
Q: What kind of connection does the field of telecommunications have with the realm of data…
A: Telecommunication: It refers to long-distance communication. Electronic signal transmission between…
Q: An authentication challenge–response system is a notion that you need to explain. Why is this more…
A: Challenge–response system can be explained as one of the Authentication process where in there are…
Q: What words would you use to characterise a challenge and answer authentication system, so that we…
A: Answer: In computer security, challenge-response authentication refers to a set of rules in which…
Q: In order to better understand the concept of a challenge-and-response authentication system, could…
A: Challenge-response authentication is a set of protocols used to secure digital assets and services…
Q: z+wx+wxy
A: --->As we know that we are given with above expression ,which can be expressed using truth…
Q: What's the difference between a controller and an adapter?
A: Introduction: We must distinguish between an adapter and a controller.
Q: The sequential circuit below yields an output sequence of Z=11011111 when you apply the input…
A:
Q: Happy Shop sells different products to the customers. A customer could buy one or more products at a…
A: Ans: The primary key for the given table is customer ID. The 3 different update anomalies are as…
Q: In software development, what is the difference between V&V and V&V?They must be distinguished in…
A: Introduction: V&V stands for Verification and Validation in the context of software project…
Q: What other web-based technologies outside those already mentioned are used to help facilitate…
A: Google Docs (Gudoks): Other web-based tools that are used to facilitate project collaboration…
Q: Operating systems face certain challenges when they have an architecture that allows many threads.
A: Introduction: According to the facts provided, we must explore the key issues involved with the…
Q: Make up a hypothetical scenario to illustrate how the login process works. It's possible that you've…
A: Explanation: Scenario management is an effective way to handle several futures and create…
Q: What are some of the aims of the authentication procedure if any? Comparing and contrasting each of…
A: Authentication: Authentication is the process of determining if someone or something is who or what…
Q: What distinguishes NoSQL from other database systems currently on the market?
A: Intro In spite of other database systems, most NoSQL databases share a few qualities. As far as one…
Q: Design a Pushdown Automata. Please also include if its possible to design a machine within the state…
A: Given: L = {w = 0i1j0k and j=i+k for some i,k >=0} lets understand the language: strings in…
Q: Jobs Arrival Time Burst P1 0.0…
A: Lets understand each of the given algorithms: Shortest remaining time first : it is a pre-emptive…
Q: What exactly is the World Wide Web? Is it an additional network that operates similarly to the…
A: World wide web is one of the way which is used to access the documents which are spread over the…
Q: Is it possible to distinguish between a Trojan Horse, a computer virus, and a worm? Certain viruses…
A: Introduction: Blaster Worm. The worm's purpose is to burrow into your system and gain access to your…
Q: Please provide a description of the method used by the system that enables you to solve all of the…
A: Database : Database technique solves conventional file management system's shortcomings. Eliminating…
Q: Choose three separate smartphone apps that would be incredibly useful in your current or future…
A: Introduction: Three separate smartphone apps that might be highly useful in your current or future…
Q: Of the case that there is a breach in a company's security, what steps should be taken?
A: Encryption: It occurs when an organization's basic security mechanisms are breached, allowing…
Q: Matlab code if you knew to include marks as in the following: Write a program that ask about the…
A: I am writing a matlab script on calculating averages of 5 test scores of unknown number of students…
Q: What do you mean when you say that you comprehend the term "Data Modeling"?
A: Information demonstrating is the method involved with making a visual portrayal of either an entire…
Step by step
Solved in 3 steps with 2 images
- Complete the convert() function that casts the parameter from a float to an integer and returns the result.Note that the returned value of the convert() function is printed. Ex: If the float value is 19.9, then the output is: 19 Ex: If the float value is 3.1, then the output is: 3 this is what i have def largest_number(num1, num2, num3): if(num1 > num2 and num1 > num3): return num1 elif(num2 > num3): return num2 else: return num3 def smallest_number(num1, num2, num3): if(num1 < num2 and num1 < num3): return num1 elif(num2 < num3): return num2 else: return num3 if __name__ == '__main__': n1 = float(input()) n2 = float(input()) n3 = float(input()) print("largest:",largest_number(n1,n2,n3)) print("smallest:",smallest_number(n1,n2,n3)) it says Test convert() with random float value test_passed function missing Traceback (most recent call last): File "main.py", line 18, in <module> n1 = float(input()) EOFError: EOF when reading a line Your output Your…Assuming that you have the functions "drawPolygon(int[] x, int[] y, int n)" for drawing polygon, "drawRectangle(int x, int y, int width, int height)" for drawing rectangle and "drawCircle(int xc, intyc, int radius)" for drawing circle; draw the given shape. Where: R(300,250), T1(325,275), T2(475,275), T3(400,400), Pı(285.250), P2(225.275), P3(200,450), P4(285, 300), Q1(515,250), Q2(575,275), Q3(600,450), Q4(515,300) C6: (300,75), R=50 C7: (500,75), R=50 C1: (400,150), R=100 С4: (350,150), R-10 C5: (450,150), R=10 C2: (400,195), R=50 C3: (400,175), R=30 C8: (400,225), R=15 P1 R P2, T2 P4 Q2 Q4 T3 Pa 200Write the convert_word code. convert_word is known as a function, which we will cover more in depth later. You are automatically given a parameter called word, which is a string that contains a single word. The return conv is how you will send data out of your function. The conv is a variable that hasn't been created yet, but it will be a string containing the converted hey. For example, if word="hey", then conv will be "heey". You are responsible for creating the variable conv, as the template has NOT done that for you. You need to use an if statement to see if the word starts with "he" and ends with "y". Since you don't know how many e's might be between the he and y, you have to do some math here. Recall that you can get the length of a string by using len(word) in the code above. You also know that h and y will be included. so, len(word) - 2 will be the number of e's in between the h and y. Create a string that contains the number of e's. This will be your conv variable. I would…
- Write a program that calculates the average of a group of test scores, where the lowest score in the group is dropped. It should use the following function: getScore This function ask the user for a test score, store it in a reference parameter variable, and validate it. For input validation, do not accept test scores lower than 0 or higher than 100. This function should be called by main() once for each of the five scores to be entered. calcAverage This function calculates and display the average of the four highest score. This function should be called just once by main(), by should be passed the five scores. • findLowest This function finds and returns the lowest of the five scores passed to it. It should be called by calcAverage function, which uses the function to determine which of the five scores to drop.Create a program that accepts an integer N, and pass it to the function generatePattern. generatePattern() function which has the following description: Return type - void Parameter - integer n This function prints a right triangular pattern of letter 'T' based on the value of n. The top of the triangle starts with 1 and increments by one down on the next line until the integer n. For each row of in printing the right triangle, print "T" for n times. In the main function, call the generatePattern() function. Input 1. One line containing an integer Output Enter N: 4 T TT TTT TTTTImplement the following function which takes the radius of a circle as one of its parameters and stores the circumference and area using the other two parameters.void calcCircleInfo(int radius, int *circumference, int *area)
- Write a function findFirstUpper() that takes a string as parameter, finds returns the index of the first uppercase letter in the string. If there is no uppercase letter in the string, then the function will return -1.Example: Function call findFirstUpper("best course is CS104!") will return 15 (index of the 'C').Example: Function call findFirstUpper("good morning!") will return -1. CODEEE:PYTHON PLEASEWrite a function findFirstUpper() that takes a string as parameter, finds returns the index of the first uppercase letter in the string. If there is no uppercase letter in the string, then the function will return -1.Example: Function call findFirstUpper("best course is CS104!") will return 15 (index of the 'C').Example: Function call findFirstUpper("good morning!") will return -1 CODEE:PYTHONWrite a program that loads in historical data on popular baby-names for the last 100 years. You can type in a name, and it graphs the rank of that name over time. A high ranking, like 5, means the name was the 5th most popular that year (top of the graph), while a low ranking like 879 means the name was not that popular (bottom of the graph). Write it in python the latest version The first function you will write and test is the clean_data function. The function is described in the starter code in a function header comment above the function. Here is the function: def clean_data(list, x): #TODO: write your code here pass Take a look at the first few lines of the data file: A 83 140 228 286 426 612 486 577 836 0 0 Aaliyah 0 0 0 0 0 0 0 0 0 380 215 Aaron 193 208 218 274 279 232 132 36 32 31 41 Each line is a baby name followed by how popular the name was in 11 different years. Each number is a ranking, so Aaron was 193th most popular name in 1900 and 41st most…
- Write a program that loads in historical data on popular baby-names for the last 100 years. You can type in a name, and it graphs the rank of that name over time. A high ranking, like 5, means the name was the 5th most popular that year (top of the graph), while a low ranking like 879 means the name was not that popular (bottom of the graph). Write it in python the latest version The first function you will write and test is the clean_data function. The function is described in the starter code in a function header comment above the function. Here is the function: def clean_data(list, x): #TODO: write your code here pass Take a look at the first few lines of the data file: A 83 140 228 286 426 612 486 577 836 0 0 Aaliyah 0 0 0 0 0 0 0 0 0 380 215 Aaron 193 208 218 274 279 232 132 36 32 31 41 Each line is a baby name followed by how popular the name was in 11 different years. Each number is a ranking, so Aaron was 193th most popular name in 1900 and 41st most popular name in…Write a program that loads in historical data on popular baby-names for the last 100 years. You can type in a name, and it graphs the rank of that name over time. A high ranking, like 5, means the name was the 5th most popular that year (top of the graph), while a low ranking like 879 means the name was not that popular (bottom of the graph). Write it in python the latest version The first function you will write and test is the clean_data function. The function is described in the starter code in a function header comment above the function. Here is the function: def clean_data(list, x): #TODO: write your code here pass Take a look at the first few lines of the data file: A 83 140 228 286 426 612 486 577 836 0 0 Aaliyah 0 0 0 0 0 0 0 0 0 380 215 Aaron 193 208 218 274 279 232 132 36 32 31 41 Each line is a baby name followed by how popular the name was in 11 different years. Each number is a ranking, so Aaron was 193th most popular name in 1900 and 41st most…Write in C++ Alice is trying to monitor how much time she spends studying per week. She going through her logs, and wants to figure out which week she studied the least, her total time spent studying, and her average time spent studying per week. To help Alice work towards this goal, write three functions: min(), total(), and average(). All three functions take two parameters: an array of doubles and the number of elements in the array. Then, they make the following computations: min() - returns the minimum value in the array sum() - returns the sum of all the values in the array average() - returns the average of all the values in the array You may assume that the array will be non-empty. Function specifications: Function 1: Finding the minimum hours studied Name: min() Parameters (Your function should accept these parameters IN THIS ORDER): arr double: The input array containing Alice's study hours per week arr_size int: The number of elements stored in the array Return Value:…