#source code in c++:
#include <iostream>
using namespace std;
int gradearrayfun(int gradearray[]){
int pass=0;
for(int i=0;i<5;i++){
if(gradearray[i]>=60 && gradearray[i]<=100){
pass=pass+1;
}
}
return pass;
}
int main(){
int gradearray[5];
for(int i=0;i<5;i++){
cin>>gradearray[i];
}int pass=0,fail=0;
pass=gradearrayfun(gradearray);
fail=5-pass;
cout<<"There are "<<pass<<" passing grades"<<endl;
cout<<"There are "<<fail<<" failing grades"<<endl;
return 0;
}
![#include <iostream> using namespace std; int gradearrayfun(int gradearray[]) { int pass=0; for(int i=0;i<5;i++) { if(gradearr](http://img.homeworklib.com/questions/ae9f00d0-e277-11ea-bbaa-17542437d511.png?x-oss-process=image/resize,w_560)

#source code in c:
#include <stdio.h>
int gradearrayfun(int gradearray[]){
int pass=0;
for(int i=0;i<5;i++){
if(gradearray[i]>=60 && gradearray[i]<=100){
pass=pass+1;
}
}
return pass;
}
int main(){
int gradearray[5];
for(int i=0;i<5;i++){
scanf("%d",&gradearray[i]);
}int pass=0,fail=0;
pass=gradearrayfun(gradearray);
fail=5-pass;
printf("There are %d passing grades\n",pass);
printf("There are %d failing grades\n",fail);
return 0;
}
![#include <stdio.h> int gradearrayfun (int gradearray[]) { int pass=0; for(int i=0;i<5;i++) { if(gradearray[i]>=60 && gradearr](http://img.homeworklib.com/questions/af6eb230-e277-11ea-8895-a9b5e369430d.png?x-oss-process=image/resize,w_560)
#output:

Write a program that asks the user to input 5 integers in an Array named "gradearray.”...
Write a program that asks the user to input 10 integers of an array. The program then inserts a new value at position (or index) given by the user, shifting each element right and dropping off the last element. For example, in the sample input/output below, the program will insert the value 30 at index 3. All the previous numbers of the array starting from position 3 (i.e., 7 1 20 9 23 8 22 will be shifted one position...
Write a program that asks the user to enter 1000 integers to be stored in an array called "numbers". Since the same integer might occur (exist) in the array multiple times, your program needs to fill a second array, called "Isolate" that contains all the integers from the first array but NOT REPAPTED (every integer will exist only once). Finally, your program will print the integers of the second array sorted by occurrence (occurrence is: the number of times the...
This code should be written in php. Write a program that allows the user to input a student's last name, along with that student's grades in English, History, Math, Science, and Geography. When the user submits this information, store it in an associative array, like this: Smith=61 67 75 80 72 where the key is the student's last name, and the grades are combined into a single space-delimited string. Return the user back to the data entry screen, to allow...
Write a program that will create an array of ten integers, allow the user to enter those integers, and eventually search through the array based on index position: 1. Declare the array. You cannot assign elements to an array until it has first been created. 2. Next, run a for loop so that the user can enter an integer to save in each index position of the array. Since you this array holds ten elements , the index position starts...
Write a program that first gets a list of integers from the input and adds them to an array. The input begins with an integer indicating the number of integers that follow (Your program should work for any size of the array). Then, get the last value from the input, and output all integers less than or equal to that value by iterating through the array. Ex: If the input is: Enter the number of integers: 5 Enter integer 1:...
Write a program that asks the user how many integers they would like to enter. You can assume they will enter an integer >= 1. The program will then prompt the user to enter that many integers. After all the numbers have been entered, the program should display the largest and smallest of those numbers (no, you cannot use lists, or any other material we haven't covered). When you run your program it should match the following format: How many...
Write a program in JAVA that asks the user to enter an integer. Store the integers in an array. Allow for up to 10 integers. When the user enters -1, the program should end. Print the number of integers entered as well as the number of times each integer was entered.
Write a C Program that inputs an array of integers from the user along-with the length of array. The program then prints out the array of integers in reverse. (You do not need to change (re-assign) the elements in the array, only print the array in reverse.) The program uses a function call with array passed as call by reference. Part of the Program has been given here. You need to complete the Program by writing the function. #include<stdio.h> void...
Write a program that asks the user for a student name and asks for grades until the user enters a non-number input, it should then ask if the user wants to enter another student, and keep doing the process until the user stops adding students. The student’s must be stored in a dictionary with their names as the keys and grades in a list. The program should then iterate over the dictionary elements producing the min, max, and mean of...
Write a program that reads a sequence of integers into an array and that computes the alternating sum of all elements in the array. For example, if the program is executed with the input data: 2 1 4 9 16 9 7 4 9 11 Then it computes 2 - 1 + 4 - 9 + 16 - 9 + 7 - 4 + 9 – 11 = 4 Use a scanner object to gather the inputs from the user....