Programming language is "C" : ( with comments please, The comments is very important): (( 30 students were asked to rate the quality of the food in the students cafetaria on a scale of 1 to 10 ( 1 means awful and 10 means excellent) Place the 30 responses in an integer array and summarize the results of the poll. you should put the frequency for the program )).
Q: lease help me with this practice exercise for our upcoming exam on last week of january.. I promise…
A: It is defined as a powerful general-purpose programming language. It can be used to develop software…
Q: Create a java program with the following specifications >Create an array for subjects and grades…
A: If else in java if else is used in decision making Syntax: if (condition1) //run if condition1 is…
Q: use java Develop a program which allows the user to enter numbers into an array. Input will be as…
A: Program plan:Import the required packages.Define a class named “ArraySort”.Define a “main()”…
Q: I am having some problems generating a random sphere coordinates of n points using Python. The…
A: Lets see the solution in the next steps
Q: Using c++ Write a program that simulates a lottery. The program should have an array of five…
A: The algorithm for writing a program that compares the digits of a lottery number to the digits of…
Q: Use Java programming language Write a program that asks the user to enter 5 test grades (use an…
A: In this question, we are asked to write a java program which call the 6 separate methods for the…
Q: Joseph buys a lottery ticket and his ticket number is 201. Using a C program find the prob Joseph…
A: #include <stdio.h>#include <stdlib.h>#include <time.h>#include <stdbool.h>…
Q: Write the program, algorithom and flowcharts for these problems using the hints: 1. Below there is…
A: *As per the company norms and guidelines we are providing first question answer only please repost…
Q: Create an array with 20 elements having some duplicate members. Write a program to find the…
A: Java used to answer this question
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: Consider the following program specification: Write a program that will prompt the user for 10…
A: here in this question we have asked yo write a program which take an array of 10 number ranging from…
Q: Note: Java language.. Create an array of objects of the Person class, of size 4. Create three…
A: Your Java program is given below as you required with an output.
Q: Your task is to create an array that can hold n number of bills. After you have that array, take in…
A: I have provided C++ CODE along with CODE SCREENSHOT and 2 OUTPUT…
Q: Input 1. Number of rows 2. Number of columns 3. Elements of the 2D array 4. Culprit's value…
A: Answer:
Q: What is the value of a[5] if an array is initialized as follows: int a[10]={15}; 0 5…
A: Correct answer is Option a) 0. The value of a[5] equals to zero if an array is initialized as…
Q: Write a program named lower-half which takes input for a two dimensional array of 5 rows and 5…
A: The below code are fully functional and are written keeping in mind the requirements mentioned in…
Q: Write a basic program in F# and Visual Basic, which calculates the average of an array which has 7…
A: Required: Write a basic program in F# and Visual Basic, which calculates the average of an array…
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: Write a program to perform the following: Create an array of 7 double random values (the price of…
A: Program code: #include <stdio.h>#include <stdlib.h> #include <time.h> double…
Q: Java Design two parallel array of 10 elements. One array will store the students’ names and the…
A: Procedure Followed: Import util package. Start class Student. Start the main method. Declare names…
Q: Create an array containing the information of 20 books. The information includes name, ISBN,…
A: Program Approach: 1- As mentioned in the assignment made the array size is 20. 2- Prompt a message…
Q: Create a program that allows entering a total of 10 names in an array of NOMS names, then display…
A: C program is given below:
Q: Create an array containing the information of 5 books. The information includes name, ISBN, printing…
A: Find the required code in C++ given as below and sample output :
Q: Code in C++ Language Print first those numbers that are divisible by three but not divisible by 5.…
A: #include <iostream>using namespace std; int main(){ int n; //reading size of array…
Q: Need help with this question Write a Java program that asks the user to enter an array of…
A: Here I have first asked the user to enter the number of elements and then the array elements. Now I…
Q: two-dimensional array with two (2) rows and three (3) columns. Then, initialize the array with the…
A: Task : Define the character matrix of size = 2 x 3 Initialize it with the first 6 letters.
Q: This is an computer programming question The code should be on C++ language Jason is preparing for…
A: #include <fstream>#include <sstream>#include <string>#include…
Q: Write the pseudocode that will populate an array of type string with data.The array is called…
A: The given problem is related to creating a pseudocode where a pseudocode is simple English like…
Q: n visual basic Write the code that will sequentially search through the array strFirstNames and will…
A: logic:- define a strFirstNames array . iterate from i=0 to length-1 of array. use Equals…
Q: Algorithm Design & Analysis You are given an array called source, with length n, and a set of m…
A: 1. Take the input for the source and the set of targets. 2. Find the minimum value in the source. 3.…
Q: Please Help me with This Problem Language = C++ An array my_Array[] consisting ‘a’ s, ‘b’ s and…
A: #include <iostream>using namespace std;///Entry point to the applicationint main(){ char…
Q: Write a program that stores the mark allocation weights for 4 assessments as shown in the table…
A: Input Program for the given question :- #include<stdio.h>int main(){char…
Q: CODE USING C++ 1. Show me the world by CodeChum Admin Hi Programmer, I'm planning to impress my…
A:
Q: Problem: We need a program that takes 8 products and makes calculations and informs the user.…
A: - We need to highlight the code for the cost, maximum and minimum expensive item.
Q: Fill in the gap with Java language Complete the following program as runnable.
A: Java code: import java.util.Random; public class Final{ public static void main(String[] args) {…
Q: Problem: We need a program that takes 8 products and makes calculations and informs the user.…
A: I have written code in C++. According to the question we have to write a program that takes the…
Q: True or False: The bracket of the array type can be associated with the element type or with the…
A: Note: There is no specific programming language is mentioned in the question so we are considering…
Q: Write the code for the following problems using arrays. Write what would go in the "int main()" part…
A: C Program used to answer this question
Q: Give an example of an object or situation that is an two dimensional array Make a program that will…
A: Answer: Q Basic Source Code: DIM Num(4,4) AS INTEGERDIM Sum AS INTEGERDIM Avg AS DOUBLECLSNum(1,1) =…
Q: VISUAL STUDIO C# LANGUAGE 1) Write a program that simulates a lottery. The program should have an…
A: Hey, since multiple questions posted, we will answer first question according to our policy. If you…
Q: Replace all the occurences of the digit 0 in the array with the digit 1 and replace all the…
A: Need to write C++ program which can replace all the occurrence of the digit 0 in the array to 1 and…
Q: Create a Kotlin program that can print a specified element in an array given the code below: fun…
A: I have given code to print 2nd element.
Q: Calculate the sum and average of two dimensional array of int 4*4 You need to read from the user…
A: import java.util.Scanner; //Create a class public class Solution{ public static void…
Q: (C PROGRAMMING ONLY) 3. Set Me For Life by CodeChum Admin Thanks for showing me what I should…
A: Here our task is to write a c program to acquire the given task. We are asked to store n number of…
Q: Write a program that asks the user to input the sales of 10 salesperson and store them in an array.…
A: Array, which stores a fixed-size sequential collection of elements of the same type. An array is…
Q: Programming language is "C" : ( with comments please, The comments is vety important): 30 students…
A: Algorithm: start declare an integer array of size 30 input 30 values from student into array…
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: Programming language is "C" : ( write with comments please, The comments is very important): 30…
A: Given, you should put the frequency for the program.1---52---93---110---20 In the above part of the…
Q: This is a free choice program to demonstrate a 2D array. Please don’t choose the totally obvious…
A: Solution::- I've divided the answer into two parts, the first part consists of the code along with…
Q: Study the program shown below, and then answer the questions. The company array contains the amounts…
A: The given array is the 2-dimensional array in which it is represented as rows X columns For example,…
(( 30 students were asked to rate the quality of the food in the students cafetaria
on a scale of 1 to 10 ( 1 means awful and 10 means excellent)
Place the 30 responses in an integer array and summarize the results of the poll.
you should put the frequency for the program )).
Thank you
Step by step
Solved in 3 steps with 2 images
- Code in C++ Language As a cashier, you would always hate those times when customers choose to take back their order since you'd always summon your manager and yell, "Ma'am pa-void!" No matter how you hate it, you always have to do it since you have no other choice. Given (1) an array of prices of the items, (2) another array of the items the customer wishes to take back, and (3) the customer's payment, print the change of the customer. Input: The first number indicates the number of items "n" brought to the cashier. The next "n" numbers are the prices of the items. The next number indicates the number of items "m" that the customer wants to take back and not proceed. It is assured that 0 <= m <= n. The next "m" numbers are the items to be void that ranges from item 1 to item "n". The final number is the customer's payment. It is also assured that the given payment >= final price of items. INPUT: 5 103.65 650.95 10.25 1067.30 65.18 2 1 5 2000.00 Output: The change…Write a C++ program that helps the user plan out their budget. It should ask the user for the most recent 5 things that they bought; it should ask for both the name for the item and its price. Then, print out the following: total money spent, average money spent per item, lowest priced item, and highest priced item. You can assume that each item has a different name and a different price. You must use at least 1 array and you must display all numbers as dollar values (exactly 2 places after the decimal) EXPECTED OUTPUT Welcome to the Budget Helper. What are the last 5 things you bought? Item 1 name: Bananas Item 1 price: 1.5 Item 2 name: Shoes Item 2 price: 45 Item 3 name: Coffee Item 3 price: 2.5 Item 4 name: Metrocard Item 4 price: 120 Item 5 name: Jacket Item 5 price: 89 The total amount you spent is $258The average price per item is $51.60The cheapest item is BananasThe most expensive item is JacketYou have to write a C++ Program to store temperature of four different cities for a week. It shall ask what is unit of all temperatures in array if unit is Fahrenheit it shall convert it to Celsius and vice versa. It shall then store converted temperatures into new arrays and display them. Program shall also display the hottest and coldest city for that week. It shall count cities having same temperature on a specific day of week. I want answer in simple c++ language
- National University of Science & Technology NUST has conducted a programming test for level1ITMB students and pass mark for the exam is 35. Write a JAVA program to read the number ofstudents who attended the test, the marks scored in an array and find the sum and average marks.Write a C++ program that reads 6 real numbers from the user (negative and positive numbers) into an array, then it does the following:a. Find the sum and average of positive numbers of the array and display them. b. Count negative numbers of the array and display it.c. Find the minimum value of the array and display it.d. Find the index of the minimum value of the array and display it.Please answer honestly, Write a C program using just Array and String. Write a program that resembles a phone book, which stores and displays the names, the addresses (cities) and the telephone numbers for 20 people. The program book should have menu to search information according to names or phone number. The sample output of the program should be as follows: --------Phonebook----------- Add new information Search Name Search Phone Number Display All Info Exit Enter choice : 1 Enter Name : Haley Dunphy Enter Address : 12, 3-12 Street, TK Residance, Penang Enter Phone Number : 0122402312 --------Phonebook----------- Add new information Search Name Search Phone Number Display All Info Exit Enter choice : 1 Enter Name : Joe David Enter Address : 134, 3rd Floor, Mutiara Residance, Kuala Lumpur Enter Phone Number : 0174567789 --------Phonebook----------- Add new information Search Name Search Phone Number Display All Info Exit…
- Write a program in c++ You have 12 temperatures in your array. You want to calculate the average and determine the results that are greater than or equal to that average.Write complete C++ program to simulate a Magic 8-Ball, which is a fortune telling toy that displays a random response to a yes or no question. The program should prompt the user to ask a question and then display one of the responses randomly selected from the following array. string magic8arr[] = { "Yes, of course!", "Without a doubt, yes.", "You can count on it.", "For sure!", "Ask me later.", "I'm not sure.", "I can't tell you right now.", "I'll tell you afterwards.", "No way!", "I don't think so.", "Without a doubt, no.", "The answer is clearly, NO." }; Sample out is: Enter a yes or no question: Will it rain today? Ask me later.Write a C++ code that contains a heuristic function to be used in the PACMAN game with one ghost only.The environment is 5x5 cells: each cell can contain the following value:0: empty cell1: cell contains a pill2: cell contains a pacman3: cell contains a ghost only4: cell contains a ghost and a pill5: cell contains a ghost and pacman.the program must contain one state as 2d array with fixed values and return the heuristic value for that cell.
- Write a basic program in F# and Visual Basic, which calculates the average of an array which has 7 elements, each assigned avalue and compare the result with 0, as follows.define an array and assign valuesadd all the values by using a loopcalculate the averagecompare the average with 0, if it is greater than zero display positive, else display negativeWrite a Java to do the following USING ARRAYS MUST USE METHODS Arrays And Functions (Methods) hint write and test one module at the time 1) Input 15 integers (input validation , all numbers must be between -20 and 50 inclusive ) ,create a method/function. 2 methods/functions one for inputand one for input validation 2) Find and display all negative number in the array, create a method/function. 3) Display every other element in the array, create a method/function 4) Find the Sum of all positive numbers in the Array, create a method/function 5) a method/function to display the original array 6) include a menu using the switch statement to enable the user to select one of the the options (2,3,4). 7) include a loop to restart the menuWrite a C++ program that reads 6 real numbers from the user (negative and positivenumbers) into an array, then it does the following: Display all the values of array in reverse order. Find the sum and average of positive numbers of the array and display them. Count negative numbers of the array and display it. Find the minimum value of the array and display it. Find the index of the minimum value of the array and display it.