In C Programming Write a main function that declares an array of 100 ints. Fill the array with random values between 1 and 100. Calculate the average of the values in the array. Output the average.
Q: For a variety of reasons, it is not practical to keep instructions and data in primary memory while ...
A: -two reasons may be 1.because primary memory stores instructions and data of currently executing pro...
Q: Find the extrema of the function f_3(x,y)=2+3x^2+4y^2 on set D={(x,y): 2(x-1)^2+3(y+1)^2 ≤ 1} You ca...
A: clc; clear; close all; xMin = -2; xMax = 2; yMin = -2; yMax = 2; numPoints = 200; xv = linspace(xM...
Q: Write a Java program to take a string & a number(N) from the user and print the string made starting...
A: import java.util.Scanner;public class Main{ public static void main(String[] args) { Scanner sc= ne...
Q: Today's information arrives in a variety of formats. Explain such kinds using instances from the con...
A: Introduction: A computer network, also known as a data network, is a communication system that allow...
Q: How do you see screencasting being useful in the realm of technical writing? How do you believe it w...
A: Technical writing is the art of explaining the way to use technology to a non-expert user using easy...
Q: Why has PDF become the most widely used document exchange format?
A: Introduction: Most popular format for sharing documents: The properties of PDF make it an excelle...
Q: Parts of a Resume (Fresh graduate): Arrange the parts of the resume according to their correct seque...
A: G. Name D. Contact Numbers H. Career Objective C. Work related Experience F. Skills and abilities
Q: Use the encoding formula y =x + 18 (mod 26). (TYPE WITH NO SPACES) 1. Encode: DWN 2. The decoding fo...
A: Answer the above questions are as follows:
Q: C++ PROGRAMMING Topic: Binary Search Trees Explain the c++ code below.: SEE ATTACHED PHOTO FOR THE ...
A: Binary search tree is a sorted binary tree in that all nodes has some properties they are:: 1.All ke...
Q: Write a program that prompts for a file name, then opens that file and reads through the file DNSLis...
A: We have to program a prompt file name, open that file, read through the file. Python Program def re...
Q: Question 4 After attending a system programming class, members were tasked to perform the following ...
A: Assembly Language:An assembly language programming is low level programming language. It helps in un...
Q: What is the difference between static and dynamic memory allocation?
A: Introduction: The memory in static memory allocation cannot be altered while a programme is running....
Q: Exhibit how internal IT and network risk rules can play a critical role in combating employees' fail...
A: Solution: Regardless of the size of the business, it is critical for all organizations to have estab...
Q: Problem Statement: Write a C program to recognize strings under 'a*", 'a*b+', 'abb'. AIM: Identify s...
A: Given: Procedure: By using transition diagram we verify input of the state. If the state recognize ...
Q: An OS developer is considering the use of face recognition over password for access control and auth...
A: Introduction An OS developer is considering the use of face recognition over password for access con...
Q: Provide one example of orthogonality, generality, and uniformity in the language of your choice, as ...
A: Introduction: The combinatorial features of an orthogonal array have made it useful in various appli...
Q: When you want to get money from your checking account, you use the ATM machine to do it How many ste...
A: Introduction: Assume a user withdraws money from his account at an ATM machine. Assume he took out $...
Q: Was Charlie overestimating the amount of time it would take to crack the encryption key using a brut...
A: Introduction: Charlie overstated the time it would take to break the encryption key using a brute fo...
Q: What exactly is extensible Markup Language (XML)?
A: Answer: XML stands for Extensible Mark Up Language. It is like HTML and is designed to describe dat...
Q: Rewrite the following expression in post-fix notation. b. Then, write the assembly code for the e...
A: x=(f-e)/(b*a) postfix notation of the given expression is: fe-ba*/
Q: What flaws have been uncovered in the router layer 2 protocol? Why does an ICMP request in a PPP enc...
A: Introduction: The primary function of a router is to route packets to their intended destinations. T...
Q: Finish the racket code bellow to be able to do >(n- list? '(1 (2 (3 4) 5) 6)) and produce an output ...
A: Given code can Returns a newly allocated list containing as its elements.
Q: Find the product of 34 and 27 using the following methods. Illustrate/write your complete solution 1...
A: here we have given step by step explain the process of finding the product using Chinese and Egyptia...
Q: How can DRM technologies prevent unlawful copying of media files?
A: Digital rights management (DRM) tools, often known as technical protection measures (TPM), are a gro...
Q: Differentiate between the procedural programming and the Object-Oriented programming.
A: NOTE: If there are multiple questions available then we are allowed to solve first question only 1) ...
Q: Using java: Display how many are positive and negative numbers in the two-dimension array. 32 5 45 2...
A: Start Take the 2D array of elements size Take the elements Find positive and negative numbers Print ...
Q: Explain the bull's-eye model in detail. What does it have to say about policy in the context of the ...
A: The bulls eye model policies are on the outside, because polices deal with every aspect. Followed by...
Q: algorithms, pseudocode and flowchart of arithmetic formula
A: assume the arithmetic formula step 1: find the first and last term sn =2a + ( n - 1) d sn = nth ter...
Q: Given: Language L1 = {w ϵ {0,1}* | w ends in either 10 or 11} Construct the DFA representing the gi...
A: L1 = {w ϵ {0,1}* | w ends in either 10 or 11} Input values: 0,1 Language is L1.
Q: What is the reason that segmentation and paging are sometimes merged into a single scheme? What exac...
A: Introduction: Thrashing occurs when page faults and swapping occur at an increased pace, requiring t...
Q: Write a Java program to take a string & a number(N) from the user and print the string made starting...
A: Required:- Write a Java program to take a string & a number(N) from the user and print the strin...
Q: In my python Maya script, I am trying to make a snowball followed by more snowballs varying in sizin...
A: using System;using System.Collections.Generic; public class Master{ public CyclicNetwork _network...
Q: Match the following: List 1 List 2 A) Collaborative1) is nonparametric and does not assume a model o...
A: Given questions are multiple choice questions so we provide the option with their correct answers.
Q: Convert the following base numerals. a. 1430 to base 4 b. 13127 to decimal
A: The required conversions are done by using the number system principles as described in the next ste...
Q: Explain in detail what are the effects of microcontrollers in the industry?
A: A microcontroller is a single-chip microcomputer produced using VLSI technology. Microcontrollers ar...
Q: Characteristics of octal number system are as follows except Uses eight digits, 0,1,2,3,4,5,6,7 O Al...
A: According to the question the octal number system always work on the eight digit with base of the 8 ...
Q: You're designing a multisensor embedded system. The total amount of sensor data collected with each ...
A: Argentina's CIAA project enables the development and production of embedded systems, for educational...
Q: Compare and contrast Ubuntu with other popular Linux distributions. Is it because of this that your ...
A: Introduction: Among the most widely used versions of Linux are Ubuntu, Debian, and CentOS. An early ...
Q: ntrol'
A: Introduction: The pictures will seem distorted if the Image Size property value does not match the s...
Q: roblem I just want t
A: For the given function, the corrected code is explained below.
Q: What role does data privacy awareness play in today's world?
A: Introduction: When personal information falls into the wrong hands, horrible things can happen. For ...
Q: Write a Java program that includes products' prices in a Stack.
A: #include <iostream>#include <stack>#include <vector> using namespace std; /* A spe...
Q: Data warehousing services delivered using a cloud-based architecture provide several benefits.
A: Introduction What is cloud computing? Simply put, cloud computing is the delivery of computing serv...
Q: Give state diagrams of DFAS recognizing the following languages. In all parts the alphabet is {0,1}
A:
Q: On a Wireless LAN using CAPWAP, which device is responsible for authentication and association of ro...
A: Wireless networks have become a necessity today. Many corporate environments require deployment of w...
Q: Give two examples of restrictions created by the black codes
A: Black code, in U.S. history, is any of numerous laws enacted in the states of the former Confederacy...
Q: 1) Write pseudocode that reads two numbers and multiplies them together and print out their product.
A: Pseudocode : 1. read number to n1 2. read another number to n2 3. calculate product and save it into...
Q: The Eight-Queens Problem: Place eight (8) queens on a chessboard so that no queen attacks another. A...
A: This problem is solved using the technique known as Backtracking.
Q: Give five different examples from each Regular Expression and explain in words what does everyone do...
A: 1. Consider the regular expression (1+0)* (1+0) (1+0) (1+0) The set of strings that satisfy given...
Q: the signal receives a SIGTSTP (Ctl-Z), it should print the number of signals SIGINT he received. a...
A: Code: #include <stdio.h> #include<string.h> int main() { int count = 0; char str1[20]...
In C
Write a main function that declares an array of 100 ints. Fill the array with random values between 1 and 100.
Calculate the average of the values in the array. Output the average.
Step by step
Solved in 4 steps with 2 images
- (Electrical eng.) Write a program that specifies three one-dimensional arrays named current, resistance, and volts. Each array should be capable of holding 10 elements. Using a for loop, input values for the current and resistance arrays. The entries in the volts array should be the product of the corresponding values in the current and resistance arrays (sovolts[i]=current[i]resistance[i]). After all the data has been entered, display the following output, with the appropriate value under each column heading: CurrentResistance Volts(Electrical eng.) a. An engineer has constructed a two-dimensional array of real numbers with three rows and five columns. This array currently contains test voltages of an amplifier. Write a C++ program that interactively inputs 15 array values, and then determines the total number of voltages in these ranges: less than 60, greater than or equal to 60 and less than 70, greater than or equal to 70 and less than 80, greater than or equal to 80 and less than 90, and greater than or equal to 90. b. Entering 15 voltages each time the program written for Exercise 7a runs is cumbersome. What method could be used for initializing the array during the testing phase? c. How might the program you wrote for Exercise 7a be modified to include the case of no voltage being present? That is, what voltage could be used to indicate an invalid voltage, and how would your program have to be modified to exclude counting such a voltage?(File creation) Write a C++ program that creates an array containing the integer numbers 60, 40, 80, 90, 120, 150, 130, 160, 170, and 200. Your program should then write the data in the array to a text file. (Alternatively, you can create the file with a text editor.)
- (Electrical eng.) Write a program that declares three one-dimensional arrays named volts, current, and resistance. Each array should be declared in main() and be capable of holding 10 double-precision numbers. The numbers to store in current are 10.62, 14.89, 13.21, 16.55, 18.62, 9.47, 6.58, 18.32, 12.15, and 3.98. The numbers to store in resistance are 4, 8.5, 6, 7.35, 9, 15.3, 3, 5.4, 2.9, and 4.8. Your program should pass these three arrays to a function named calc_volts(), which should calculate elements in the volts array as the product of the corresponding elements in the current and resistance arrays (for example ,volts[1]=current[1]resistance[1]). After calc_volts() has passed values to the volts array, the values in the array should be displayed from inside main().(Data processing) A bank’s customer records are to be stored in a file and read into a set of arrays so that a customer’s record can be accessed randomly by account number. Create the file by entering five customer records, with each record consisting of an integer account number (starting with account number 1000), a first name (maximum of 10 characters), a last name (maximum of 15 characters), and a double-precision number for the account balance. After the file is created, write a C++ program that requests a user-input account number and displays the corresponding name and account balance from the file.(Numerical) Given a one-dimensional array of integer numbers, write and test a function that displays the array elements in reverse order.
- Coding Problem Create a C++ programs that asks the user to enter 10 numbers and store them in an array. Shift the numbers one location to the right with the last value stored in the first location of the array. Display the array before and after rotation. You must use only one array. Example: Array before: 5 6. | 2 7 9. 1 100 Array After: 100 7 9 2 3.JAVA CODE PLEASE Functions with 1D Arrays Practice II by CodeChum Admin Create a program that asks the user for the size of an integer array and the elements of the array. Then, create a function with the following details: Parameters: An integer array The size of the integer array Return type - int Return value - the maximum value of the integer array Call the function you created in the main and pass the integer array and its size to it. Make sure to store the return value in a variable so you could print it afterwards. Input 1. First line contains the size of the array 2. Succeeding lines are the elements of an array Output Enter·size·of·array:·5 Enter·element·1:·1 Enter·element·2:·2 Enter·element·3:·3 Enter·element·4:·4 Enter·element·5:·5 Maximum·element:·5 Score: 0/10Display Array values Write a program that lets the user enter ten values into an array. Then pass the array, the size of the array, and the number, num to a function called displayArrayValues(). The function should then display all the numbers in the array larger than n. Write a program using C++.
- To receive an array argument, a function's parameter list must specify that the function expects to receive an array. The size of the array is not required between the array brackets. Select one: True FalseInstructions Write a program in C++ 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: Function getData: This function reads and stores data in the two-dimensional array. Function averageHigh: This function calculates and returns the average high temperature for the year. Function averageLow: This function calculates and returns the average low temperature for the year. Function indexHighTemp: This function returns the index of the highest high temperature in the array. Function indexLowTemp: This function returns the index of the lowest low temperature in the array. These functions must all have the appropriate parameters. An example of the program is shown below: Enter high temperature for each month 60 68 72 72 73 76 80 81 75 72 67 66 Enter low temperature for…C Program Functions with 1D Arrays Create a program that asks the user for the size of an integer array and the elements of the array. Then, create a function with the following details: Parameters: An integer array The size of the integer array Return type - int Return value - the maximum value of the integer array Call the function you created in the main and pass the integer array and its size to it. Make sure to store the return value in a variable so you could print it afterwards. Input 1. First line contains the size of the array 2. Succeeding lines are the elements of an array Output Enter size of array: 5 Enter element 1: 1 Enter element 2: 2 Enter element 3: 3 Enter element 4: 4 Enter element 5: 5 Maximum element: 5