calculated by price
Q: in this code, the integer on each line shows the line number that is not part of code: what is he…
A: Answer:- Variable x, y and z are the local variables of sum function. Here parameters are also…
Q: int i = 10; int j = 4; int k = i / j; int l = j % i; What is k and l?
A: k= i/j which is 10/4 will give the quotient i.e 2 I=j%i which is 4%10 will give the remainder i.e 0
Q: JAVA PROGRAM In this lab, you will use what you have learned about accumulating totals in a…
A: Introduction: In this lab, you will use what you have learned about accumulating totals in a…
Q: This program prompts the user to enter the current month, using 1 for January, 2 for February... or…
A: import java.util.*;public class Main{ static double January() { int[] arr = new…
Q: If the following code, what will be the variable "value" equal to when y=2 is being executed: def…
A: The question has been answered in step2
Q: Java Programming Create a program that will display the following pattern abcde abcd abc ab a
A: Program Approach: In the given java code, two integer variable "e, f" is declared that use two for…
Q: Create a program that will Compute an employee's weekly pay. Employees are paid at a base rate for…
A: Here we assume, for full time employee the type is 1 and for part time employee the type is 2. Three…
Q: Write a Java program to display the three top sales made by employees of an organization. The rows…
A: Java is a technology consisting of both a programming language and a software platform.
Q: Computer Science a java program that calculates the followitng discoints on items more than 50000…
A: PROGRAM CODE: import java.util.Scanner; public class Main{ public static void main(String…
Q: Eclass person: def init (self,name, age); self.name = name self.age age gq = person ("Quincy",4)…
A: Given Python class person: def __init__(self, name); self.name=name…
Q: TION 24 Given: int x; Write a Java statement to assign a random integer number between 1 and 10 to…
A: Given question from java programming language and we have to write a statement that generate a…
Q: Problem 1 Draw the following binary tree. Where only the key is shown (disregard 2xDOB or 3xMOB if…
A: Please upvote. I am providing you the correct answer with all the code and screenshot as well.…
Q: The Java basic data types that can hold whole numbers (integers and their negatives) are:…
A: The question is asking about the basic data types in Java that can hold whole numbers, including…
Q: Consider the following variable declarations: String s1 = "computer"; String s2 = "soda"; Indicate…
A: class HelloWorld { public static void main(String[] args) { String s1= "computer";…
Q: Random rand-new Random(); int num= ; Fill in the blank to assign a random number between 25 and 75…
A: Code:
Q: Develop a java program that validates a user’s credit card number as per the following criteria;…
A: In this question we have some definition about some function. We have to write a code in Java, test…
Q: Practical quiz 2 Write a Java program that will ask the user for the number of rooms (including…
A: import java.text.DecimalFormat;import java.util.Scanner; public class RoomChargeMain { public…
Q: Summary In this lab, you complete a prewritten Java program that calculates an employee's…
A: In this lab, you complete a prewritten Java program that calculates an employee’s productivity bonus…
Q: Write, Compile and Execute a Java program that reads an investment amount, annual interest rate and…
A: Algorithm : Step 1 : declare variables. Step 2 : create object of scanner class to take input. Step…
Q: Write a JAVA program that determines the alert level for the COVID-19 based on the percentage of new…
A: import java.util.Scanner; public class Main{ public static void main(String[] args) { double…
Q: l allow a user to capture the top students for the module and allow to enter the module name…
A: Below the java application that will allow a user to capture the top students for the module and…
Q: To determine if two variables of the same basic type have the same value in Java, we use the ==…
A: The objective of the question is to understand how to compare two variables of the same basic type…
Q: Write a Java program to do the following task: Assign your id number (example. 2019293085) to an…
A: Here is the solution, // your code starts herepublic class Demo{ public static void main(String…
Q: Computer Science Write a java program that asks the user to enter 10 numbers then the program will…
A: Start Take the array of 10 elements Read the elements Find the three largest elements Print elements…
Q: Create a program to input the quantity and price of 5 products named P1, P2, P3, P4, and P5. Then…
A: Create a JAVA program to input the quantity and price of 5 products named P1, P2, P3, P4, and P5.…
Q: int x=20; int y=30; int z =y%2; z=0 Z=1 Z=15
A: Here x= 20, y= 30 % operator gives the remainder when one number is divided by other. Here z=y%2
Q: IN C# (reject if you can't do C# please): Write an application that runs 1,000,000 games of craps…
A: Answer has been explained below:-
Q: Body Mass Index (BMI) is one of the criteria that is used to calculate whether one is fit or not…
A: Given Body Mass Index (BMI) is one of the criteria that is used to calculate whether one is fit or…
Q: Input age from user and check if user eligible for vaccination or not. eligible if age>=18. In JAVA.…
A: First e have to take the user age Then we have to compare this age with 18 using if -else statement…
Q: Write a simple Java program to preform the following; 1. Prime Number Program in Java 2. Palindrome…
A: - We have to program the codes in java. - Because of the guidelines restrictions, we can solve the…
Q: "XYZ" Company is planning to raise its employees' salaries based on the following percentage basis:…
A:
Q: You are to create a Python application that applies the basic concepts in Python. Scenario: You are…
A: 1. Create a TollBooth class with an __init__() method 2. Initialize the vehicle_types and fees…
Q: A car insurance company charges a base fee of BD 50 per year, plus the following fees for any…
A:
Q: Write a Java program that displays a shape representing capital letter- of N as shown in the…
A: Find The Code below import java.util.*; class Main{ static void Pattern(int N) { int index,…
Q: In this lab, you complete a prewritten Java program that calculates an employee’s productivity bonus…
A: Actually, given information: In this lab, you complete a prewritten Java program that calculates an…
Q: C++ Program Create a program that will prompt me for each of the following items: 1. Date of Birth…
A: The structure data type is a user-defined data type that can be used to create a new data type with…
Q: how to assign a student an ID number and print it when asked in JAVA can you give me an example if…
A: there are many ways you can do it using any programming language but if we take JAVA as an example…
Q: The Java basic data types that can hold whole numbers (integers and their negatives) are: int,…
A: The core building blocks of Java applications are the basic data types, which are used to represent…
Q: Subject: Computer Education Lesson: Java Write the java program for the following problem. The…
A: here i this question we have asked to write a program in java which take input Celsius from user and…
Q: Create an application that: 1. Is implemented in a single Java (.java) file named “MatchMaker.java”…
A: Store the answers to your questions in an array along with their weights. Ask the user to answer by…
Q: An identifier in Java can begin with any ASCII character (any character on the keyboard). True…
A: Identifier:In Java, an identifier is a name given to a variable, method, class, or other…
Q: Using Java Language use Nested IF PAYROLL SYSTEM Write a program that would compute the salary of…
A: Algorithm: Start Read employee name, status code(scode), departmentcode(dcode), position…
a java report that displays unit number and price and calculated by price x 2.5
Below displays the program unit number and price and calculated by price x 2.5
Step by step
Solved in 2 steps with 1 images
- The following is a sample report from a child clinic. It shows the days and treatments for visits to doctors at the clinic. A mother takes her child, sees a doctor and the doctor administers some treatment. There are couple of things you should assume: The mother’s name is unique. a mother won't have more than one child with the same name the doctor's surname is unique a treatment code is unique treatments are specific to doctors, eg 101 is only ever given by Johnson Surname First Name Town Age Child Doctor Date Treatment Smith Jane Coventry 30 Rebecca Johnson 27.3.04 101 Brian Clarence 30.5.04 209 Robert Johnson 10.1.88 101 Brown Beryl Rugby 28 Alan Clarence 30.4.04 214 Sarah Johnson 29.5.04 101 Sarah Clarence 12.1.04 321 Jones Fiona Kenilworth 34 James Clarence 30.4.04 322 Jenny…Java - Name FormatProgram must be in Java Body Mass Index (BMI) is one of the criteria that is used to calculate whether one is fit or not basing on a person’s height (m) and weight (kg). The criterion is very simple; if one’s BMI is 25 or greater, it signifies overweight. A BMI less or equal to 18.5 indicates underweight. Lastly, a BMI greater than 30 shows obesity.You have been requested to create a program that that helps the Namibian Defence Forces’ (NDF) Captain to calculates the BMI of a person (BMI = weight/height2) and also determine whether the person has also completed running 10 km in the required time. Men should complete 10km in less than 60 minutes for them to be accepted. Women should do that under 80 minutes. Both males and females are accepted if their BMI is less than 25 and greater than 18.5. For 2018 intake, there are already 6 males selected and 1 female. The values for gender, mass and weight are enter by user inputsSample Run 1Welcome to NDF Captain's Selection…
- Java example to check if number is palidrom or not Number will be entered by the userFor Beginning Java: Part 1 Write a program to create a customer's bill for a company. The company sells only five different products: TV, VCR, Remote Controller, CD Player and Tape Recorder. The unit prices are $400.00, $220, $35.20, $300.00 and $150.00 respectively. The program must read the quantity of each piece of equipment purchased from the keyboard. It then, calculates the cost of each item, the subtotal and the total cost after an 8.25% sales tax. The input data consists of a set of integers representing the quantities of each item sold. These integers must be input into the program in a user- friendly way; that is, the program must prompt the user for each quantity as shown below - How many TV's were sold? 3 How many VCR's were sold? 5 How many remote controller's were sold? 1 How many CD's were sold? 2 How many Tape Recorder's were sold? 4 The output of the program should print the following data properly formatted: QTY DESCRIPTION UNIT PRICE TOTAL PRICE…in this code, the integer on each line shows the line number that is not part of code: what are the parameters of sum: ____ 1 public static int sum(int x, int y){ 2 int z = x +y; 3 return z; 4 } 5 public static void main(String[] args){ 6 … 7 sum(a+2, b); 8 … 9 }
- The local Martins awards coupons(just kidding) depending on how much a customer spends on groceries. For example, if you spend $50, you will get a coupon worth eight percent of that amount. The following table shows the percent used to calculate the coupon awarded for different amounts spent. Write a program as a C# application that calculates and prints the value of the coupon a person can receive based on groceries purchased. Here is a sample run: Please enter the cost of your groceries: 14 You win a discount coupon of $ 1.12. (8% of your purchase) Money Spent Coupon Percentage Less than $10 No coupon From $10 to $60 8% More than $60 to $150 10% More than $150 to $210 12% More than $210 14%Please answer question. This is pertaining to Java programming language 2-17