Write a program for the following information: Year has 365 days. You create array for temperature of each day in a year. Assign random temp values range of 30-110. Using a function Search in the array do you have 100 degree and what days. Print how many days and what days. Also print the Temp array in nice format in a function.
Q: mart is better for BI than a data warehouse is.
A: Let's see the solution.
Q: What's the difference between Stored Procedures and S "rocedures compare to other methods?
A: The differences between stored procedures and scripts are as follows: i)A stored procedure is a coll...
Q: course. Thesis topics should be implementable,
A:
Q: onsidered as the brain of the computer system. Select one: a. ALU b. CU c. MU d. CPU Cons...
A: Considered as the brain of the computer system. Select one: a. ALU b. CU c. MU d. CPU Cons...
Q: In the case of a buffer, what happens to the data?
A: Buffer These are memory storage areas that hold data temporarily while it is transferred from one lo...
Q: Give a brief history of computer systems and evolution in terms of technology and prevailing pattern...
A: Introduction: Computer systems, in particular, have advanced quickly as technology has progressed. ...
Q: The hidden node problem has been addressed by using special WiFi access points. True False Next inco...
A: Lets see the solution in the next steps
Q: What are the differences between internal and external file labels? What is the purpose of them?
A: File labels Researchers, analysts, companies, and institutions amass tremendous amounts of data and ...
Q: ecurity flaws are exploited and how may these issues be addr ter Damage?
A: What security flaws are exploited and how may these issues be addressed in the future in the case of...
Q: What do you mean by iop? Explain the concept of cpu-iop communication with the help of its flow char...
A: Let's understand step by step : Input -Output Processor (IOP) : IOP is mainly used to reduce the b...
Q: In what ways do SD cards vary from one other?
A:
Q: A college portfolio can help you in your career search (and beyond). What should your portfolio cont...
A: Employer: An employer is someone who hires applicants after their interview. An employer may be a pe...
Q: What is the purpose of using a motherboard?
A: Introduction: what is the purpose of using a motherboard
Q: Because a data warehouse is too big, a data mart is better for BI than a data warehouse is. What kin...
A: The answer is given below:-
Q: 2. Use DeMorgan's Theorem and simplification theorem to obtain SOP expression for each of the follow...
A: The question is to find the simplified SOP form of given POS expressions.
Q: Consider the following questions: What are some of the most important considerations when it comes t...
A: Backup copies allow data to be restored from an earlier point in time to help the business recover f...
Q: The process of saving data and instructions so that they are available for processing as and when re...
A: here, I have to choose an option to the above question.
Q: 852 Which of the following can be used to return the maximum salary (SALARY) for each location (LOC)...
A: query to find out maximum salary for each location : select LOC,max(SALARY) from emp group by LOC;...
Q: What is the Single Audit Act, and how does it work? What impact has this statute had on the auditing...
A: Introduction: Single Audit Act: All recipients of grants and funding are expected to compile their f...
Q: Write a program in MIPS that does the following: Request the name of a file from the user and open i...
A: Write a program in MIPS that does the following: Request the name of a file from the user and open i...
Q: hest operator prec
A: The highest operator precedence in Java
Q: 1. software definition. 2. software characteristics. 3. types of applications and examples. 4. softw...
A: The above question that is defination of software , characteristics of software, types of applicatio...
Q: What happens to the CPU when a software makes a request for input/output (/0)? What mechanism is use...
A: Answer : Once the input/output request is made, the software sends a signal to the CPU to be proces...
Q: Problem-3: Tire Using the Magic Formula described in Section 14.4, estimate and plot the aligning to...
A: Magic formula : y(x)=Dsin{Ctan-1[Bx-E(Bx-tan-1(Bx))]} Y(X)= y(x) + Sv x=X + Sh or X= x-Sh Where, Y(X...
Q: What is the other name for a single byte of data?
A: Bytes: As byte is a unit of storage in computer science. Eight bits, or eight on-or-off states, make...
Q: In the case of a buffer, what happens to the data?
A: Introduction: When moving data from one location to another, it is necessary to employ a data buffer...
Q: 3 6. Evaluate the determinant for the following matrix: O A.8 O B.-2 O C.5 O D.-4
A: a11 a12 a21 a22 determinant = (a11 * a22 ) - ( a21 * a12 )
Q: What security flaws are exploited and how may these issues be addressed in the future in the case of...
A: Introduction: Data damage is defined as any decrease in integrity or data acquisition. Damage to a c...
Q: What's the difference between Stored Procedures and Scripts? What is the purpose of each? How does e...
A: Difference : Stored Procedure Stored Procedure is a set of SQL commands that is pre-compiled and st...
Q: Compare CMP and SUB instruction using an example
A: Ans: Compare CMP and SUB instruction is: The cmp is used for comparing the numeric value with the s...
Q: Tennis is a racket sport that is played by two opposing players on S sets. Each set consists of at l...
A: Explanation of each moment: 1. They have just a total of s matches, each with at least one dependent...
Q: In what year was the ENIAC first developed?
A: The first ENIAC (Electrical Numerical Integrator And Calculator) was developed in 1945. It was devel...
Q: computer Is there anything you know about Ada Lovelace's ideas?
A: Yes I know about Ada Lovelace, I have described about her.
Q: In how many books did John von Neumann write his thoughts?
A: John Von Neumann was a polymath and pioneer in the use of operator theory in quantum mechanics, in t...
Q: Is there a known inventor of the microprocessor?
A: A microprocessor is a CPU with multiple integrated circuits that contain the logic, control, and ari...
Q: Is there a known inventor of the microprocessor?
A: Introduction: The early electrical computers were colossal. ENIAC, for example, weighed about 27 to...
Q: What is disk storage, and how does it work?
A: For first part refer below:
Q: 2) If last digit of your id is 0,1,2,3,4 then answer (a), if last digit of your id is 5,6,7,8,9 then...
A: PROGRAM EXPLANATION: Import java.util package. Create the main class. Define a method check, this m...
Q: Ihstruction format has micro operation field which is divided into 2 subfields F1 and F2, each havin...
A: Microprocessor instruction format, which is divided into three subfields F1, F2 each having 15 disti...
Q: A micro instruction format has micro operation field which is divided into 2 subfields F1 and F2, ea...
A: Introduction: In logic, if there are n micro-operations, we may describe them as 2n, where n is the ...
Q: What
A: Introduction These are the human characteristics Human Qualities of EPICAC: The plot of this story ...
Q: Let G be a formal grammar with the following production rules: Sigma --> 1A, A --> OB, B --> OB, B--...
A: Right Linear Regular Grammar because the tree is increasing right side. 1 A 0 B ...
Q: Which was the first supercomputer in existence?
A: Which was the first supercomputer in existence?
Q: reate a flowchart that will accept the name and grade of a student in computer programming for preli...
A: Following is the flowchart of the above question:
Q: Student name id getName ( ) getGPA () OgetId () Os e tName ( ) tostring () Undergrad Graduate year t...
A: PROGRAM EXPLANATION: Create a Student class. Declare all the data members as private and define acc...
Q: 10). In interrupts the starting address is fixed. A. External interrupt B. Vectored interrupts C. No...
A: According to the question vectored interrupts helps makes starting the service to assign for the dis...
Q: Write a program, in Python, that checks if the last data item entered appears earlier in the list. P...
A: Algorithm: Start Declare an empty list data Initialize count to 0 Read data from user If data!=-1, ...
Q: How did the achievements of John von Neumann influence subsequent generations of mathematicians?
A: Introduction: John von Neumann: John von Neumann is occasionally referred to as a polymath. A polyma...
Q: In computer memory, how do local declarations get put in place? Yes, but there aren't any good reaso...
A: Introduction: Memory Allocation: The technique by which the software creates "space" for informatio...
Q: Von Neumann's architecture has what characteristics?
A: Here in this question we have asked about the characteristics of Von Neumann's architecture .
Write a program for the following information:
Year has 365 days. You create array for temperature of each day in a year. Assign random temp values
range of 30-110. Using a function Search in the array do you have 100 degree and what days. Print
how many days and what days. Also print the Temp array in nice format in a function.
Sample output
CODE SCREENSHOT
Trending now
This is a popular solution!
Step by step
Solved in 6 steps with 5 images
- Write a program that will read the monthly salary of 10 employees and then calculates the income tax (i.e, 10% of the salary) and net salary. Hence you have to declare an array salary[10][3]. Your program should have 4 functions. The first function will be used to read monthly salary of 10 employees and put it in the first column of the array. The second function will be used to calculate the income tax for each employee and then store it in the second column of the array. The third function will be used to calculate the net salary of each employee and store it in the third column of the array. Finally, the fourth function will be used to display the gross salary, income tax and net salary for each employee. You must pass the array as reference in each function you used.In statistics the mode of a set of values is the value that occurs most often. Write a program that determines how many pieces of pie most people eat in a year. Set up an integer array that can hold responses from 30 people. For each person, enter the number of pieces they say they eat in a year. Then write a function that finds the mode of these 30 values. This will be the number of pie slices eaten by the most people. The function that finds and returns the mode should accept two arguments, an array of integers, and a value indicating how many elements are in the array.Write a function which solves a projectile problem. As input, the function will take the initial height (y0) from which the projectile is launched, the initial velocity, and the angle in degrees which the initial velocity makes with the horizontal (positive if above the horizontal, negative if below the horizontal). The function should calculate the time T the projectile stays in air, generate a time array (0, T/100, 2T/100, 3T/100, …, T), and return the values of x and y (the components of the position vector of the projectile) at the times in the array. Plot the projectile trajectory using matplotlib. Use phyton language
- An instructor gives a multiple choice test which consists of 5 questions, each of which is answered by a choice of one of the numbers one to five. Write a program to call function TEST that accepts as input student name and the set of their test answers as one dimensional array. The program should grade the test. If the student choice is 1 give 1 point. If the choice is 2, give 2 points. 3 points if choice answer is 3 and 4 pints for answer 4 and choice 5 is 5 points. Otherwise no point is given to other choices. Print out the average score of the student in the test.SAMPLE RUN 1:INPUT : Enter student name : LYNNEEnter Answer # 1? 2Enter Answer # 2? 3Enter Answer # 3? 5Enter Answer # 4? 5Enter Answer # 5? 4OUTPUT : LYNNE, your total score is 19 and your average score is 3.8.SAMPLE RUN 2:INPUT : Enter student name : ROSEEnter Answer # 1? 2Enter Answer # 2? 3Enter Answer # 3? 767Enter Answer # 4? 5Enter Answer # 5? 4OUTPUT : ROSE, your total score is 14 and your average score is 2.8.Write a function which solves a projectile problem. As input, the function will take the initial height (y0) from which the projectile is launched, the initial velocity, and the angle in degrees which the initial velocity makes with the horizontal (positive if above the horizontal, negative if below the horizontal). The function should calculate the time T the projectile stays in air, generate a time array (0, T/100, 2T/100, 3T/100, …, T), and return the values of x and y (the components of the position vector of the projectile) at the times in the array. Plot the projectile trajectory using matplotlib. Use phyton language pls put output screenshot import mathimport numpy as npimport matplotlib.pyplot as plt%matplotlib inlineProgram - python Create an array of 10 integers and pre-populate it with 10 numbers. Then write a function called printit which will loop through the array and print the values out. Call the function to show it works. Now write another function called finditem and pass it the array and a number to find, call the function which should return a boolean if it's found or not. Test it out on the number 50. If the number fifty is in your array it should print True otherwise false.
- Write a program that uses a two-dimensional array to store the highest and lowest temperatures for each month of the year. The program should output the average high, average low, and the highest and lowest temperatures for the year. Your program must consist of the following functions: Part a: Function getData: This function reads and stores data in the two- dimensional array. Part b: Function averageHigh: This function calculates and returns the aver- age high temperature for the year. Part c: Function averageLow: This function calculates and returns the average low temperature for the year. Part d: Function indexHighTemp: This function returns the index of the highest high temperature in the array. Part e: Function indexLowTemp: This function returns the index of the lowest low temperature in the array. (These functions must all have the appropriate parameters.) #include <iostream> using namespace std; const int NO_OF_MONTHS = 12; void getData(int twoDim[][2], int…using c++ Create a function that accepts the integer array described above returns the standard deviation of the values in a. The standard deviation is a statistical measure of the average distance each value in an array is from the mean. To calculate the standard deviation, (http://en.wikipedia.org/wiki/Standard_deviation ) you first call a second mean function that you need to write (do not use a built in gadget. Then sum the square of the difference of each value in the array a and that mean. The standard deviation is the square root of that sum divided by the number of elements in the array. Pay attention to what type of function your standard deviation and mean functions should be. As part of testing the functions, your main should display your test array in a square. (create an integer array with 100 randomly generated values between 0 and 99; pass this array into all subsequent functions. Place code in your main to call all the methods and demonstrate they work correctly.)Develop a program in c language to input the array of 10 elements through the keyboard. You program should implement the following functions: 1. Input Array from the user 2. Sort an array 3. Find out the mean 4. Find out the median
- Write a function that determines standartdeviation of float array. The function takes dataset as afloat array parameter!! And it also return result as afloat.(Clue: calculate average first) Definations: in the image σ = standard deviationxi = each value of dataset? (with a bar over it) = the arithmetic mean of the data(This symbol will be indicated as average of dataset)N = the total number of data points(if you need square root of some number you can use sqrtfunction in math.h library. Usage example: a=sqrt(b);which means “a” is equal to square root of “b”)1.Enter a positive integer value n (6 <= n < 30) and take n integers from the user as input and store them in array a. Then move the elements of this array one step to the left and make the first element of the array the last element of the array. Shift this array with a function. Display integer value n, the array elements in original order and the array elements in modified order (after shifting). For example, if the original order of the array a is like below : a: 33 45 67 89 12 7 After shifting one step to the left, you should get the following order of the array а: a: 45 67 89 12 7 33Write a program that uses a two-dimensional array to store the highest andlowest temperatures for each month of the year. The program shouldoutput the average high, average low, and the highest and lowest temperaturesfor the year. Your program must consist of the following functions:a. Function getData: This function reads and stores data in the twodimensionalarray.b. Function averageHigh: This function calculates and returns theaverage high temperature for the year.c. Function averageLow: This function calculates and returns the averagelow temperature for the year.d. Function indexHighTemp: This function returns the index of thehighest high temperature in the array.e. Function indexLowTemp: This function returns the index of thelowest low temperature in the array.