Write a Java program to display three monthly sales of different vehicle types. The rows and columns represent the monthly sales of each vehicle type. JAN FEB MAR SUV 25 15 35 COUPE 25 55 35 SEDAN 11 20 45 VAN 17 27 25 Using a Two-Dimensional array, produce the vehicle type sales report and the total sales made for each vehicle type. If the total sales made per month are greater than or equal to 100, gold status is awarded. If the monthly sales are less than 100, silver status is awarded. (in java form with instructions)
Q: Create a java program that generates elements (randomly from 10 – 50) of a 2-dimensional array (5x5)…
A: import java.util.*; import java.lang.Math; public class Program { public static int…
Q: Write Java code to display the names below in a 4 x 4 array: Zanele Justice Ken Lebo Tebu Gugu Ndaba…
A: The names are Zanele Justice Ken Lebo Tebu Gugu Ndaba Mudau Zizile Andrew Tian Ruan Daniel Fabian…
Q: Using dr java Write a Java program to do the following task: Create an integer array of size 10.…
A: import java.util.*;import java.lang.*;import java.util.Random;public class CalAvg{ public static…
Q: building are as follows:- Area in square Meters Less or equal to 60 Greater than 60 and less or…
A: import java.util.Scanner; public class Main{ public static void compute(int X[][]) {…
Q: Assume an array candidates[ ] that contains candidate names, as in the following sample data:…
A: Program: import java.util.*; public class Test { public static void main(String[] args){ String[]…
Q: In java Write a program that uses a 2-D array to store the highest and lowest temperatures for each…
A: A Java program for the given criteria is as follows, File name: “Temperature.java” //Import…
Q: This program ask the user to enter the scores of theory and practical tests which are stored as…
A: #include<stdio.h> #include<conio.h> class score { int theory[5],practical[5],total[5];…
Q: Write a program that declares three one dimensional arrays named miles, gallons, and mpg. Each array…
A: Program: //header file #include <iostream> using namespace std; //main function int main()…
Q: Mr. Ahmed wants to create a database of employees in his company with three records for each…
A: Hi. Let's move on to the code in the next step. I have included comments in the code that will…
Q: Given below is an array that contains the runs scored by the 11 players of a cricket team in a…
A: In normal circket any player who scored>=100 is considered that he scored a century. So i will…
Q: Problem #2: We need to develop a game that allows two players to throw a dice ten times and the…
A: An array is a data structure that contains the elements of the same type. It helps to store…
Q: Write a Java application and use a Two dimensional array to store five Dutch, French and Italian…
A: Solution :: Let's see first what is two dimensional array ? Answer : The Two Dimensional…
Q: Write a program RottenTomatoes.java that creates a 2 dimensional integer array of movie ratings from…
A: Actually, the code has given below:
Q: 1. Write a method to search for a given value in a 2D array. Write a complete program to use this…
A: Program Screenshot: Output Screenshot: Program: import java.util.*;public class Main{ public…
Q: Write a java program (class) called Grades to do the following. Must use an array. Ask the user for…
A: GIVEN: Write a java program (class) called Grades to do the following. Must use an array. Ask the…
Q: JAVA PROGRAM Use a one-dimensional array to solve the following problem: A company pays its…
A: Procedure Followed: Import Statements. Define the Sales class. Define the main method. Declare…
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: Write a Java program that: 1. Creates an array of 100 integers 2. puts random numbers between 0 and…
A: As given, we need to write a Java program to create an array of 100 random integers between 0 and 50…
Q: Write a program to calculate final grade in this class, for the scores given below. Three…
A: the c++ program is an given below :
Q: Q1) Write a program to read 10 temperatures in an array from the keyboard then compute and print the…
A: I have provided the answer based on C++ Programming. Detailed comments are included for a better…
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 Java program to do the following: • Create a two-dimensional array named "marks" and size…
A: The code has been given in step 2.
Q: For an array declartion of int number [25];, what will be the ending index? 0 1 24…
A: Elements of an array is stored in contiguous memory location. Indexing of an array starts from 0.
Q: Write an application that stores the following nine integers in an array: 10, 15, 19, 23, 26, 29,…
A: Program : public class Main { public static void main(String[] args) { final int intager_Num = 9;…
Q: Given below is an array that contains the runs scored by the 11 players of a cricket team in a…
A: This question explains about JAVA program :
Q: Create the following program in java: Write a java program that lets a meteorologist record day and…
A: Required: Your program should: · Ask the meteorologist the number of days he/she wants to record…
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: Write a Java program to do the following: • Create a two-dimensional array named "marks" and size…
A: Begin Enter number of student in variable n Declare 2-d array marks Enter assessment scores in marks…
Q: Suppose the weekly hours for all employees are stored in a two-dimensional array. Each row records…
A: The program is written in Java public class Main{ public static void main(String[] args) {…
Q: Write a Java application and use a Two dimensional array that will store five information technology…
A: The, answer has given below:
Q: Write a program to read the temperature of a particular location at a particular time of day for…
A:
Q: Create a java program that generates elements (randomly from 10 – 75) of a 2-dimensional array (5x5)…
A: The complete JAVA code is given below with output screenshots Comments are added.... Random class…
Q: Assume an array candidates[ ] that contains candidate names, as in the following sample data:…
A: Program: import java.util.*; public class Test { public static void main(String[] args){ String[]…
Q: Write the following Java code: Create an array of size 10 with elements entered by the user. Print…
A: I have provided JAVA CODE along with CODE SCREENSHOT and OUTPUT SCREENSHOT---------
Q: Question 1 (Marks: 30) Write a Java program to display three monthly sales of different vehicle…
A: Here have to determine about java code for given 2d type problem.
Q: Write a Java program to display three monthly sales of different vehicle types. The rows and columns…
A: According to the Question below the solution: Output:
Q: QUESTION 1 Write a Java program to do the following task: Input n from user. Create an array to…
A: PROGRAM CODE: import java.lang.Math; import java.util.*; public class Main{ public void…
Q: Write a java program (class) called Grades to do the following. Must use an array. Ask the user for…
A: function main: Start Declare array as int arr[] = new int[20] Declare and initialize sum = 0…
Q: Using java Use a one-dimensional array to solve the following problem: A company pays its…
A: The input gross sales may be processed on user entry to calculate the salary. The fixed pay plus the…
Q: Below is an application in which the number of days for each month in the year is stored in an…
A: We have three line to modify here initialize DAYS array add output statement. increment looping…
Q: Write a Java program to defind a method that calculates and returns the sum of integers stored in an…
A: Step-1: Start Step-2: Declare an array arr with elements {10, 20, 30, 40, 50} Step-3: Call method…
Q: Part 1: In Java Write a program that uses a 2-D array to store the highest and lowest temperatures…
A: Your solution is here with an Output.
Q: JAVA PROGRAM Use a one-dimensional array to solve the following problem: A company pays its…
A:
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: Create a java program that generates elements (randomly from 10 – 50) of a 2-dimensional array (5x5)…
A: Program: import java.util.Random;// for random numbers public class Main { public static…
Q: Write a java application and use a Two dimensional array to store five sunglasses brand sales, with…
A: Initial we will have two array- One dimensional sunglass array to store brand and two dimensional…
Q: Write a Java program (BasicStatistics.java) that prompts the user to enter 10 numbers as double…
A: Java code to calculate the mean and standard deviation. Comment are add in the code only. Here…
Q: National University of Science & Technology NUST has conducted a programming test for level1 ITMB…
A: National University of Science & Technology NUST has conducted a programming test for level1ITMB…
Write a Java program to display three monthly sales of different vehicle types. The rows and columns represent the monthly sales of each vehicle type.
JAN | FEB | MAR | |
SUV | 25 | 15 | 35 |
COUPE | 25 | 55 | 35 |
SEDAN | 11 | 20 | 45 |
VAN | 17 | 27 | 25 |
Using a Two-Dimensional array, produce the vehicle type sales report and the total sales made for
each vehicle type. If the total sales made per month are greater than or equal to 100, gold status
is awarded. If the monthly sales are less than 100, silver status is awarded.
(in java form with instructions)
Trending now
This is a popular solution!
Step by step
Solved in 3 steps with 2 images
- Write a Java program to display three monthly sales of different vehicle types. The rows and columns represent the monthly sales of each vehicle type.JAN FEB MAR SUV 25 15 35 COUPE 25 55 35 SEDAN 11 20 45 VAN 17 27 25Using a Two-Dimensional array, produce the vehicle type sales report and the total sales made for each vehicle type. If the total sales made per month are greater than or equal to 100, gold status is awarded. If the monthly sales are less than 100, silver status is awarded.Write 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.Write a java application and use a Two dimensional array to store five sunglasses brand sales, with the total sales for each sunglasses brand. Your program must cointain a Two dimensional array to contain three sale amounts for five different sunglasses brands and single array to contain the sunglasses brands. BRAND SALE AMOUNT 1 SALE AMOUNT 2 SALE AMOUNT 3 Oakley 300 100 500 Ray Ban 50 100 200 LE Specs 200 100 200 Gucci 100 70 50 Diesel 300 100 500 Calculate and print the total sales for each sunglasses brand. Determine if the sunglasses brand was successful or not. If the total sales amount of the brand is greater than or equal to five hundred(500), then the brand is successful. Print out each sunglasses brand with the total sales,amount.
- Write a Java application and use a Two dimensional array that will store five information technology courses, with the average amount of students registered for each course. Your program must:Q.2.1 Contain a two dimensional array to contain three student registration figures for five different information technology courses and a single array to contain the coursenames.Q.2.2 Calculate and print the average of the course registration figures for each IT course.Q.2.3 Determine if the IT course will be run or not. If the average registration figures of the IT course is greater than or equal to 70 then the IT course will run.Q.2.4 Print out each course name with the average registration and if the course will run.Write a Java application and use a two‐dimensional array that will store three average property typeprices in three different provinces. In your solution, include the total average property type price perprovince.Your program must:Q.2.1 contain a two‐dimensional array to store three average property prices for threeprovincesWrite a Java program to display the three highest monthly speeding fines recorded for fourdifferent cities. The following rows and columns represent the monthly speeding fines of eachcity. JAN FEB MARJHB 128km 135km 139kmDBN 155km 129km 175kmCTN 129km 130km 185kmPE 195km 155km 221km Using a Two Dimensional array, produce the speeding fines report including the speeding finesstatistics. The speeding fines statistics must display the highest and lowest speeding fines in thetwo dimensional array.
- Write Java code to display the names below in a 4 x 4 array: Zanele Justice Ken Lebo Tebu Gugu Ndaba Mudau Zizile Andrew Tian Ruan Daniel Fabian Kagiso Xoliswa. Use Java NetBeans to transpose the names on the matrix, such that the names in the rows should appear in the columns and vice versa. Then, replace the names on the left diagonal with double asterisks: ***".Write a Java application and use a Two dimensional array that will store five information technology courses, with the average amount of students registered for each course.Using java language In voltTest[10] is an encapsulated array that contains 10 voltages. Display how many are ACTIVE (5V), SATURATED (greater than 5V) and CUTOFF (less than 5V). Use the UML diagram as a reference. setValue(int,int,int) – accepts the value of voltActive, voltSaturated and voltCutoff as a parameter, which is the number of active, saturated and cutoff voltages. displayResult() – displays the number of active, saturated and cutoff voltages.
- Write a Java program in Eclipse to calculate the total cost to enter into a waterpark for a family/groupTicket rates are listed belowkids (Age 12 and under)=$ 12.50Regular( Age between12 -55) =$ 18.25Seniors (55 and above) = $15.00Tax =7%Your program should ask the user to enter the total number of members in their group.User needs to enter the ages for all members. Write appropriate error messages for invalid entries.An array should be used to store the ages of the family members.Based on the age it has to calculate the cost of each member and calculate the total cost including tax.Your program should displayThe number of tickets for each typeAnd the total cost for the groupAfter display your program should repeat the process until the user wants to stop.Your program must use1. Array2. Do while Loop3. Constant variable4. Atleast one methodSample run of the program:Welcome to our WATERPARK!!!Please enter the number of members in your group. 7Please enter the ages for each person in…Write a Java application and use a Two dimensional array to store five Dutch, French and Italian translated words. Use a single array to store the English words.Your program must:Q.2.1Contain a single array to contain the following five English words and a Two dimensional array to store the following Dutch, French and Italian translated words.ENGLISH WORD skyrunstudymusic dogDUTCH WORD hemelrennenstudiemuziek hondFRENCH WORD cielcouriretudemusique chienITALIAN WORD cielocorrerestudiamusica cane Print out each English word with the translated Dutch, French and Italian wordCreate a java program that generates elements (randomly from 10 – 50) of a 2-dimensional array (5x5) using the Random Class then perform the following: 1) Output the array elements 2) Output the sum of prime numbers in the array 3) Output the elements in the main diagonal. 4) Output the sum of the elements below the diagonal. 5) Output the sum of the elements above the diagonal. 6) Output the odd numbers below the diagonal. 7) Output the even numbers above the diagonal.