A class with 10 students will take 3 exams. Use 3 arrays to hold the scores for each student and another array to hold the average of the 3 exams for each student. Print a table with scores and the average. SAMPLE OF HOW THE OUTPUT SHOULD BE STUDENT EXAM 1 EXAM 2 EXAM 3 AVERAGE 1 2 3
Q: Write a program that reads 10 numbers, finds the largest number, prints it, finds the smallest…
A: As there is no programming language mentioned question is attempted in c language. program to find…
Q: Given an array of int s, return true if the array contains two 7s next to each other, or there are…
A: Step 1: Accept Array Step 2: Iterate through array Step 3: if 7 detected then check for next 7 , if…
Q: Write a program which read the following (3x3 dimensional) array and then display it. 10 50 70 40 80…
A: Please find the solution for the above program in C++.
Q: In java, please read the text file as array. Then, replace the null with 0 and calculate the sum of…
A: Q: In java, please read the text file as array. Then, replace the null with 0 and calculate the sum…
Q: A personal phone directory contains room for first names and phone numbers for 30 people. Assign…
A: The given names are stored in an String array named name. The given phone numbers are stored in an…
Q: According to the following program segment answer the following questions. ArrayList animals = new…
A: Let's understand step by step : Answer (i) : 1. ArrayList <String> animals=new…
Q: You are playing a game where you roll two number cubes and your score is the sum of the two cubes.…
A: ALGORITHM:- 1. Initialize a array with cube outcomes. 2. Use nested lop to traverse the array twice.…
Q: Write a program that uses arrays to store the registration number of your total class.it then search…
A: Here, we take an integer array named registration to store the registration number of class_size…
Q: In the class Student, create a method for each of the following results using the array concept and…
A: Summary: Java supports object-oriented programming. The class student is declared and a 2d array is…
Q: Given an array containing stock prices at end of day for the whole week. Write a program to find the…
A: Algorithm : Step 1 : declare array of stock prices for the week. Step 2 : declare variables. Step 3…
Q: Write a program, which creates an array of N elements of type integers. Output and display how many…
A: Solution :
Q: Please keep the simulation neat and well organized. It is a request. Perform QuickSort on the…
A: Quick-Sort Working: Compare the pivot element with the current element if the pivot is greater…
Q: Write an application with a main method that allows you to: • Create an array of 3 Cars, the user…
A: Solution: Java code: Car.java public class Car { private String code; private String…
Q: A personal phone directory contains room for first names and phone numbers for 30 people. Assign…
A: The above program is solved using Java program below:
Q: Write a test program that creates two hexagons (5) and (10) and compares them using method…
A: string hexagon1 = "5"; string hexagon2 = "10"; Console.WriteLine("Comparing two Hexagons…
Q: Write a JavaScript program to find out the most frequent element in that array Now change your array…
A: Algorithm: Initialize an Array Declaration and initailization variablesw such as occurence = 1;…
Q: Given is a example of creating array with values. $months = [Jan, Feb, Mar, Apr]; O a. correct O b.…
A: The correct syntax of creating an array with values in PHP is…
Q: A class with 10 students will take 3 exams. Use 3 arrays to hold the scores for each student and…
A: Below is the JAVA code and its explanation: - Explanation: - Defining the class StuInfo to hold the…
Q: Write a program which read the following (3x3 dimensional) array and then display it. 50 80 70 30 10…
A: Use a 2d array to store elements and then print it
Q: Write a program that uses a 2-D array to store the highest and lowest temperatures for each month of…
A: The answer is given below:-
Q: a class with 10 students that will take 3 exams use 3 arrays to hold the scores for each student and…
A: The code is given below.
Q: mat {name, weight, expiryDate}, write a function that prints the sum of the weights whose expiryDate…
A: Given an array of objects with format {name, weight, expiryDate}, write a function that prints the…
Q: How many bytes away from each other are the x-coordinates of two planets that are next to each…
A: let's discuss: The elements are stored in a contiguous memory location in an array . Therefore, the…
Q: Write a program that ask user to key in test scores. Store the scores in an array. Then, display…
A: #include <stdio.h> int main(){ //Getting number of students printf("Enter total…
Q: Write a program that computes weekly hours for each employee. Store the weekly hours for all…
A: public class Main { public static void main(String[] args) { int[][] workHours = { {2, 4, 3, 4, 5,…
Q: Continue to prompt the user for names until the user enters quit. After the arrays are full…
A: Here is the completed code for this problem. Comments are included, go through it, learn how things…
Q: Taking each four digit number of an array in turn, return the number that you are on when all of the…
A: Algorithm: Create a function findAllDigits that accept an array Declare a new set named digits…
Q: A class with 5 students will take 3 exams. Use 3 arrays to hold the scores for each student and…
A: Since you are not mentioning the programming language, here we are using Java to complete the…
Q: Write a program that defines symbolic constants for all seven days of the week. Create an…
A: Take 7 constants for the day's number or the day's name and assign the values. Take an array of same…
Q: This is the process of actually creating the array object and associating it with the array…
A: 1) The process of assigning values to the array elements is called array initialization. 2) Once an…
Q: Create a program that allows you to create a fantasy football roster based on the existing list of…
A: Given: Create a program that allows you to create a fantasy football roster based on the existing…
Q: A personal phone directory contains room for first names and phone numbers for 30 people. Assign…
A: Since you have not mentioned the programming language. I am attempting this in java. if you need it…
Q: Q1 Write a program to ask the user to record students' ratings between (0 – 10) for 20 students into…
A: Java Code :- (Language is not specified in the question) import java.util.*;class Main {…
Q: use the clock class to build an array of 10 AppointmentTime objects , and then do the needed…
A: Given that use the clock class to build an array of 10 Appointment Time objects, and then do the…
Q: Input the scores of n students saved in the array, output the average value,and the scores of the…
A: Solution: Given,
Q: A personal phone directory contains room for first names and phone numbers for 30 people. Assign…
A: import java.util.*;class PhoneNumbers { public static void main(String[] args) { Scanner…
Q: An array is given as int x[6] = {19, 10, 8, 17, 9, 15};, what is x[4]
A: Here is the value of the given index in the array:
Q: Taking each four digit number of an array in turn, return the number that you are on when all of the…
A: Please find the detailed answer in the following steps.
Q: Task: ● . Write a program that takes in temperatures for 10 days and stores it in an array. Find the…
A: An array is an object which contains the elements of the similar data type. The elements stored in…
Q: Write a program that do the following: Ask the user to input his/her first name and store it in a…
A: import java.util.*; class TestClass { public static void main(String args[] ) throws Exception {…
Q: Write a program that allows a user to enter any desired amount of student grades, stores the grades…
A: Here, we are going to enter any desired amount of student grades, stores the grades in an array,…
Q: Write a program that do the following: Ask the user to input his/her first name and store it in a…
A: PROGRAM STRUCTURE: Import the required packages. Start the definition of the main public class.…
Q: Write a program that will read your full name and store it in an array. Write the name back to the…
A: 1) Declare character array with name (size 50) 2)Read the string name with help of cin.getline()…
Q: For the following array, what are the true * ?comparison operations int a[5]= {3,0,4}; a[2] == 4…
A: Given:
Q: Given an array containing stock prices at end of day for the whole week. Write a program to find the…
A: Given: Array containing stock prices at end of day for the whole week. float price[7] = {189.97,…
Q: Write a program to ask the user to record students' ratings between (0 10) for 20 students into a…
A: int responses[20] response array int frequency[11] frequency array int frequency[11] =…
A class with 10 students will take 3 exams. Use 3 arrays to hold the scores for each student and another array to hold the average of the 3 exams for each student. Print a table with scores and the average.
SAMPLE OF HOW THE OUTPUT SHOULD BE
STUDENT | EXAM 1 | EXAM 2 | EXAM 3 | AVERAGE |
1 | ||||
2 | ||||
3 |
Trending now
This is a popular solution!
Step by step
Solved in 2 steps with 2 images
- Using the following two string arrays, output the first item from the first array with the first item from the second array on the same line (OUTPUT: red Ford). Then, output the second item from each array and output the result. Do this for all four items. String[] firstArray = {“red”, “blue”, “yellow”, “black”}; String[] secondArray = {“Ford”, “Honda”, “GM”, “Toyota”};In java, please read the text file as array. Then, replace the null with 0 and calculate the sum of the new students in ABC University.Example of text file: (university,year,total_students,new_students,new_staff,ABC, 2000, 3457, , ,ABC, 2001, 3675,218, ,EFG, 2000, 2389,602, ,EFG, 2001, 2785,396, 65,)a class with 10 students that will take 3 exams use 3 arrays to hold the scores for each student and anoither array to hold the average of the 3 exams for each student. Print the table with the scores and average
- Write a program that allows a user to enter any desired amount of student grades, stores the grades in an array, then prints the results to the screen. Then, find the average of the grades.A class with 5 students will take 3 exams. Use 3 arrays to hold the scores for each student and another array to hold the average of the 3 exams for each student. Print a table with scores and the average.Write a program that defines symbolic constants for all seven days of the week. Create an arrayvariable that uses the symbols as initializers.
- The editTemperatures() method takes in two parameters: integer array tempData and integer numMore. Complete editTemperatures() to create a new array called arrayCopy with the same elements as tempData, and the size increased by numMore. Ex: If the input is: 10 48 49 18 3 then the output is: 10 48 49 18 0 0 0 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 Scannerscnr=newScanner(System.in); int[] degreesFahrenheit=newint[4]; intinput; inti; for (i=0; i<degreesFahrenheit.length; ++i) { degreesFahrenheit[i] =scnr.nextInt(); } // Read number of values to increase array size by input=scnr.nextInt(); degreesFahrenheit=editTemperatures(degreesFahrenheit, input); for (i=0; i<degreesFahrenheit.length; ++i) { System.out.print(degreesFahrenheit[i] +" "); } } }Write a program that creates a two dimensional array with 4 rows and 3 columns that contains the below numbers. Let the computer prompt you to enter these numbers. 8 6 1 7 3 0 2 5 9 5 6 7 After that, calculate and print the total and average of these values.A personal phone directory contains room for first names and phone numbers for 30 people. Assign names and phone numbers for the first 10 people. Prompt the user for a name, and if the name is found in the list, display the corresponding phone number. If the name is not found in the list, prompt the user for a phone number, and add the new name and phone number to the list. Continue to prompt the user for names until the user enters quit. After the arrays are full (containing 30 names), do not allow the user to add new entries. Use the following names and phone numbers: Name Phone # Gina (847) 341-0912 Marcia (847) 341-2392 Rita (847) 354-0654 Jennifer (414) 234-0912 Fred (414) 435-6567 Neil (608) 123-0904 Judy (608) 435-0434 Arlene (608) 123-0312 LaWanda (920) 787-9813 Deepak (930) 412-0991
- A personal phone directory contains room for first names and phone numbers for 30 people. Assign names and phone numbers for the first 10 people. Prompt the user for a name, and if the name is found in the list, display the corresponding phone number. If the name is not found in the list, prompt the user for a phone number, and add the new name and phone number to the list. Continue to prompt the user for names until the user enters quit. After the arrays are full (containing 30 names), do not allow the user to add new entries. Using Scanner.input to prompt user, Use the following names and phone numbers: Gina (847) 341-0912 Marcia (847) 341-2392 Rita (847) 354-0654 Jennifer (414) 234-0912 Fred (414) 435-6567 Neil (608) 123-0904 Judy (608) 435-0434 Arlene (608) 123-0312 LaWanda (920) 787-9813 Deepak (930) 412-0991A personal phone directory contains room for first names and phone numbers for 30 people. Assign names and phone numbers for the first 10 people. Prompt the user for a name, and if the name is found in the list, display the corresponding phone number. If the name is not found in the list, prompt the user for a phone number, and add the new name and phone number to the list. Continue to prompt the user for names until the user enters quit. After the arrays are full (containing 30 names), do not allow the user to add new entries. Use the following names and phone numbers:A personal phone directory contains room for first names and phone numbers for 30 people. Assign names and phone numbers for the first 10 people. Prompt the user for a name, and if the name is found in the list, display the corresponding phone number. If the name is not found in the list, prompt the user for a phone number, and add the new name and phone number to the list. Continue to prompt the user for names until the user enters quit. After the arrays are full (containing 30 names), do not allow the user to add new entries.