Write a program that asks the user to input the sales of 10 salesperson and store them ). The program should output the sales of each salespersons in ). Also the program should output the count of in an array E the below shown format ( sales that are > $2000, and the highest sales value ( 6. 8. 9. Index: O 1 2 3 4 5 Sales: 1200 2500 850 1230 500 1250 890 1800 2300 400
Q: Write a program named FullName2.sce that prompts the user for an array of x data and an array of y…
A: given data, enter x data : [1, 2, 3, 4] enter y data : [2, 5, 9, 10]
Q: Using the same data file from the previous problem, write a program that stores the students' names…
A: C++ used to answer this question
Q: Write a program to read an array [5][5] and find the average of the array Your answer
A: #include<iostream>using namespace std;int main(){ int arr[5][5],total=0,count=0;; float avg;…
Q: Write a program to read this data from keyboard into a double dimension array then your program…
A: using System;class Demo { static void Main() { double[,] information=new double[4,5];…
Q: Write a program that does the following: Reads an integer from the user that represents the number…
A: The Answer is
Q: Write a program that reads 10 integer numbers and store them in an array of size 10. Your program…
A: Program Approach: Importing necessary package Defining the main class Defining the main method…
Q: Write a program that reads Mathematics and Physics test marks of 10 (ten) student and stores it to a…
A: According to the asked question, the solution is given below with a proper explanation.
Q: Right A program that asks the user to type 10 integers of an array.the program must compute and…
A: As no programming language has been mentioned, Java has been used.
Q: Rajesh is new in the program and just now he is familiar with the array in programming and he wants…
A: function main(): Start Read n Declare array as ar[] of size n+1 for i = 1 to n follow step 5 Read…
Q: Write a program that declares an array of 5 integers. Populate the array by asking 5 integer numbers…
A: As you have not mentioned any specific language so I provide the output and code screenshot in C++
Q: Write a program that declares an array of size 10.Read 10 integer from user and store them in the…
A: Program Explanation:- Using the header file. Using the standard namespace input/output. Define the…
Q: Write a program that does the following: Reads an integer from the user that represents the number…
A: We need to write a program about following: Read the integer number of student in the class: 3 Enter…
Q: Write a program using an array that accepts five input values from the keyboard. Then it should also…
A: The program is written in C. Check the program screenshot for the correct indentation. Please check…
Q: Write a program that prompts the user to enter integers, finds the largest and smallest integers and…
A: "Since you have not mention any programming language, so will write our program in C language." C…
Q: Write a program that will read 15 integers from the user into array num. your program should count…
A: Program description: n is a user input integer variable. num is an integer array of size 15.…
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: Rajesh is new in the program and just now he is familiar with the array in programming and he wants…
A: As per the given problem statement we have to create JAVA code to help Rajesh solve the task that…
Q: Write a program that repeatedly prompts the user to entera capital for a state. Upon receiving the…
A: Program Planning Assume that 10 states and their capitals are stored in a two-dimensional array.…
Q: Write a program that reads in ten numbers and displays the number of distinct numbers and the…
A: Here I have taken two nested loops to iterate over the array element and check if the number next to…
Q: Write a Java program that will create a report to display the top three mobile device sales per…
A: Algorithm: Start Store the given data in arrays Iterate through the arrays and print the data in…
Q: Write a program that creates an array of integers sine 10. And do the following
A: a)a=[]while True: if len(a)==10: break else: k=int(input("Enter a number greater…
Q: Write a program that calculates the multiple body mass index (BMI) where the program read multiple…
A: As per the given question, we have to design a C program for calculating BMI for multiple inputs.…
Q: Create a program that reads the data into an array or vector. . Run the program with 3 grades per…
A: Program: #include<iostream> #include<iomanip> #include<string> using namespace…
Q: Write a program that asks the user to input the sales of 10 salesperson and store them ). The…
A: Create an array of size 10 Ask user to input 10 values using for print the sales value at 0 to 9…
Q: Write a program that creates an array of 10 user to input 10 numbers and stores each e
A: #include<stdio.h>#include<conio.h>void main(){ int a[10], i; clrscr();…
Q: Write a program that creates an array of 100 random integers in the range 1 to 200 and then using…
A: Given that, Write a program that creates an array of 100 random integers in the range 1 to 200…
Q: Write a program that asks the user to enter 15 integers into an array. Then ask the user to enter a…
A: Here since programming language not mentioned, using C++
Q: Write a program that generates 100 random integers between 100 and 1000 inclusive and displays the…
A: Program: #include <iostream>using namespace std;int main() { srand((unsigned) time(NULL));…
Q: • Write a program that asks the user for 3 integer values and stores them in an array. Then, in a…
A: First input the three numbers. Store these numbers into the array. Now we will create a pointer…
Q: Write a program that will input 5 numbers (double type) and display the numbers, their sum and…
A: Here I have created an array of type float with size as 5. Next, I have taken input from the user…
Q: Write a program which asks user to enter total number of customers who have bought fruits today,…
A: The given problem is to be solved as a program where the user will ask the total number of customers…
Q: Write a program which takes 2 arrays of 10 integers each, a and b. c is an array with 10 integers.…
A: // C++ program for implementation of Bubble sort #include <iostream> using namespace std;…
Q: Correct the program below, which is used to computes the sum and average of the numbers in the array…
A: *avg store value of average *sum store value of sum so everywhere avg and sum replaced by *avg and…
Q: Write a program that creates two arrays of size 8 representing card numbers in a game. The valid…
A: import java.util.*;import java.util.Scanner;import java.lang.*;import java.util.Random;public class…
Q: Write a program to store an array of integer random numbers. Program should find out from the user…
A: CODE:- import java.util.Random;import java.util.*;public class Main {public static void…
Q: Write a program that calculates your final grade. The program prompts the user to enter 4 grades and…
A: The program that uses arrays and loop statement. Declare an array grade of size 4. Then read four…
Q: Write a program using 2D array to keep track stationary store inventory. The store sells various…
A: #include <iostream>#include <string>using namespace std; int n, row =0, col=0; void…
Q: Write a program that calculate GST (Goods and Services Tax) for some electronic products.…
A: code: #include<iostream> using namespace std; int main() { //variable declaration int choice;…
Q: Write a program that reads 10 integers stored in an array and an integer, counts the occurrence of…
A: Let us see the answer - Introduction- Array- Instead of defining distinct variables for each item,…
Q: Write a program that generates an array of 9 integer numbers between 10 and 100 both inclusive. The…
A: We will solve this problem in Java language.
Q: Write a program that first reads an integer for the array size, then reads characters into the…
A: #include<iostream>using namespace std;void Consonant(char x[], int s){ for(int…
Q: Write a program that take 10 values as input in an array, calculate its average, print that array…
A: THIS IS A MULTIPLE QUESTION BASED PROBLEM. ONLY FIRST PART IS SOLVED. KINDLY SEND THE REMAINING…
Q: Write a program using arrays that generate 20 random integers between 10 and 90 and then stores it…
A: Note: Programming language is missing in the question. So we will answer this program in C++. If you…
Q: Suppose the weekly hours for all employees are stored in a two-dimensional array. Each row records…
A: import java.util.*;import java.lang.*;import java.io.*; public class newJavaFile { public static…
Q: Write a program that will insert a word in the following sentence, "I own a blank car." that is…
A: No programming language is mentioned so we will be using python. As per the question statement we…
Q: Write a program that prompts the user to enter 50 integers and stores them in an array. The program…
A: Program Plan:- 1. Initialise all the required header files. 2. declare the array of 50 numbers. 3.…
Q: Write a program that prompts the user to enter 50 integers and stores them in an array. The program…
A: A program is to be written in such a way that it takes prompts the user to enter the 50 integers.…
Q: Write an application that prompts the user to enter nine integers and then store those nine integers…
A: As given, we need to write a Java program that prompts the user to enter nine integers and then…
Step by step
Solved in 2 steps with 2 images
- Write a program that creates an array of integers sine 10. And do the following- a) Ask the user to enter 10 numbers (all > O) one by one and store them in the array. If user enters a number «0 then program should ask user to enter the number again with a message that "Pl enter a number >0" b) Print the smallest number c) Print the largest number d) Print the averageWrite 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.Write a program that prompts the user for an integer, then asks user to enter that many integer value. Store these values in an integer array and print the array. Reverse the array elements so that first element become the last element, the second element become the second to last element, and so on, with the old last element now first. Do not just reverse the order in which they are printed; actually, change the way they are stored in the array. Try not to create a second array; just rearrange the elements within the array you have. (Hints; Swap elements that need to change place.) When the elements have been reversed, Print the array again.
- Write a program that prompts the user to enter 50 integers and stores them in an array. The program then determines and outputs which numbers in the array are sum of two other array elements. If an array element is the sum of two other array elements, then for this array element, the program should output all such pairs separated by a ';'.Write a Java program named Findletter that asks the user to enter 10 letters and store them in an array. Then it should ask the user to enter a letter (char value) to search for it. Then, if the entered letter is found, the program should display the message "The letter is in the array", otherwise it should display the message "The letter is not in the array".In Python: Write a program that reads two sets of exam scores of five students from user input and stores the scores into two NumPy arrays (exam1 and exam2). The program then calculates the average of the two exams for each of the five students and outputs the average scores as a NumPy array. The program finally counts the number of average scores that are 80 or higher and outputs the count. Ex: If the input of the two sets of scores are: 75 80 65 82 92 88 85 75 95 73 where [75 80 65 82 92] is stored in NumPy array exam1, and [88 85 75 95 73] is stored in NumPy array exam2. The program then outputs: Average scores: [81.5 82.5 70. 88.5 82.5] Number of students who received 80 and above: 4
- Write a java program using an array to input the Student's name and 5 test scores, use the method to find the average score, determine letter grade A 90-100, B 80-89.99, C 70-79.99, D 60-69.99, F below 60 Display the result Name Test1 Test2 Test3 Test4 Test5 Avg Grade Also, create an output file "Payout.datWrite a Java program to display a three_month delivery report for three different years. The following rows and columns represents the deliveries made for each year Jan Feb Mar DELIVERIES 2018 128 135 139 DELIVERIES 2019 155 129 175 DELIVERIES 2020 129 130 185 Use a Two-Dimensional array, produce the deliveries report, including the deliveries made statistics. The deliveries made statistic must display the total, maximum and minimum deliveries made in the two-dimensional array.In Java Write a program that counts the number of occurrences of lowercase and uppercase vowels inentered lines of text. Use a two-dimensional array to store the vowel counts. The array’s firstcolumn holds the counts for the lowercase vowels, and the second column holds the counts forthe uppercase vowels.The user indicates the end of the input by pressing enter by itself. At that point, your programshould print, for each vowel, the total number of lowercase occurrences, the total number ofuppercase occurrences, and the total number of combined occurrences.Here are some implementation requirements:1. Use two separate files – one for a main driver method and one for a VowelCounter classthat keeps track of vowel counts.2. main – Repeatedly prompt the user to enter a line of text or press enter by itself to quit.Note that the stdIn.nextLine() method returns the empty string ("") if the user pressesenter by itself. For each entered line of text, call the processLine method. When the…
- Write a program that reads integers between 1 and 100 and countsthe occurrence of each number. Assume the input ends with 0 and that the maximum capacityof the array is 100Write a program that prompts the user to enter 50 integers and stores them in an array. The program then determines and outputs which numbers in the array are sum of two other array elements. If an array element is the sum of two other array elements, then for this array element, the program should output all such pairs separated by a ';'. If no two elements can equal the value of an element, the line can remain empty, as shown above for list[0] and list[5].Write a program that declares an array of 15 integers and reads the values from the user. Make sure that the user doesn’t enter a value greater than 10 (if the user enters a value not in the allowed range, discard that value and read another to put into the array). Now tell the number that occur maximum number of times in the array. For example for the following 7 has maximum occurrence. 4,7,3,3,2,7,1,5,7,9,9,9,7,8,10 Use both linear and binary search.