56 17 81 41 62 = 257
22 96 34 77 70 = 299
10 25 15 12 30 = 92
84 19 51 67 49 = 270
172 157 181 197 211
Thanks for the question.
Below is the code you will be needing Let me know if you have
any doubts or if you need anything to change.
Thank You !
Note:
As per Chegg strict policy & guidelines, I am only allowed to
answer the first question with the first 4 subparts, please post
the remaining questions as a separate post, and I will be happy to
answer them. Sorry for the inconvenience caused.
Please post the below question in a separate post, and I will help you in that.
==========================================================================
#include<stdio.h>
int main(){
double array[10]; // declare array of size 10 of type
souble
int i;
// read in 10 numbers from user using for loop
for(i=0; i<10; i++){
// prompt user to enter a number
and store in the array
printf("Enter number %d:
",i+1);
scanf("%lf",&array[i]);
}
double minNum=array[0], maxNum = array[0];
double total=0.0;
// iterate all the number to find total, max and
min
for(i=0; i<10; i++){
if(array[i]<minNum)
minNum=array[i];
if(array[i]>maxNum)
maxNum=array[i];
total+= array[i];
}
printf("\nLargest Value is :
%.2lf",maxNum);printf("\n");
printf("Smallest Value is :
%.2lf",minNum);printf("\n");
printf("Sum of all values is :
%.2lf",total);printf("\n");
//Copy the array to a second array in reverse order.
Print out the second array.
double reversed_array[10];
for(i=0; i<10; i++){
reversed_array[i] =
array[9-i];
}
// printing reversed array
printf("\nReversed Number in the array:\n");
for(i=0; i<10; i++){
printf("%.2lf
",reversed_array[i]);
}
printf("\n");
}
=============================================================================
Write a C PROGRAM that will read in 10 floating-point numbers from the keyboard and load...
c++ no pointers just follow instructions Write a program (array.cpp) that read positive floating point numbers into an array of capacity 100. The program will then ask for one of three letters(A, M or S). if the user inputs something other than one of these letters, then the program should ask for that input until an A, M, or S is entered. A do-while loop should be used for this. If the user inputs an A, then the program should...
Write a java program that will read the values for 3 matrices A, B, and C and store the result of their summation in matrix D. You need to use a method to read matrix values. Use another method to add the three 3x3 matrices (each is a 2 dimensional array with 3 rows and 3 columns). Finally, use a third method to print the value of the summation (matrix D). Write a test program that will cal the three...
In C++ This program will read a group of positive numbers from three files ( not all necessarily the same size), and then calculate the average and median values for each file. Each file should have at least 10 scores. The program will then print all the scores in the order that they were input, showing each number and what percentage it is above or below the average for each file. Note: Finding the average doesn’t require an array. Finding...
Exercise #1:Write a C program that contains the following steps. Read carefully each step as they are not only programming steps but also learning topics that explain how numeric arrays in C work.Write a while loop to input a series of numbers (either from a file or from the keyboard, but using a file will make for easier debugging) into a one dimensional array of type double named x_arr, declared to be 25 elements in length. Count the elements as you...
:Pls help for this programing problem in c++ (standard IO without file read/write),better with some comment about why coding that way,thanks Problem A: Counting Numbers Problem Description Write a program that reads numbers from the keyboard into an integer array. You may assume that there will be 50 or fewer entries in the array. Your program allows any number of numbers to be entered, up to 50 numbers. The output is to be a two-column list. The first column is...
Write a Program in C language for: 1. Create a C program to read 7 integers and store them in an array. Next, the program is to check if the array is symmetric, that is if the first element is equal to the last one, the value of the second one is equal to the value of the last but one, and so on. Since the middle element is not compared with another element, this would not affect the symmetry...
•Write a java program to read 10 numbers and print them in reverse order. Modify your program to work for N numbers given by the user Extend your program to find the average of these numbers Extend your program to find the smallest number of these numbers Extend your program to find the largest number of these numbers •Write a program to read 10 numbers and print them in reverse order. Modify your program to work for N numbers given...
In Python 3, Write a program that reads a set of floating-point values. Ask the user to enter the values, then print: The number of values entered. The smallest of the values The largest of the values. The average of the values. The range, that is the difference between the smallest and largest values. If no values were entered, the program should display “No values were entered” The program execution should look like (note: the bold values are sample user...
Java Program Create a class to store an array of with enough space to store 10 integer values. Using the principle of recursion, implement the following: *getSize : returns the size of the array. *get (i): returns the i-th element of the array. If the element does not exist, it throws a "NoSuchElementException” which is a subclass of Java class RunTimeException. *add (val): inserts value as the last element of the array. If necessary, double the size of the current...
Write a menu based program implementing the following functions: (0) Write a function called displayMenu that does not take any parameters, but returns an integer representing your user's menu choice. Your program's main function should only comprise of the following: a do/while loop with the displayMenu function call inside the loop body switch/case, or if/else if/ ... for handling the calls of the functions based on the menu choice selected in displayMenu. the do/while loop should always continue as long...