Write a program that generates 100 random integers between 100 and 1000 inclusive and displays the number and sum of even integers divisible by 3 and number and sum of odd integers divisible by 9. Use at least three functions: one to initialize the array with random numbers, one to find the four values, and one to display all four values. Print all random integers, 12 integers on each line.
Q: A user is executing a tracert to a remote device. At what point would a router, which is in the path...
A: Explanation When a traceroute packet is received, the TTL field value is decremented by 1. The rece...
Q: Describe four reasons why computer mishaps have become more common??
A: Introduction: The problem with "free software" is that it is often not accessible, according to Read...
Q: b. Test for normality using a goodness of fit test. Report the goodness of fit p-value and state if ...
A: Goodness of Fit Test: is a hypothesis test, in which we determine the data fits in a particular dist...
Q: Given a linked list consists of data, a next pointer and also a random pointerwhich points to a rand...
A: Given a linked list consist of data, a next pointer and also a random pointer which points to the li...
Q: Let Σ = {a, b}. Compute L(a + ab∗)
A: Finite automata for the above question.
Q: a control say about
A: Location attribute is used to get or set the coordinates of upper left corner control with respect t...
Q: hat Linux distribution serves as the foundation for the Ubuntu Linux distribution and how did it com...
A: Lets see the solution.
Q: Prove or disprove: x↑(y↑z)=(x↑y)↑z, for all x,y,z ∈Z
A: The question is to Prove or disprove: x↑(y↑z)=(x↑y)↑z, for all x,y,z ∈Z
Q: import numpy as np import matplotlib.pyplot as plt ########################### # # Perceptron Obje...
A: # import numpy to help with math operationsimport numpy as np class Perceptron(object): def _...
Q: (C PROGRAMMING ONLY) Make a code with the string function of strcmp (with user input)
A: - We need to code for the strcmp function use in C language.
Q: Define a function named sharpen that performs this operation: The function should expect an image an...
A: Screen shot of code:
Q: What exactly does the term "reduced" imply in the context of a computer with a restricted instructio...
A: The word "reduced" was applied to RISC computers since their instruction set was smaller than that o...
Q: Write program to copy a block of 8 bytes of data to RAM locations starting at 50H from RAM locations...
A: The Answer is given below step.
Q: Create a function called word_intersection that prompts the user for two English words, and displays...
A: The user input will be string and then we have to parse them to set and then we can use intersection...
Q: "Machine learning is an empirical science," says the author. What is the meaning of this statement?
A: Introduction: Machine learning is the study of computer algorithms that learn on their own. Machine ...
Q: Given Postfix Expression: . (а) А В + С * D - (b) А ВС * + D - Convert to INFIX!
A:
Q: How come ProfNet's real-time communication model contains just three tiers in its network model inst...
A: Each industrial network has be its own set of standards since it must fulfil a variety of activities...
Q: WRITE A JAVA PROGRAM TO TAKE A LIST OF INTEGERS FROM THE USER AND PRINT THAT LIST WHERE EACH INTEGER...
A: Here, we are going to write a java program which will multiply each integer by 2 of given list of i...
Q: hello! can you please help me with my code? i need to get the same expected output. the instructions...
A: INTRODUCTION: Here we need to fill the function in c programming language.
Q: How do I make a complex sentence with the word Stare
A: Make a complex sentence with the word Stare.
Q: What are the requirements for utilising the Amazon Web Services SDK S3 with a Spring Boot app?
A: Spring boot is one of the light framework that helps to build java application and Amazon Web Servic...
Q: Have you considered the three different kinds of IPv6 migration techniques?
A: Answer for the given question is in step-2.
Q: The question is, whether kind of program-level parallelism (data or control) is best suited to SIMD....
A: Introduction: Thus, when we consider whether triangles or triangles may have a Vertex as a point of ...
Q: C PROGRAMMING ONLY) WITH USER INPUT Make a code with the string function of strstr (with user input)
A: The question is to write C code for the given problem.
Q: Assume a computer has two network interface cards, NIC1, a Wifi USB, and NIC2, an on-board Ethernet....
A: ANSWER:-
Q: Among the operators in regular expressions, which one has the highest precedence? OA+ O B.() Oc O D.
A: A) + is not having the highest prescedence. B)()- According to the precedence and associativity tabl...
Q: Write a Java program to get a sub string of a given string
A: //Program public class substringexample { public static void main(String args[]) { String ...
Q: Heating and cooling degree days with user input Modify the pervious program to get its input from a ...
A: Hey there, I am writing the required solution of the above stated question.Please do find the soluti...
Q: UPDATE NONCAT SET Category =NULL WHERE ITEM_ID = UF39; Task 7: In the NONCAT table, change the categ...
A: Solution: UPDATE NONCAT SET Category =NULL WHERE ITEM_ID = 'UF39';
Q: void main () { 1. int n.x.vjflag, a; 2. cin >> a; // input a 3. cin >> x; // input x 4. cin >> y; //...
A: Hey there, I am writing the required solution of the above stated question.Please do find the soluti...
Q: Let L = {01, 10} be a language over Σ = {0, 1}. TRUE or FALSE: (a) 1000 ∈ L* (b) 101001 ∈ L
A: Here in this question we have given a language L = {01, 10} and we have asked weather some string be...
Q: A user is executing a tracert to a remote device. At what point would a ról s in the path to the des...
A: let us see the answer:-
Q: SH client file that a system administrator uses to p
A: Is there a name for the SSH client file that a system administrator uses to pre-configure the public...
Q: What is it about virtual memory that prevents it from being employed more often in embedded systems?
A: Introduction: Virtual memory, or virtual storage, is a memory management strategy in computing that ...
Q: Specify the architecture of a computed unified device.
A: Compute Unified Device Architecture is equally registering engineering valuable for the help of uses...
Q: How does a data breach effect cloud security? What are some possible countermeasures?
A: According to the question a records breach exposes personal, sensitive, or blanketed facts to an una...
Q: It has already been stated that each thread executing in the JVM is limited to just having one metho...
A: Introduction: Java is a multi-threaded programming language. It signifies that it has numerous thre...
Q: A program is required to read from the screen the lenghth and width of a rectangular house block, an...
A: The Answer for the given question is start from step-2.
Q: In database administration, what are the three most important jobs to perform?
A: In database administration, what are the three most important jobs to perform?
Q: Why are watchdog timers required in such a large number of embedded systems?
A: The answer of this question is as follows:
Q: e of the benefits and downsides of caching disk write operations, and how do they differ from one an...
A: Benefit: The most obvious benefit of caching disc write operations is that the hard disc will not ha...
Q: Customers that don't have a clear understanding of the systems they'll require for their operations ...
A: Introduction: An incremental method divides the software development process into tiny, manageable c...
Q: Describe the problems and solutions associated with directory traversal vulnerabilities.
A: problems and solutions associated with directory traversal vulnerabilities.
Q: 1. What is Failover-Clustering and why do you think it is so widely used?
A: Failover clustering is Microsoft's implementation of the high availability cluster method for provid...
Q: Perform the following twos-complement additions, circle the 5-bit sum, and indicate whether or hot o...
A: Hey there, I am writing the required solution of the above stated question.Please do find the soluti...
Q: ob Maximum branching factor of the search tree od Depth of the least-cost solution a m Maximum depth...
A: Solution:-
Q: a) Categorize FOUR (4) main layers of automata theory, and explain each layer briefly. b) List ONE (...
A: Introduction: Automata is a machine that can accept the strings of a language L over an input alpha...
Q: 5 Evaluate the determinant for the following matrix: 1 O A. 8 О В.-2 O C. 5 O D. -4
A: The determinant of a matrix can be denoted as a scalar value associated with a matrix. The determina...
Q: What is an operating system and how does it work?
A: Introduction: The operating system is the backbone of every computer or mobile device when it comes ...
Add comments and attach screenshot of code and output
Trending now
This is a popular solution!
Step by step
Solved in 4 steps with 3 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.Write a program that prompts the user to enter 50 integers and stores them in an array. The program then determines and outputs which numbers in the array are sum of two other array elements. If an array element is the sum of two other array elements, then for this array element, the program should output all such pairs separated by a ';'.Write a program which asks user to enter total number of customers who have bought fruits today, create an array dynamically, then asks user to enter quantity of fruit bought and price per kg of item ( e.g. for one kg apple= 200rs.) calculate the bill and stores the bill in the array. At the end you have to display the total earning of the shop in a day.
- 1. Write a program that fills an array with 10 random integer values between O and 100, your program should then calculate and print the alternating sum of all elements in the array. for example, if the array values are (89, 35, 44, 61, 66, 52, 45, 16, 48, 73) then the sum will = 89- 35 + 44 - 61 + 66- 52 + 45 - 16 + 48 - 73 = 55. Sample Run: The generated numbers are: 2 11 44 38 66 72 38 67 43 13 The alternating sum is -8 2. Write a program that reads 10 characters from user and store them in an array. Then display one or more of the following messages: 1. All characters are letters 2. All letters in the list are upper 3. There is no vowel letter in the list 4. There is at least 2 digits in the list 5. There is at least 3 symbols in the list Sample run 1: Enter 10 characters: AB1OK8 M& ? All letters in the list are upper There is at least 2 digits in the list There is at least 3 symbols in the listWrite 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 outputWrite a program that uses a 2-D array to store the highest and lowest temperatures for each month of the year. The program should output the average high, average low, and highest and lowest temperatures of the year. Your program must consist of the following methods with their appropriate parameters: a.) getData: This method reads and stores the data in the 2-D array. b.) averageHigh: This method calculates and returns the average high temperature of the year. c.) averageLow: This method calculates and returns the average low temperature of the year. d.) indexHighTemp: This method returns the index of the highest temperature in the array. e.) indexLowTemp: This method returns the index of the lowest temperature in the array. Use the following input: High temp for each month: 30 40 45 60 70 90 89 95 79 90 70 40 Low temp for each month: 10 -10 20 30 50 75 85 79 50 80 30 20
- Create an array of N integers. Ask from the user how many elements he/she wants to input in the array. Determine the following: (you may define a function for each item below) sum of all numbers INPUTTED the average of all numbers, count how many are EVEN numbers(excluding zero), how many are odd numbers and how many zeroes were inputted? At the end, print the accumulated and counted values (for items a-e given above) In the array.Write a program to store an array of integer random numbers. Program should find out from the user how many numbers to store. It should then generate and store that many random integers (the random numbers must be between 1 and 999 inclusive). The program should then determine the smallest number, the largest number, and the average of all the numbers stored in the array. Finally, it should print out all the numbers on the screen, five numbers to a line with spaces in between. Once the contents of the array have been printed to screen, display the smallest number, largest number, and average determined previously ensuring that the program design in modular. Explain whether the static variables and methods can can be used and why. The Random class of Java library (java.util.Random) implements a random number generator. To generate random numbers, construct an object of q the class Random, and then use the method nextInt(n) which returns a number between 0 (inclusive) and n (exclusive).…Write a program that stores the 1st 10 even numbers in an array. Also, compute and print the sum of the even numbers in the array. Note: No user input needed.
- Write a program that reads student scores into an array, gets the best score, and then assigns grades based on the following scheme: • Grade is A if score is • Grade is B if score is • Grade is C if score is • Grade is D if score is • Grade is F otherwise. best - 10 best - 20; best - 30; best - 40; The program prompts the user to enter the total number of students, then prompts the user to enter all of the scores, and concludes by displaying the gradesWrite a program that lets the user enter the total rainfall for each of 12 months (starting with January) into an array of doubles. The program should calculate and display (in this order): the total rainfall for the year, the average monthly rainfall, and the months with the highest and lowest amounts. Months should be expressed as English names for months in the Gregorian calendar, i.e.: January, February, March, April, May, June, July, August, September, October, November, December. Do not accept negative numbers for monthly rainfall figures. When a negative value is entered, the program outputs "invalid data (negative rainfall) -- retry" and attempts to reread the value. NOTE: Decimal values should be displayed using default precision, i.e. do not specify precision.Write a program that creates an array of 100 random integers in the range 1 to 200 and then using sequential search searches the array 100 times using randomly generated targets in the same range. At the end of the program the following statistics to be displayed. (COO1) The number of searched completed.The number of successful searches.The percentage of successful searches.The average number of tests per search.Note : To determine the average test per search you will need to count the number of tests for each search. Hint : Use the comma operator to count the compares.