The program enters the scores of an test for 10 students and saves them as an array. Then the program finds the minimum note, the maximum note, and the average. See below run of the program.
Q: Answer the following questions 1. Rewrite the following code using one if-else statement If (aCh...
A: We are given a code and we are going to rewrite the code using if-else statement. We use if-else sta...
Q: Write a java program to reverse a user entered array in groups.
A: import java.util.Scanner; public class test{ public static void main(String args[]){ Scann...
Q: What is the Compressed Form of Post Office Protocol on a Computer?
A: Introduction: The post office protocol is the most extensively used message request protocol on the ...
Q: 2.16 LAB: Convert to seconds Write a program that reads in hours, minutes and seconds as input, and ...
A: For completing this program, we will follow the subsequent steps: Initializing the Scanner class As...
Q: Using JAVASCRIPT, print the count of all the vowels present in the string "Data Structures and Algor...
A: INTRODUCTION: In the given problem statement, we are asked to print the count of all the vowels that...
Q: 9. Do Programming Exercise 3 from Chapter 5 using a function grade(score) that returns the letter gr...
A: Functions in python: Functions provide a way to break problems or processes down into smaller and in...
Q: In what format does a password manager store encrypted passwords? Is it local, online, clod, or usb?
A: Introduction: Passwords managers allow one to generate strong and unique passwords and store them in...
Q: If you have a small firm in a small facility and want to perform network networking amongst 40 machi...
A: Introduction: The question is about If you have a small firm in a small facility and want to perform...
Q: Write a query that returns all customers listed in the orders table who placed orders on the most re...
A: The answer is given below.
Q: Write a console application that uses at least five (5) different methods of Math class. Provide a m...
A: The Answer is
Q: import sys def subsetSum(nums, total): n = len(nums) T = [[False for x in range(total + 1)] for y ...
A: There is no method to take input as a float directly but input string can be converted into a float...
Q: in java create a lexical parse tree that displays ( 0 + 1 ) * 10 from an text input file
A: Let's see the solution in the next steps
Q: Write a SQL query to retrieve the First_name of employees having any of the following SSN_NUMBER 123...
A: Write a SQL query to retrieve the First_name of employees having any of the following SSN_NUMBER 123...
Q: One of the disadvantages of the Bus topology that you should mention is the difficulty in reconnecti...
A: Introduction One of the disadvantages of the Bus topology that you should mention is the difficulty ...
Q: Task-5. Write HTML 5 code to get below mentioned output on a webpage. C file///C:/Users/mmumtaz/Desk...
A: HTML5 is the latest and most enhanced version of HTML
Q: For this question you will be using a doubly linked list containing Strings and Node class which con...
A: I have answer this question in step 2.
Q: Is it correct to say that stub isn't a network topology? explain
A: Introduction: A stub network, or pocket network, is a colloquial term that refers to a computer netw...
Q: disease mapping is accomplished using spatially adaptable filters (or kernels). Explain why they're ...
A: Let us first understand about disease mapping. It is basically a comprehensive representation of mec...
Q: Topic: Concepts of programming Language What are the advantages and disadvantages of static scoping...
A: answer is
Q: A multimedia production is made up of different components; nevertheless, for a software to be calle...
A: Introduction: In the development of computer applications, digital processing and storage are essent...
Q: nt a meet-in-the-middle attack on triple DES with three keys, assuming you had enough known plaintex...
A: 1.The meet in the middle attack is one of the known plain text attack.The intruder has to know some ...
Q: A retail company assigns a $5000 store bonus if monthly sales are more than $100,000; otherwise a $5...
A: Since no programming language is mentioned, I am using python. Algorithm: Start Read sales of prese...
Q: Which of the following sorting algorithms are non-comparative in nature? Select one or more: O a. Qu...
A: Some of the non-comparison sorting algorithms are : Counting sort in which sorting is done by using ...
Q: What does the word "personal computer" mean exactly?
A: Introduction: You've probably heard of a personal computer before, but the first thing that comes to...
Q: Question 7: Turing Machines (a) Draw the state diagram of a Turing Machine, that converts every 'a' ...
A: Below is the answer to above question. I hope this will be helpful for you....
Q: So
A: Hi there, Please find your solution below, I hope you would find my solution useful and helpful. Tha...
Q: Consider the treee in the figure the depth of node is l is
A: Depth of a tree is the longest path from root to the leave. To find the depth, compute all the path...
Q: Briefly discuss one (1) frequent issue that might arise as a consequence of ongoing usage of input d...
A: The keyboard and mouse are two of the most widely used input devices for interacting with computers....
Q: Is it feasible to raise a runtime error but not catch it?
A: The short answer YES.
Q: Expan the application of the complex instruction SAVE CONTEXT and LOAD CONTEXT and explain the situa...
A: Context Switching A context switching is a process of storing the state of a process or thread in or...
Q: What does it mean to have a gaming laptop computer?
A: Introduction: A gaming laptop is a small and portable computer that has a monitor.
Q: Using Function write a bash script that automates the creation and deletion of users' accounts from ...
A: First, I want to describe the bash script. Bash Script: A Bash script is a text file with a set o...
Q: 9) Convert the following numbers from the given base to the other three bases listed in the table: D...
A: Decimal Binary Octal Hexadecimal 369.3125 101110001.0101 105.24 45.5 189.625 10111101.101 275.5 ...
Q: write the research on the types of cloud services with the differences and pricing models
A: INTRODUCTION: In the given problem statement, we are asked to write all the cloud services with the ...
Q: Both explain what a brute force assault is and why admin/root accounts are vulnerable.
A: Introduction: Both explain what a brute force assault is and why admin/root accounts are vulnerable.
Q: 3. The number of maximal cliques in a graph must obviously be an integer, so when the Moon-Moser bou...
A:
Q: Number of students should be 279, not 278 what did I do wrong?
A: Nothing is wrong I run the same code and my ans is 279
Q: probability that merge sort for array of length 8 makes exactly 12 comparisions
A: Answer is given below
Q: Write code that outputs variable numDays as follows. End with a newline. Ex: If the input is: 3 the ...
A: Java program which user input and print the given Output : Days: 3
Q: Using SQL Query: 1. Find the d_ids of Dealers who sell some Black Car and some Yellow Car 2. Find ...
A: SQL: SQL (Structured Query Language) is a programming language that is used to conduct operations on...
Q: Create a report outlining the benefits and drawbacks of several types of multimedia file formats: ...
A: Introduction There are various types of file formats that are used in the production and delivery of...
Q: corresponding
A: Answer is in given below.
Q: Explain the output of this program
A: This JAVA program calculates the distance the car will travel in the given time with the given speed...
Q: Use the following expression to create an expression tree: 6 - 5 * 4 + 3 / 2 + 1 - 0
A: Given: We Have to create a Expression Tree in the Following Expression: 6 - 5 * 4 + 3 / 2 + 1 - 0...
Q: A consistency index measures the degree of inconsistency in pairwise comparisons. Discuss how you ca...
A: Actually every consistency index for pairwise comparison judgment among criteria from the goal. Co...
Q: F H J M R S V 1 3 4 5 7 8. 9 10 11 12 low, middle, and high indices for each pass when using binary ...
A: Pass 1 Low : 0 Mid : 0+13/2 =6 High: 13 ----------------------------------- Pass 2 Low : 7 Mid : 7...
Q: Write a C Program that ask the user to choose from 2 categories, then ask the user to enter two numb...
A: ANSWER:-
Q: 11. Write code that reproduces the output shown below. 1]: # Code Here 2]: # DON'T WRITE HERE 2]: ar...
A: Explanation: This is the array that transforms sequences of sequences into two-dimensional arrays. S...
Q: Why are "pure" functional programming languages so rare? Explain what a "pure" functional programmin...
A: Introduction: Purely functional programming assigns a programming viewpoint, a means of developing t...
Q: What are the differences between the many types of system units found on desktop computers, laptop c...
A: Introduction: A system unit is a casing that houses electrical components for data processing. Most ...
LAB
The program enters the scores of an test for 10 students and saves them as an array. Then the program finds the minimum note, the maximum note, and the average. See below run of the program.
If the input is
10
95
85
65
88
79
85
90
99
91
The output is
Student Note
1 10
2 95
3 85
4 65
5 88
6 79
7 85
8 90
9 99
10 91
The minimum note is: 10
The maximum note is: 99
The average note is: 78.7
Trending now
This is a popular solution!
Step by step
Solved in 3 steps with 1 images
- This program needs 3 parts Read in this attached inputFile.txt (75 50 60 80 90) from a file into your Grade array. Use a bubble sort to sort the array (Print to console each pass of the array until the array is sorted.) Write out to console the low score the high score and the average scoreWrite a program that displays the number of goals scored by players during the next World Cup in Brazil. • The program should prompt the user to enter the number of players they wish to display. If an invalid entry is inputNTED, the program should re-prompt for the number. • Create an array of strings to store the appropriate number of names as entered by the user • Create an array to store each players tally of goals The user is prompted to enter the name of the player and the player’s goal tally (re-prompt in case of an exception, and also if the player has a goal tally of less than zero) • These values are stored respectively into the array of names and goals for each player. • These details are then displayed on the screenA positive integer greater than 1 is said to be prime if it has no divisors other than 1 and itself. Write a program that asks the user to input an integer greater than 1, then display all of the prime numbers that less than or equal to the number entered. The program should work as follows: • Once the user has entered a number, the program should display an array with all of the integers from 2 up through the value entered. • The program should then use a loop to step through the array. The loop should pass each element to a method that displays the element whether it is prime number. Your result should look like, for example: Enter an integer greater than 1: 9 2, 3, 4, 5, 6, 7, 8, 9 2 is prime 3 is prime 4 is not prime 5 is prime 6 is not prime 7 is prime 8 is not prime 9 is not prime Using java programming
- This program will store roster and rating information for a soccer team. Coaches rate players during tryouts to ensure a balanced team. (1) Prompt the user to input five pairs of numbers: A player's jersey number (0 - 99) and the player's rating (1 - 9). Store the jersey numbers in one int array and the ratings in another int array. Output these arrays (i.e., output the roster). Ex: Enter player 1's jersey number: 84 Enter player 1's rating: 7 Enter player 2's jersey number: 23 Enter player 2's rating: 4 Enter player 3's jersey number: 4 Enter player 3's rating: 5 Enter player 4's jersey number: 30 Enter player 4's rating: 2 Enter player 5's jersey number: 66 Enter player 5's rating: 9 ROSTER Player 1 -- Jersey number: 84,Rating: 7 Player 2 -- Jersey number: 23, Rating: 4 ... (2) Implement a menu of options for a user to modify the roster. Each option is represented by a single character. The program initially outputs the menu, and outputs the menu after a user chooses an option. The…This program will store roster and rating information for a soccer team. Coaches rate players during tryouts to ensure a balanced team. (1) Prompt the user to input five pairs of numbers: A player's jersey number (0 - 99) and the player's rating (1 - 9). Store the jersey numbers in one int array and the ratings in another int array. Output these arrays (i.e., output the roster). Ex: Enter player 1's jersey number: 84 Enter player 1's rating: 7 Enter player 2's jersey number: 23 Enter player 2's rating: 4 Enter player 3's jersey number: 4 Enter player 3's rating: 5 Enter player 4's jersey number: 30 Enter player 4's rating: 2 Enter player 5's jersey number: 66 Enter player 5's rating: 9 ROSTER Player 1 -- Jersey number: 84, Rating: 7 Player 2 -- Jersey number: 23, Rating: 4 (2) Implement a menu of options for a user to modify the roster. Each option is represented by a single character. The program initially outputs the menu, and outputs the menu after a user chooses an option. The…After the final exam, the following information is observed about securing “A” grade PF class id 01 gets 4 A grades with scores 87 88 89 87 PF class id 02 gets 2 A grades with scores 90 87 PF class id 03 gets 3 A grades with scores 91 89 87 Write a program to store the above 3 class scores in Jagged Array by initialing all these values , then program will print the following information on screen. 1: Student with highest marks in each class 2: Student with highest marks in all 3 classes Solve with C#
- A Latin square is an n-by-n array filled with n different Latin letters,each occurring exactly once in each row and once in each column. Write a program that prompts the user to enter the number n and the array of characters,as shown in the sample output, and checks if the input array is a Latin square.The characters are the first n characters starting from A. Enter number n: 4Enter 4 rows of letters separated by spaces: ↵EnterA B C D↵EnterB A D C↵EnterC D B A↵EnterD C A B↵EnterThe input array is a Latin square Enter number n: 3 ↵EnterEnter 3 rows of letters separated by spaces:A F D ↵EnterWrong input: the letters must be from A to CThis lab works with arrays. Declare a constant “ SIZE = 5 ” Declare an array of ints , of size SIZE . Initializethat array to have the values 10, 12, 15, 19, 6 .– Write a loop that calculates and prints out the minimum value of the array.– Write a loop that calculates and prints out the maximum value of the array.– Write a loop that calculates and prints out the average value of the array. THE PROGRAM SHOULD MATCH THE INCLUDED PHOTOWrite a program that inputs ten numbers from the user in an array and displays the minimum number.
- You must use at least two different arrays - These are, in effect, parallel arrays: One for Adult Meals One for Child Meals Remember to use a "for" loop for each array You should have totals in $ amount for: Adult Meal costs For example: class1; and class2 Overall totals, combining all categories Percentage for the total categories – the % amount is your choice; for the program outcome shown below, 45% was used Hints and Suggestions: You can set your own catered meal prices – for example, adult meals are $10 You can set how many adults/children meals are sold in each category – for example, 3 adult meals soldUsing c++ write a program Program : Date Printer Write a program that reads a char array from the user containing a date in the form mm/dd/yyyy. It should print the date in the form March 12, 2014. For example Enter Date 5/14/2019 May 14, 2019 Validation Required: Month should be less than 13, day should be less than 31.Design an algorithm for a problem that processes results of a swimming competition. The program will set a number of competitors, obtain their names from the user, and uses random number generator to get the results (in seconds, as real numbers with three digits after the decimal point). Then it will find and display the average timefor all competitors, andthe names and best three results (first, second, and third places). 1. Set a number of competitors as a constant TOTAL (no more than 10) 2. Declare two arrays to hold names and results (an actual array should have different name than the formal array in the function definitions) 3. Call functions to fill the arrays with names (user entries) and results (random decimal numbers) 4. Print all names and results as a table with appropriate titles 5. Display the average time (by calling function getAverage()) 6. Sort the array of results and corresponding names 7. Print names and results for the first three places (first…