Sample Output #1: Please enter the number of rows: 3 Please enter the number of columns: 2 I have 3 rows and 2 columns. I need to fill-up 6 spaces. The 3x2 array: 1|2| 314| 5|6| The sum of all the numbers in the 3x2 array: 21 The average of all the numbers in the 3x2 array: 3.5 Sample Output #2: Please enter the number of rows: 4 Please enter the number of columns: 4 I have 4 rows and 4 columns. I need to fill-up 16 spaces. The 4x4 array: 1|2|3|4|| 5|6|7|8|| 9|10|11|12| 13|14|15|16| The sum of all the numbers in the 4x4 array: 136 The average of all the numbers in the 4x4 array: 85
Q: The most commonly used arrays in business applications are ____-dimensional and ____-dimensional.…
A: The most commonly used arrays in business applications are ____ dimensional and ____ dimensional. We…
Q: The following statement save the value in which row of the 2 dimensional array names as "score"?…
A: Answer in step 2
Q: 1. Given an array named n with values 33,2,70,4,52,42,8,35,9,211 Write a program that will :…
A: Given an array named n with values 33,2,70,4,52,42,8,35,9,211 : a) Separate all odd from even…
Q: he size of an array of integers 2. Fills the array with generated integer numbers randomly from 0 to…
A: Write a program that: 1. Prompts the user to enter an integer representing the size of an array of…
Q: 3x3 2d array filled with random numbers from 0-9 without repetitions using functions and pointers…
A: #include <bits/stdc++.h>using namespace std; int arr[3][3]; void fillarray(){…
Q: Look at the following array definition.i nt values [1 OJ;A) How many elements does the array have?B)…
A: Here the array is declared as int values[10] A) Here the number of elements in array is 10 since we…
Q: Output The first line will contain a message prompt to input the number of rows. The second line…
A: In this question we have to write a C++ program for Matrix rotation on the user input matrix. Let's…
Q: Question: Write a program that reads 5 integer numbers and store them in an array of size 5. Ask the…
A: Programming language is not mentioned so we are writing code in cpp
Q: Declare a reference variable for an array of double Name the array prices. Instantiate the…
A: Given requirement, Declare a reference variable for an array of double Name the array prices.…
Q: 1. Define an array called grades with type char and size 10 2. Write a for loop to initialize the…
A: As per our policy, "Since you have asked multiple questions, we will solve the first question for…
Q: Given the following array, int num[5]={3,6,9,12,15}, what will be the value of score for the given…
A: The given array is, int num[5] = {3,6,9,12,15} In array all the elements are at a index, from which…
Q: Python Programming In this program instead of using random integers to create the 3-by-3 array(menu…
A: Remove np.random.randint(10, size=(3, 3)) in each if else statement. Add a loop on the top of the…
Q: Exercise One: (6.3.7 Inserting an element, Sorted Array) This exercise is the extension of IC…
A: Note :- You have not mention the language of program, so i'm answering your question in Java. Your…
Q: ake a Raptor program that allows a user to enter 10 numbers into an array and then display the…
A: According to the Question below the solution:
Q: Output The first line will contain a message prompt to input the number of elements. A The second…
A: Answer: C Source Code: #include <stdio.h> void main() { int i, j, temp, num,…
Q: 1. Create a new project and name it fa3_- 2. Use arrays in writing this program. 3. Write a program…
A: The Answer is
Q: 4. Write a program that inputs 5 array elements, and then finds the largest element in the array
A: Note: As the programming language is not specified wrote the answer in c++ program:#include…
Q: call two arrays "magic arrays if the sum of their values located at the same position indices are…
A: Java Program: import java.util.*;public class Main{public static void main(String[] args) {Scanner…
Q: 1. Answer the following questions regarding an array called fractions. -Define a constant variable…
A: define the constant create an array of type float and size 10 initialize the array with zero it…
Q: ASSEMBLY How do you calculate the size of the following array? wordArray WORD 15, 25, 35, 40, 60…
A: Given: ASSEMBLY How do you calculate the size of the following array? wordArray WORD 15, 25, 35,…
Q: design and write one python code (this is one question one code » please don't say they are…
A: Here I have created arrays A and B, stored values using arange() method, and printed the content…
Q: A Latin square is an n-by-n array filled with n different Latin letters,each occurring exactly once…
A: Program: //Include necessary packageS import java.util.Arrays; import java.util.Scanner; //Class…
Q: Create an array of 15 integers. Add all elements located at ODD index positions and sum also all…
A: Note- as the programming language is not mentioned, java is used. Also sum is calculated but not…
Q: In PYTHON Write the code that will create an array named squaresA, that contains the squares of the…
A: iterate through each element and use append function to store new squared elements in squaresA.
Q: Exercise 2 1. Declare an array of string title with 4 elements. 2. Initialize the array with the…
A: #include <iostream> using namespace std; int main(){ //create array of string string…
Q: An array is considered to be normalized if its (first Element + last Element) /2 is greater than the…
A: PROGRAM CODE: import java.util.*; // import utility package of javapublic class…
Q: I need to create a shopping list array in python that does these things (seven items minimum):…
A: The program for the above-given question si given below: you can use the below-given code snippet…
Q: Create an array of 15 integers. Add all elements located at ODD index positions and sum also all…
A: INTRODUCTION: Here we need to write a c program.
Q: Write a netbeans program that: 1. Creates an array (Nums) which can hold 10double values. 2. Fill…
A: Hey there, I am writing the required solution based on the above given question. Please do find the…
Q: Write a program that creates an array of integers size 10. And do the following- a) Ask the user to…
A: Hi. As there is no programming language mentioned, I will attempt this question in C++. Let's…
Q: Problem2 Write a program that display the position of a given element in an array. You should print…
A: Given:
Q: (1) Prompt the user to enter five numbers, being five people's weights. Store the numbers in an…
A: import array as arr a = arr.array('f', []) for i in range(0,5): x = float(input("Enter weight {}:…
Q: Look at the following array definition. int values[10];A) How many elements does the array have?B)…
A: The given array is: int values[10];
Q: 1. Take an array of size 5x5 and initialize it with random numbers of range 1 to 10, now add all the…
A: Since the Programming language is not mentioned in the question, we will answer this question in…
Q: 4. Ask the user to enter the size of an array. Create an integer array of the given size and fill it…
A: Answer-4 CODE-: #include <stdio.h>#include<iostream>using namespace std;int main(){ int…
Q: Please help me to solve these two problems... 2D array: Complete 3 methods in this Java template…
A: Hello Student. Greetings from my side. Hope you are doing great. I will try my best to answer your…
Q: circular array, its size and start index and finds whether the elements in the array form a…
A: #checking the subarray from l from start to size s is palindrome or not def…
Q: 1) Prompt the user to enter five numbers, being five people's weights. Store the numbers in an array…
A: import java.util.Scanner;public class PeopleWeights{ public static void main(String[] args) {…
Q: c++ An array A of size 4 entered by user : 1) Print the array. 2) print the prime numbers in the…
A: Sample Response: //C++ program, Tested o CodeBlock IDE#include<iostream>using namespace…
Q: Write a program that: 1. Prompts the user to enter an integer representing the size of an array of…
A: Javascript program to prompt the user to enter the size of the array, and generate random array…
Q: Please write a program to find the following values form the array: int a[] = {20, 34, 18, 9, 43,…
A: Firstly variables like min,max,sum need to be declared. Assign first elements to min and max. Then…
Q: Custom Input Output Tests Executions mains 2. 2nd Smallest by Jemar Jude Maranga Enter cus ton input…
A: As given, we need to write a C program that prints the second smallest digit in an array. And the…
Q: Write a program which will scan the values in an array named array anc leave the smallest value in…
A: Given: Goal: Write a program that will scan for minimum value in the array. While scanning the…
Q: write only the code required to multiply the number 8 to each array value in the array and print the…
A: As the programming language is not mentioned here, we are using JAVA The JAVA code is given below…
Q: Return the maximum value from the provided integer array. You may assume that all values in the…
A: The given problem is to implement a function named getMax in Java language. The function will take…
Q: Question: Write a program that reads 5 integer numbers and store them in an array of size 5. Ask the…
A: Sample Response: //C++ program to accept 5 numbers and a key value to return returns the occurence…
Q: C++ set a array size = 7, user input 7 numbers calculate the average,median,mod to keep the first…
A: The C++ code is given below It is not clear in the question which mod we have to find. Generally we…
Q: 1. Write a for loop to initialize the following array with value 0.0 double[] balances = new…
A: Given: 1. Write a for loop to initialize the following array with value 0.0 double[] balances = new…
Q: Exercise 5: Write a program that asks the user to input 8 numbers and save them in a 2D array with 4…
A: matrix = []sum = 0for i in range(4): row = [] for j in range(2): x = int(input())…
Trending now
This is a popular solution!
Step by step
Solved in 2 steps with 3 images
- Java OOP Write a complete address book maintenance application. The user of the program has four options: Add a new person, delete a person, modify the data of a person, and search for a person by giving the name. Use the AddressBook class, either the original one from the chapter or the modified one from the previous exercises. You have to decide how to allow the user to enter the values for a new person, display person information, and so forth.in addition to java programming please include the flowchart of the program for the project and the pseudocode of the program for the project. Create a program to enter grades and calculate averages and letter grades. Need a class which will contain: Student Name Student Id Student Grades (an array of 3 grades) A constructor that clears the student data (use -1 for unset grades) Get functions for items a, b, and c, average, and letter grade Set functions for items a, n, and c Note that the get and set functions for Student grades need an argument for the grade index. Need another class which will contain: An Array of Students (1 above) A count of number of students in use You need to create a menu interface that allows you to: Add new students Enter test grades Display all the students with their names, ids, test grades, average, and letter grade Exit the program Add comments and use proper indentation. Nice Features: I would like that system to accept a student with no…A mountain climbing club maintains a record of the climbs that its members have made. Information about a climb includes the name of the mountain peak and the amount of time it took to reach the top. The information is contained in the ClimbInfo class as declared below. The ClimbingClub class maintains a list of the climbs made by members of the club. The declaration of the ClimbingClub class is shown below. You will write implementations of the addClimb method. import java.util.List; import java.util.ArrayList; class ClimbInfo { private String name; private int time; /** Creates a ClimbInfo object with name peakName and time climbTime. * * @param peakName the name of the mountain peak * @param climbTime the number of minutes taken to complete the climb */ public ClimbInfo(String peakName, int climbTime) { name = peakName; time = climbTime; } /** @return the name of the mountain peak */ public String getName() { return name; } /** @return the number of minutes…
- In JAVA PROGRAMMING please read details on pictures thank you. (You will need to read in the student data first and then read in the scores) You will open each file and read the information into their respective classes/arrays For each student, you will calculate their lowest score, their highest score, their average, and their grade. For each quiz, you will calculate the lowest score, the highest score, and the average You will create and print an Honor Role. The Honor Role comprises students who received an ‘A’ grade. REPORT WILL LOOK LIKE THIS LastName FirstName StudentID Score 1 Score 2 Score 3 Score 4 Score 5 High Low Average Grade High…In C#, Make any necessary modifications to the RushJob class so that it can be sorted by job number. Modify the JobDemo3 application so the displayed orders have been sorted. Save the application as JobDemo4. An example of the program is shown below: Enter job number 22 Enter customer name Joe Enter description Powerwashing Enter estimated hours 4 Enter job number 6 Enter customer name Joey Enter description Painting Enter estimated hours 8 Enter job number 12 Enter customer name Joseph Enter description Carpet cleaning Enter estimated hours 5 Enter job number 9 Enter customer name Josefine Enter description Moving Enter estimated hours 12 Enter job number 21 Enter customer name Josefina Enter description Dog walking Enter estimated hours 2 Summary: RushJob 6 Joey Painting 8 hours @$45.00 per hour. Rush job adds 150 premium. Total price is $510.00 RushJob 9 Josefine Moving 12 hours @$45.00 per hour. Rush job adds 150 premium. Total price is $690.00 RushJob 12 Joseph Carpet cleaning 5…in C#, Make any necessary modifications to the RushJob class so that it can be sorted by job number. Modify the JobDemo3 application so the displayed orders have been sorted. Save the application as JobDemo4. An example of the program is shown below: Enter job number 22 Enter customer name Joe Enter description Powerwashing Enter estimated hours 4 Enter job number 6 Enter customer name Joey Enter description Painting Enter estimated hours 8 Enter job number 12 Enter customer name Joseph Enter description Carpet cleaning Enter estimated hours 5 Enter job number 9 Enter customer name Josefine Enter description Moving Enter estimated hours 12 Enter job number 21 Enter customer name Josefina Enter description Dog walking Enter estimated hours 2 Summary: RushJob 6 Joey Painting 8 hours @$45.00 per hour. Rush job adds 150 premium. Total price is $510.00 RushJob 9 Josefine Moving 12 hours @$45.00 per hour. Rush job adds 150 premium. Total price is $690.00 RushJob 12 Joseph Carpet cleaning 5…
- In previous chapters, you have created programs for the Greenville Idol competition. Now create a Contestant class with the following characteristics: The Contestant class contains public static arrays that hold talent codes and descriptions. Recall that the talent categories are Singing Dancing, Musical instrument, and Other. The class contains an auto-implemented property that holds a contestants name. The class contains fields for a talent code and description. The set accessor for the code assigns a code only if it is valid. Otherwise, it assigns I for Invalid. The talent description is a read-only property that is assigned a value when the code is set. Modify the GreenvilleRevenue program so that it uses the Contestant class and performs the following tasks: The program prompts the user for the number of contestants in this years competition; the number must be between 0 and 30. The program continues to prompt the user until a valid value is entered. The expected revenue is calculated and displayed. The revenue is $25 per contestant. The program prompts the user for names and talent codes for each contestant entered. Along with the prompt for a talent code, display a list of the valid categories. After data entry is complete, the program displays the valid talent categories and then continuously prompts the user for talent codes and displays the names of all contestants in the category. Appropriate messages are displayed if the entered code is not a character or a valid code.Java programming This problem set will test your knowledge of System I/O, and variable assignment. Your task is to create several different java classes (.java files) that will produce a specific output based on the user input. All input will be given to you either as a command-line argument or typed in from the keyboard. Below you will find directions for each class you need to create. Please make sure that the class name and java file name match the name 1, ContainsAnyCase This program will accept two user inputted values that are strings. The first user input will be a single word the second user input will be a sentence of random words. This program should print "true" if the first word is in the sentence of words regardless of the casing. In other words case is ignored when checking if the word is within the sentence. The last string that this program should print is "true" or "false", nothing else. 2 PrintMathResult Write an application that will wait for three user inputted…Please submit a flowchart of your program for your project below. Need a class which will contain: Student Name Student Id Student Grades (an array of 3 grades) A constructor that clears the student data (use -1 for unset grades) Get functions for items a, b, and c, average, and letter grade Set functions for items a, n, and c Note that the get and set functions for Student grades need an argument for the grade index. Need another class which will contain: An Array of Students (1 above) A count of number of students in use You need to create a menu interface that allows you to: Add new students Enter test grades Display all the students with their names, ids, test grades, average, and letter grade Exit the program Add comments and use proper indentation. Nice Features: I would like that system to accept a student with no grades, then later add one or more grades, and when all grades are entered, calculate the final average or grade. I would like the system to display the…
- Part 1: In C#, Create a Class Called FileRoot As we know, when we run a program, the program runs from the bin folder. If I had a file stored at the root of the project and if the program is running, it wouldn't know where it is unless it came out of the bin folder. Before implementing the classes below, create a class that will help you get from the bin folder to the project's root. Hint: Directory class and its static methods would help here.in C# Look at Figures 9-35 and 9-36 on page 392 of your book. There should be two blocks of code: A Book class and an AddBooks program. In your IDE, create a new .cs file called books.cs, then type this code (you can type both parts in books.cs), then compile it and run it. NOTE: There IS an error with the codeInstructions: In the code editor, you are provided with a treasureChestMagic() function which has the following description: Return type - void Name - treasureChestMagic Parameters - an address of an integer Description - updates the value of a certain integer randomly You do not have to worry about how the treasureChestMagic() function works. All you have to do is ask the user for an integer and then call the treasureChestMagic() function, passing the address of that integer you just asked. Finally, print the updated value of the integer inputted by the user. Please create a main code for my function that works with this. This is my code: #include<stdio.h>#include<math.h> void treasureChestMagic(int*); int main(void) { // TODO: Write your code here return 0;} void treasureChestMagic(int *n) { int temp = *n; int temp2 = temp; *n = *n + 5 - 5 * 5 / 5; temp2 = (int) pow(2, 3); if(temp % 3 == 0) { *n = temp * 10; } else if(temp %…