Write a JAVA program to read the sales data from the file and to calculate and display the total sales of the company.
Q: Write a java program that read unknown number of records from the file shown below named “…
A: Required: Write a java program that read unknown number of records from the file shown below named “…
Q: write a Java program below - Find the area of the circle -Find the average -Find the Sum
A: We know that, area of circle = pi*r*r average = sum of all numbers / total numbers I have provided…
Q: Write a Java Program Instructions: Calculate the number of grains of wheat on a chessboard given…
A: Answer: Java Source Code: import java.math.BigInteger; public class Main{ public static void main…
Q: Write a JAVA program to read input 3 integers x,y,z from user and print the value of x*y*z + x+y+z…
A: Start Read x, y, z Print (x*y*z)+x+y+z Stop
Q: Write a java program to take marks of student in 3 courses and calculate the total and average marks…
A: Java code for obtaining an average of marks taking inputs through Scanner class. Here it is: #Inputs…
Q: Write a Java code and initialize the following variables: title, last name, first name, student…
A: Java code to Initialize the following variables: title, last name, first name, student number, age,…
Q: Write a java program to print the flag of America.
A: I have answered this question in step 2.
Q: Write a Java program to input 20 integer numbers then: a. Calculate and print the sum of all number…
A: PROGRAM EXPLANATION: Import java.util package. Create the main class and define the main method.…
Q: Create a java program where a user is required to attach copy of their identity documents, copy…
A: Java program where a user is required to attach a copy of their identity documents, copy of their…
Q: Write a java program segment that will display the cubic number of ten (10) numbers. Prompt the user…
A: for(run loop 10 times) print(enter a number) number = (get input from user) print(the…
Q: Write a Java program that can read a commodity code, quantity of the commodities bought and the unit…
A: public class Tester{ public static void main(String[] args) { String commodity; int quantity;…
Q: write a java program that will calculate the sale based on the price per unit and the number of…
A: ALGORITHM:- 1. Take input from user. 2. Calculate the results. 3. Print the result. 4. Finish.
Q: Write a Java program to read the value of a double variable z and print the value of z3 - 12z2 + 5z…
A: Start Take input as z value Compute z3 - 12z2 + 5z + 6 Print result Stop
Q: Write a java program to print the date in this format. Format is month name date, year
A: Algorithm: Start Import java.util.Calendar Using getInstance() method in Calendar class, get a…
Q: Write a java program to find the distance travelled by a car by taking the speed and time
A: As given, I need to write a Java program that takes speed and time as input and find distance. The…
Q: Write a java program to display a table of the integers from 0 to 10 along with their factorials.
A: Procedure Followed: To display data in the table format JTable is used. Logic for creating JTable…
Q: Write a JAVA program to read input 3 integers x,y,z from user and print the value of x*y*z +…
A: Take input the integers x,y and z from the user using Scanner class in JAVA. Then calculate the…
Q: Create a java program to compute the area and perimeter of a rectangle given the length and width…
A: Step-1: StartStep-2: Declare two integer variable and take input from userStep-3: Calculate area and…
Q: Write a Java program to find and print the first 10 happy numbers.
A: Given: Write a Java program to find and print the first 10 happy numbers.
Q: Write a Java program that calculates the average student's score and percentage
A: Required: Write a Java program that calculates the average student's score and percentage
Q: Write a Java program to find the calculate the average of 3 subjects for 5 students using do… while…
A: This code have written java as asked in the problem. we get input from user to get average of mark…
Q: In java Write a program to take user input for principal, rate and time and find the simple…
A: Requirements :- In java Write a program to take user input for principal, rate and time and find…
Q: Write a JAVA program to calculate VAT-Value Added Tax for OMAN
A: VAT or the Value Added Tax is the tax added to the amount of a particular product which denotes the…
Q: Write a JAVA program to take input the number of hours, minutes and seconds and print the total…
A: GIVEN:
Q: Write a java program to form a committee of 3 women that can be choosen from 9 men and 12 women
A: Find the java code:
Q: Write a java program to print the flag of America. Don't hard code it.
A: Given: To write java program to print flag of America.
Q: Write a java program to display your favourite movie name on the screen
A: Algorithm: 1. We need to create a Java class with a main method inside it. 2. Using Scanner class…
Q: Write a Java program to read the distance between two points (in Kilometer) and time to travel…
A: The program is written in Java. Please find the Source code in the next step.
Q: Write a java program that reads one number, and display your full name many times as the number is…
A: Note: The java code is shown below. Please writes the mentioned code in a file with ".java"…
Q: 34. In JAVA language, write a program to input the distance in kilometers and then convert the…
A: Given: To write a java program to input distance in kilometers and then convert the distance in…
Q: Write a Java program to generate a user's daily average number of walking steps for a given month of…
A: In this question, we are asked to write a java program which calculate the average of walking…
Q: Create a Java program that allows the user to add up any number of non-zero fractions. The program…
A: Program: //Main.java import java.util.Scanner; public class Main { public static void…
Q: Write a Java program that converts numbers from decimal to binary and from binary to decimal,…
A: Source Code For This code in JAVA import java.io.*;import java.util.Scanner;class GFG { static…
Q: Create a Java program that allows a user to input customer records (ID number, first name, last…
A: Java program that allows a user to input customer records (ID number, first name, last name, and…
Q: Write a Java program that prompts the user to enter two positive integers and find their greatest…
A: Java code: import java.util.Scanner; public class Main { public static void main(String[] args) {…
Q: Write a program in Java to take input three integers x,y,z and print the value of (x*y) + (y/z) in…
A: Take input 3 integers using Scanner class in JAVA and then calculate the output using the given…
Q: Write a Java method to compute the future investment value at a given interest rate for a specified…
A: Formula for future investment: Future Investment = Present Investment * (1+(Rate of interest /…
Q: Write a Java Program below Get the value from a user? - Find the Area Of Circle - Find the Average…
A: Please find the answer below
Q: Write a Java Program to take 3 integers(a.b.c) from the user, print "Great Number" if one of b or c…
A: Find greater number, far number or ugly number as per the given condition.
Q: Write a java program to read and write the following information – Person (ID, name, phone) ID – a…
A: I give the code in Java along with output and code screenshots.
Q: Write a java program that... Create a list of the top 10 Major college football teams and output…
A: Below is the required java program. Program Approach: Importing packages to get the standard I/O.…
Q: Write a java program to print the flag of America.
A: To Do: To write code in java.
Q: Write a java program to find the charge flown through the wire when there is current through a wire…
A: Required:- Write a java program to find the charge flown through the wire when there is current…
Q: Write a Java program to take the input of 5 numbers and output the mean (average) and standard…
A: The code has given below:
Q: Write a java Program that Convert Fahrenheit To Celsius
A: Given: Write a java Program that Convert Fahrenheit To Celsius
Q: Write a java application that prompts for the number of hours that an employee worked in a week
A: use concatenation operator + to make program interface good with user. It will ask user name and…
Q: Write a Java program to find the calculate the average of 3 subjects for 5 students using do… while…
A: The do while loop will be run five times for this to accommodate five students. The average can be…
Q: Write a Java program to compute student results and GPA
A: Algorithm: Start Read no.of subjects n Read Mark's Convert Marks into grades by dividing with 10…
Q: Write a java program to get the commission on a product if you take the 15% commission. You have to…
A: Required:- Write a java program to get the commission on a product if you take the 15% commission.…
Q: Creating a Java program that converts Celsius to Fahrenheit and Fahrenheit to Celsius. What types of…
A: import java.util.*; public class Quiz1 { static double Celsius; static double Fahrenheit;…
Trending now
This is a popular solution!
Step by step
Solved in 3 steps with 2 images
- Write a java program to take marks of student in 3 courses and calculate the total and average marks of the student, take proper data types as per the requirement. (Take your own values for marks).Using Java to, write a program that asks the user for survey data about bus riders, and outputs a summary of that data. Your program should first ask the user which bus line was surveyed. Then the program asks the user how many days the survey was conducted, storing an integer answer, and then enter the number of riders that were counted (also an int). Take the number of riders devided by number of days. [If that average is not a whole number, make sure you show the decimal value (such as in the examples below). You should use a type cast to make this work. Please use "printf" to display the result with 2 digits after the decimal point (rounded to the nearest hundredth) and commas separating thousands.]Write a java program to display a three-month delivery report for three diffrent years. The following rows and columns represent the deliveries made for each year. JAN FEB MAR DELIVERIES 2018 128 135 139 DELIVERIES 2019 155 129 175 DELIVERIES 2020 129 130 185
- write a Java program using Scanner class that accepts data for a customer name, wood type, number of characters, and color of characters. Display all the entered data and the final price for the sign.Please use java. Write a program that reads from an input file, given by a user, students grade information after a semester and your program generate a semester report including courses information as shown in the sample runs. The input file includes student information: name, id, and college, followed by cumulative of previous semesters: total credits attempted, credits earned and total grade points. At the end of the input file the grades and information of the last completed semester courses are provided as shown in the sample inputs.Your program will calculate the total attempted credits, semester earned credits, semester grade point average (GPA) and cumulated grade point average (CGPA) according to the courses’ grades and the number of credit hours of the courses. The scales of each grade are shown in Table 1. F, FSP, FW, and NPW grades will have zero value.Table 1 Grade scalesThe Grade Point Average (GPA) is a weighted average that summarizes each of the two levels of activity:…Write a Java program that allows the user to enter the expenses’ in term of AED by using a while loop to calculate the average. The number of expenses is unknown. To stop entering the expenses, the user needs to enter a negative value. Show the total, average and the count.
- Write a Java program that displays a temperature conversion table for degrees Celsius and degrees Fahrenheit. The table should include rows for all temperatures between 0 and 100 degrees Celsius that are multiples of 10 degrees Celsius.Write a python program that keeps track of evidence from 25 forensic cases. The user should be able to enter a case number and will be given the option to see the current amount of evidence items for that specific case. The user should also be provided with an option to increase/ decrease the number of evidence items by a case-by-case basisPlease answer it in Python Suppose we play a game where each round takes place in the following way: first, we roll a dice, and its result gives the number of points at stake. Then, the player can, if he wishes, trigger his bonus "double account" or his bonus "triple account". Then, the player answers a number of questions, and calculates his percentage of correct answers. The points awarded to the player for that round are then calculated based on the percentage of correct answers and the number of points in play rounded to the nearest integer (for example, with 50% correct answers and 6 points in play, the player gets 3 points; with 45% correct answers and 8 points in play, the player gets 4 points). Finally, this number of points is possibly multiplied by two or three if the corresponding bonus has been used. Write a function points_match that takes as an argument the percentage, the number of points at stake, and as an optional argument the multiplier (which is worth 2 in a double…
- In Java code Write a program that takes in an integer in the range 11-100 as input. The output is a countdown starting from the integer, and stopping when both output digits are identical.WRITE A JAVA PROGRAM. Telco is a cellular telephone company that offers two types of service: standard and premium. Its rates vary, depending on the type of service. The rates are computed as follows: Calculate the amount due if given a service code (s or S means standard service; a service code of p or P means premium service), and the number of minutes the service was used. For the premium service, the customer may be using the service during the day and the night. Therefore, to calculate the bill, you must ask the user to input the number of minutes the service was used during the day and the number of minutes the service was used during the night. Input Description: There are service code (s, S, p or P) and usage amount u (u≥0). If the service code is p or P, then the usage has two types; day usage du(du≥0) and night usage nu(nu≥0). Output Description: The format is RMt where t is the amount due in Malaysia currency format as shown in the sample output. Hint: Use the…Write a Java program that will create a twelve line times table from 8 to 19 based on user input. The table will have three columns centred correctly on the screen with proper column titles. All programs will have a title, introduction, correctly ask for user input and display the resultant design. Do not use any built-in math functions.