This assignment requires you to plot (in text) a quadratic function at certain points. • Ask the user for the coefficients a, b and c of a quadratic function f (x) = ax² + bx +c. • Output the results for x values of (0, 1, 2, .., 9), then x values of (10, 100, ..., 10,000,000). • You must write two functions: 1. A function that returns the value of the quadratic function given the coefficients and the value x. 2. A function that prints the value of the quadratic function given the coefficients and the value x. This function will call the first function. • You must use a for loop for the x values 0 to 9, and a while loop for the powers of ten.
Q: Find the Big Oh Notation of the following
A: Defined the Big-Oh Notation of the given code
Q: Use a request for proposal to gather information on hardware and system software, and explain why it...
A: Request For Proposal (RFP): It is a document that is used to communicate with the system in order f...
Q: Map the car sale ER schema into a relation schema. Specify all primary keys (underline) and foreign ...
A:
Q: PowerShell Is there a way to filter Azure AD Dynamic groups using PowerShell I use this command Ge...
A: The answer is given below:-
Q: How is the output for frequency of a DDS changed?
A: INTRODUCTION: More and more wireless devices are being designed with complicated and variable wavefo...
Q: As CISO, you are in charge of developing an information security programme that is backed by a frame...
A: Answer Information security program is based on following 3 principles: confidentiality availability...
Q: Which authentication method requires the computer to be joined to either a domain or Azure AD?
A: Azure AD is a component of Office 365 which helps in managing identities and can be defined as a bui...
Q: Exercise 2: 1. Add a new form to the project Lab2_week 4. 2. Design as shown below:
A: Given :- Set X1 and X2 textboxes as Read Only as True.4. On Form load eventa. Set Form Text proper...
Q: Without using any loop In PHP programming languague The value of the input variable is 9,3,5.5,7,8 H...
A: 1) In PHP we have a function array_sum() which returns the sum of the values in an array. 2) It's sy...
Q: Give one benefit and one drawback of the Microkernel OS over the Monolithic OS. Provide evidence to ...
A: The answer is given below:
Q: Please Explain when creating a WebService Call or HTTPCallout Why we use the MOCK Class when Writing...
A: The answer is given below:-
Q: Conduct research on the IEEE or ACM journal articles or conference proceedings, published within the...
A: Conducting research base theory by the IEEE and ACM is related to concern cache memory aspect of com...
Q: 4. Explain difference between coupling and cohesion? Which is desirable? Justify your answer. 5. Exp...
A: Cohesion: Cohesion is a measure of how well a module works together. It's the intra-module notion. T...
Q: Because of their transistor-based designs, it is unclear why cache memory is needed since RAM (Rando...
A: Assuming you are alluding to processor reserves, yes they are unpredictable. Today, the most well-kn...
Q: When using magnetic disks, certain databases only use sectors in the outer tracks, leaving sectors i...
A: Introduction: As per our policy, "Since you have asked multiple questions, we will solve the first q...
Q: Label the Recursion Requirements. int fact (int n) int reAulG 1# in--1) return : ract (n-1) reurn *u...
A: The answer is
Q: How a communication chasm between users and designers can sabot project's success
A: Communication chasm between users and designers can sabotage a project's success
Q: Write a C# program to find the area of a circle. The user must capture the inputs. Use the correct f...
A: Code: using System;namespace TechStudyCSharp{ class Program { static void Main(string[]...
Q: Write a class RangeInput that allows users to enter a value within a range of values that is provide...
A: CODE TEXT SO YOU DON'T HAVE TO TYPE. public class RangeInput { private int currentValue; priva...
Q: Write a program as part of the UCAM application that will store the Fall 2021 SPL final exam scores ...
A: Actually, program is an executable software that runs on a computer.
Q: You have been hired by ACME Moving and Storage to develop a program to determine customer charges fo...
A: When you configure or edit transfer jobs programmatically using the Storage Transfer API, the time m...
Q: in Mips how to store bytes in reverse order(0xAADDEEFF) at a memore location? . space4
A: .datainput: .space 256output: .space 256 .text .globl mainmain: li $v0, 8 # Ask the user for the ...
Q: Label the Recursion Requirements. int fact (int nl int reAul 1# in--1) ract (n-1) return re le;
A: Answer is given below
Q: How is multifactor authentication implemented? How does it help to prevent password theft?
A: Password theft is one of the most common problems faced by the internet users in today's yime.
Q: What are the 3 main regions of a process in user space memory regions? What are the 3 main component...
A: Asked:- The three main regions of a process in user space memory regions. The three main components...
Q: Suppose we have two arrays, a and b, containing numbers of size n and m, respectively. a and b array...
A: ALGORITHM:- 1. Declare and initialise 2 arrays with the corresponding values. 2. Find the common ele...
Q: Write a program to get a random number between 1 and 100, use the button to check whether the given ...
A: write a program to get random number between 1 and 100......
Q: When assessing the benefits and drawbacks of distributed data processing, what aspects should you co...
A: The solution to the given problem is below.
Q: Which user management tool is required to assign a logon script to a user?
A: Local Users and Groups is said to be a Microsoft Management Console (MMC) snap-in which lets you man...
Q: Use multiple-row subquery in a WHERE clause. List order numbers of books, written by an author whose...
A: Multiрle-rоw subqueries аre nested queries thаt саn return mоre thаn оne rоw оf results...
Q: Write a C++ program will ask the user to enter 5 numbers and then present with their sum.
A: The question is to write C++ program for the given problem.
Q: In an incident response plan for information security, what are the procedures for sharing informati...
A: Introduction: An incident response plan is a set of instructions that assists IT staff, in detecting...
Q: Is it easier for you to identify someone using their fingerprints, speech intonation, face features ...
A: Answer: Everyone can choose based on the perspectives but I beleive Retinal scanning is going to rul...
Q: What are three options that could be used in a project based on the decision tree structure? What ap...
A: Decision Trees: A large part of the danger control method entails searching into the destiny, lookin...
Q: A machine cycle is a four-part closed-loop process. Explain why the machine cycle is so important. I...
A: Answer: Another term for the machine cycle is the processor cycle. The central processing unit (CPU)...
Q: Discuss possible countermeasures against Man-in-the-Middle (MITM) attacks that intercept wireless cr...
A: A man in the middle attack is a kind of eavesdropping assault in which attackers intercept communica...
Q: Complete the implementation of scrabble.c, such that it determines the winner of a short scrabble-li...
A: Answer: I have done code and also I have attached code.
Q: C Language: Answer the following 1. Write an appropriate array definition for each of the following...
A: To define the array we can do like Int array[5] This will define the array of size 5 and then we ca...
Q: Make a distinction between physical and schematic models by referring to relevant examples.
A: Let us know about the model first. A model is an abstraction of reality or a representation of a rea...
Q: Look the following Bash code and determine what should be in the gap (_________)? function perform_...
A: Here we write in simple words to fill this gap. ======================== In base file we fill $input...
Q: Give me an example of f formatted string python. Take all the data from the user.
A: Required:- Give me an example of f formatted string in python. Take all the data from the user. Appr...
Q: Give one benefit and one drawback of the Microkernel OS over the Monolithic OS. Provide evidence to ...
A: 1. Miсrоkernel :kernel mаnаges the орerаtiоns оf the соmрuter, In miсrоkernel the user ...
Q: What exactly is multifactor authentication and how does it work? What role does it play in password ...
A: Multifactor authentication (MFA) is a kind of security solution that requires a user to provide seve...
Q: 3. How might the heap implementation of priority queues be used to solve the following problems? How...
A: According to the information given. We have to implement heap priority queue by construct a Huffman ...
Q: Give an inductive definition of the function nodecount(t) which computes the number of internal node...
A: Actually, given question regarding binary tree.
Q: Is it easier for you to identify someone using their fingerprints, speech intonation, face features ...
A: Biometrics is the science of identifying people based on their distinct physical, biochemical, and b...
Q: ble functions. We have found that the given functions have the same derivative. In general, if two d...
A: Floating-point Figures are used to represent no integer fractional figures and are used in utmost en...
Q: Create a program that will take in an input of ASCII characters and distance value to encrypt and pr...
A: The code is given below.
Q: Is it easier for you to identify someone using their fingerprints, speech intonation, face features ...
A: Biometrics validation gadgets depend on actual qualities like a unique mark, facial examples, or iri...
Q: Convert the decimal number 11910 (base 10) to binary (base 2). Convert the decimal number 20810 (bas...
A: 1) To convert decimal number to binary number We can divide the given decimal number recursively by...
Correct code
def q(a,b,c,x):
return a*x**2 + b*x +c
def pq(a,b,c,x):
print(f'At x= {x} ,y= {q(a,b,c,x)}')
a=float(input())
b=float(input())
c=float(input())
for x in range(10):
pq(a,b,c,x)
x=10
power=1
while power< 8:
pq(a,b,c,x**power)
power+=1
Trending now
This is a popular solution!
Step by step
Solved in 2 steps
- Write a program that does temperature converter :\n", "- The user will enter if he wants the result in Celsius or in Fahrenheit. Use the input function to read this option. \n", "- Ask the user the value of the temperature he wants to convert. Use the input function to read this value and convert accordingly.\n", "- If the user wants the temperature in Fahrenheit compute: $ Fahrenheit = Celsius*5/9+32$.\n", "- If the user wants the Celsius compute as follows: $ C = (F-32)*5/9 $.\n"Write a program that takes as input five numbers and outputs the mean (average) and standard deviation of the numbers. If the numbers are x1,x2,x3,x4,andx5, then the mean is x=(x1+x2+x3+x4+x5)/5 and the standard deviation is: s=(x1x)2+(x2x)2+(x3x)2+(x4x2)+(x5x2)5 Your program must contain at least the following functions: a function that calculates and returns the mean and a function that calculates the standard deviation.Using the celsius_to_kelvin function as a guide, create a new function, changing the name to kelvin_to_celsius, and modifying the function accordingly.Sample output with input: 283.15 10.0 C is 283.15 K 283.15 K is 10.0 C def celsius_to_kelvin(value_celsius): value_kelvin = 0.0 value_kelvin = value_celsius + 273.15 return value_kelvin ''' Your solution goes here ''' value_c = 10.0print(value_c, 'C is', celsius_to_kelvin(value_c), 'K') value_k = float(input())print(value_k, 'K is', kelvin_to_celsius(value_k), 'C')
- Write a function max_magnitude() with two integer input parameters that returns the largest magnitude value. Use the function in a program that takes two integer inputs, and outputs the largest magnitude value. Ex: If the inputs are: 5 7 the function returns: 7 Ex: If the inputs are: -8 -2 the function returns: -8 Note: The function does not just return the largest value, which for -8 -2 would be -2. Though not necessary, you may use the built-in absolute value function to determine the max magnitude, but you must still output the input number (Ex: Output -8, not 8). Your program must define and call the following function:def max_magnitude(user_val1, user_val2) python import math # Define your function here. if __name__ == '__main__': # Type your code here.I need to organize the functions according to how fast they grow from the one that grows the slowest (top) to the one that grows the fastest. This is with regards to the O notation in Java Programming 100, n+1, 2log(n), n*ln(n), 2n^2, 2^(n+1), (2n)^n, 2n!, 5n^3, n*3^n.When you use a mortgage to purchase a home, the lending institution effectively owns the home. You buy back part ownership in the home with each monthly payment. The part you have bought back is your equity in the home. If the mortgage amount is P dollars, the monthly interest rate is r as a decimal, and the term of the mortgage is t months, then your equity after k payments is E(k) = P((1 + r)k − 1) (1 + r)t − 1 dollars. In this exercise, assume that the mortgage amount is $200,000, the APR is 6% so r = .06/12 and the term of the loan is 30 years (360 months). (a) Find a formula for the equity. (b) Make a graph of the equity over 360 months, the term of the loan. (c) Does the graph show that you have half-ownership in the home halfway through the term of the mortgage? Halfway through the term of the mortgage corresponds to k1 = _______ payments. From the graph, we see that E(k1) is ________ half of the mortgage amount, so we _______ have half-ownership in the home…
- Write a function in C programming language that gets two ints x and y, and returns the sum of all ints between x and y, including them. int sum_interval(int x, int y); For example: - sum_interval(1, 4)returns 1+2+3+4=10. - sum_interval(10, 3)returns 3+4+5+6+7+8+9+10=52. - sum_interval(2, -1)returns (-1)+0+1+2=2. - sum_interval(-1, -1)returns -1. Note that we may have x>=y or x<=y. You may assume that the sum will be within the range of int.Write a function that receives 3 assignment grades, a1, a2, a3, and a final grade, f, for a student and returns the corresponding letter grade of the student. The weights for the assignments and the final are 0.2, 0.2, 0.2, and 0.4, respectively. You can use the following table for matching grades to letters: 95-100 -> A1 90-94 -> A2 85-89 -> A3 80-84 -> B1 75-79 -> B2 70-74 -> B3 65-69 -> C1 60-64 -> C2 55-59 -> C3 40-54 -> D 0-39 -> F For example, compute_letter(80, 60, 40, 70) returns "C2" because 80 * 0.2 + 50 * 0.2 + 40 * 0.2 + 70 * 0.4 = 62 and 62 corresponds to C2. Note that, you are expected to do rounding. For example, 39.4 is F, whereas 39.5 is D. You can use the builtin round() function for this. Please google this function and learn how to use it. """How would I do this in Jupyter? Write a function that takes 3 numbers as input and returns the maximum amongst the 3 numbers as the output. e.g.: func_max(5, 10, 30) Maximum is 30
- Implement the plus_one function as directed in the comment above the function. If the directions are unclear, run the code, and look at the expected answer for a few inputs. This function should work regardless of whether x is negative or not, and you should not use the ‘+’ symbol anywhere in your solution, nor any constants. To find the solution to this task, you should use your understanding of integer operations to find a way to add 1. Hint: consider what happens when you do -x. Could you use it with other operations to get x+1?. #include <stdio.h>#include <stdbool.h>#include <stdlib.h> // BEGIN STRINGBUILDER IMPLEMENTATION // This code is a very rudimentary stringbuilder-like implementation// To create a new stringbuilder, use the following line of code//// stringbuilder sb = new_sb();//// If you want to append a character to the stringbuilder, use the// following line of code. Replace whatever character you want to// append where the 'a' is.////…In python Write a function max_magnitude() with two integer input parameters that returns the largest magnitude value. Use the function in a program that takes two integer inputs, and outputs the largest magnitude value. Ex: If the inputs are: 5 7 the function returns: 7 Ex: If the inputs are: -8 -2 the function returns: -8 Note: The function does not just return the largest value, which for -8 -2 would be -2. Though not necessary, you may use the built-in absolute value function to determine the max magnitude, but you must still output the input number (Ex: Output -8, not 8). Your program must define and call the following function:def max_magnitude(user_val1, user_val2)In this assignment you will write your own square root function and a main program to test it. Thesquare root function will return a tuple the includes the square root of the number as well as thenumber of iterations it took to arrive at that solution. The pseudocode for the function and mainprogram is given as follows:import mathEPSILON = 1.0e-14def square_root(number):approximation = 1previous = 0iterations = 0while ((absolute value of (approximation * approximation minus number)is greater than EPSILON) and previous != approximation):previous = approximationapproximation = 0.5 * (approximation + number / approximation)iterations += 1return (approximation, iterations)print('This program calculates the square root of an inputted number')print('and the number of iterations that the algorithm took to reach')print(f'a degree of accuracy of {EPSILON}.')answer = “yes”while answer[0] equals “Y” or answer[0] equals “y”:number = float(input('Enter a nonnegative number: '))while number is less…