Java Program 1. JA’s GYM Equipment rents gym equipment such as dumbbell, kettlebell, Treadmill, Barbell, etc. Write a java program that prompts the user for the number of minutes the rented a gym equipment. Compute the rental cost as 50 pesos per hour plus 2 pesos per additional minute. (You might have surmised already that this rate has a logical flow, but for now, calculate rates as described here.) Display the hours, minutes, and total price. Save the file as JARentalprice.java
Q: eate the following path expressions. be only 4 instances of B at any given time, tly to this the pro...
A: The path expression is given below.
Q: As you test your function, you should make sure that if your graph g is > g g <- make.network('SW',...
A:
Q: What exactly do you mean by "network security?" Describe the data encryption standard algorithm's op...
A: Introduction: The term "network security" encompasses a wide variety of related concepts, technologi...
Q: DMA access to main memory is given higher priority than processor access to main memory in almost al...
A: Introduction: Direct memory access (DMA) is a computer system capability. It enables some hardware s...
Q: of the following is false in reference to python ? Dictionary is an unordered collection of key-valu...
A: Solution:
Q: Define the term "machine learning" in your own words. When designing AI systems for medical care, id...
A: Introduction: Machine learning (ML) is a subset of artificial intelligence (AI) that enables softwar...
Q: What are the notions of functions in Swift again? What are the qualities of Swift's functions that d...
A: Introduction: A function is a collection of statements that accomplish a certain activity. It is giv...
Q: Give an explanation for each of the following terms: database
A: Introduction: Give an explanation for each of the following terms: database
Q: In a partially populated array, how do you maintain track of elements with data?
A: Introduction: It has long been thought that arrays are always precisely the proper size - their numb...
Q: 5. Explain the documents needed for Scope Change Control
A: NOTE: ACCORDING TO COMPANY POLICY WE CAN SOLVE ONLY 1 QUESTION. YOU CAN RESUBMIT THE QUESTION AGAIN ...
Q: Language: C++ A shell sort algorithm is a variation of insertion sort. Your task is to sort the arra...
A: the c++ code is an given below : #include <iostream>using namespace std; void shellSort(int ...
Q: "Design and Development" is the second phases in the software development process. It consists of 4 ...
A: Task :- choose the correct option for given question.
Q: Design a C++ program to store AND retrieve grocery information using the following guidelines: (1) W...
A: Create a program for grocery shopping store that contains minimum 5 items and its cost accordingly
Q: . How to write and print out a PowerShell of Sunday, March 5th 2022 11:27 AM
A: Ans : Powershell command is : Get-Date -UnixTimeSeconds 1577836800
Q: f) Create a file randomNumbers.txt and fill the file with 100 random numbers in the range [11,99]. W...
A: Create a file randomNumbers. txt and fill the fille with 100 randomnumbers in the range [11,99]. Wri...
Q: What is the result of this statement? True and 8 < 10 or False O Runtime error - parenthesis needed ...
A: Answer b) True For more understanding , I have provided PYTHON CODE along with SCREENSH...
Q: What are the most important computer science concepts to understand?
A: Introduction: The study of computers and computing, as well as its theoretical and practical applica...
Q: Convert the following expression to its Prefix and Postfix equivalents. ((A + B) * C - (D - E) ^ (F ...
A: Introduction: Convert the following expression to its Prefix and Postfix equivalents. ((A + B) * C -...
Q: c. What is the instruction to compute 32-bit unsigned multiplication? Show an example where W = W1 *...
A: Answer: Given two 32-bit signed and unsigned number and we have to find how to do this and what will...
Q: Explain how to turn the letters A, B, and C into decimal numbers.
A: Introduction: Decimal Number System The decimal number system is a base-ten system. It has ten sym...
Q: What is the primary function of a firewall? What are the general rules for employing packet filterin...
A: Introduction: Firewall is nothing but a barrier or layer of security between the traffics of two net...
Q: True/False The number 0.5 in decimal notation, when expressed in the IEEE 754 single-precision bina...
A: Here, we are given a decimal number 0.5 and we have to check whether given IEEE 754 single-precision...
Q: When is it advantageous to divide processes and programs into subsystems that run on a large compute...
A: Subsystem Defined A system is characterized as a collection or blends of things or parts shaping a ...
Q: Q3\ Write a program to generate the numbers following (2, 4, 6, 8, 10, 12,13, 14,16, 17) on ListBox.
A: In the computer programming, the concepts of the language that can be organized and managed as the M...
Q: 6. Following data are coming from a biometric system. It has four sensors. The designer decides to r...
A: Solution ::
Q: Which of the following statements creates an array of elements of the integer data type with a lengt...
A: which of the following statement creates an array of element of the integer data type with the lengt...
Q: How does information flow in a three-tier design?
A: Introduction: the question is about Architecture with three levels- and here is the solution in the ...
Q: Give example of Date class from Simple date format class in JAVA.
A: Introduction: The java.text.SimpleDateFormat class in Java contains methods for formatting and parsi...
Q: Look into the possibility of adopting project management software to assist you more effectively con...
A: Project management software aides project managers, teams, and individual contributors in the execut...
Q: Hamming-code for the following 12-bit data string : 1 0 1 0 1 1 0 1 1 1 0 1 Show that the generated ...
A:
Q: Define the differences between a Baseband Channel and Bandpass Channel in terms of functionality and...
A: Baseband Channel : A baseband channel is a communication channel that can transfer frequencies that ...
Q: Simplify the Boolean expression of each of the different outputs by k-mapping That will be: a b c z ...
A: Find Your Answer Below
Q: Create a procedure to allow company employee to add new product to the database. This procedure need...
A: Below is the complete solution for creating a procedure for adding product details to the database.
Q: Problem #3 - Search a string. Write a program which counts the number of a particular character foun...
A: I give the code in C along with output and code screenshot
Q: Is it possible to safeguard communications using message secrecy and integrity security? Is it the ...
A: Introduction: Because smart objects frequently communicate data across insecure communication medium...
Q: What SQL command should you use to obtain specific rows from a database table?
A: SELECT: The "SELECT" statement is been used for selecting rows from a database. All the fields pres...
Q: What does the following Python code print to the terminal? (Assume we run this as a complete snippet...
A: Option D: Error, Tuples are immutable
Q: Which of the following statement is false? A and C JavaScript cannot access the cookies or variables...
A: JavaScript, often abbreviated JS, is a programming language that is one of the core technologies of ...
Q: 20.2 Find the chromatic index of each graph in Fig. 20.7. Eig 20 7
A:
Q: (a) Design Mod 80 Counter using IC# 74293 . You can use Other logic gate if necessary. (b) design M...
A: a. IC#74293
Q: 5. Write an SQL statement to display all orders from the tables Catalog2015 and Catalog2016 for orde...
A: Find the required query given as below :
Q: In Python, what are all the looping and branching statements with the break, continue, and otherwise...
A: Introduction here in this question, we are asked about all the looping and branching statements with...
Q: Do you know how to get a list of all the files in your current directory, together with their permis...
A: Introduction: The ls command gives detailed information about the files and directories in the file ...
Q: f) Create a file randomNumbers.txt and fill the file with 100 random numbers in the range [11,99]. W...
A:
Q: cript pickanumber3.sh. The script will get a random number 1 - 100. Ask the user to pick a number. I...
A: Given : Name the script pickanumber3.sh. The script will get a random number 1 - 100. Ask the user ...
Q: What exactly is a poison package assault, and what does it imply? Please provide two instances of th...
A: Introduction: ARP Poisoning, also known as ARP Spoofing, is a sort of Internet attack on the Local A...
Q: A web form that allows users to select one of three pizza crust choices from a drop-down menu would ...
A: a web form that allow user to select one of three pizza crust choices from a drop down menu
Q: What is the purpose of a constructor?
A: Introduction: what is the purpose of a constructor When we construct an object without supplying any...
Q: 3 The following data where obtained from five samples of an unknown substance. The mass and volume ...
A:
Q: >>> def count_iterations(val): count=0 while val > 1: = val val count = count + 1 2 %3D %3D print(co...
A: 15 is a answer
Java Program
1. JA’s GYM Equipment rents gym equipment such as dumbbell, kettlebell, Treadmill, Barbell, etc. Write a java program that prompts the user for the number of minutes the rented a gym equipment. Compute the rental cost as 50 pesos per hour plus 2 pesos per additional minute. (You might have surmised already that this rate has a logical flow, but for now, calculate rates as described here.) Display the hours, minutes, and total price. Save the file as JARentalprice.java
Trending now
This is a popular solution!
Step by step
Solved in 3 steps with 1 images
- This needs to be done in Java! (Sales Commission Calculator) A large company pays its salespeople on a commission basis. The salespeople receive $200 per week plus 9% of their gross sales for that week. For example, a salesperson who sells $5,000 worth of merchandise in a week receives $200 plus 9% of $5,000, or a total of $650. You’ve been supplied with a list of the items sold by each salesperson. The values of these items are shown below. Develop a Java application that inputs one salesperson’s items sold for last week and calculates and displays that salesperson’s earnings. There’s no limit to the number of items that can be sold. Item Value 1 239.99 2 129.75 3 99.95 4 350.89 Example Output: Enter number sold of product #1: 10Enter number sold of product #2: 20Enter number sold of product #3: 30Enter number sold of product #4: 40Earnings this week: $2182.61 NOTES: Do not create a separate class for this program. Create the…Use Java ⮚ Roman numerals are represented by seven different symbols: I, V, X, L, C, D and M. ⮚ Symbol Value I 1 V 5 X 10 L 50 C 100 D 500 M 1000.⮚ For example, 2 is written as II in Roman numeral, just two ones added together. 12 is written as XII, which is simply X + II. The number 27 is written as XXVII, which is XX + V + II. ⮚ Roman numerals are usually written largest to smallest from left to right. However, the numeral for four is not IIII. Instead, the number four is written as IV. Because the one is before the five we subtract it making four. The same principle applies to the number nine, which is written as IX. There are six instances where subtraction is used: I can be placed before V (5) and X (10) to make 4 and 9. X can be placed before L (50) and C (100) to make 40 and 90. C can be placed before D (500) and M (1000) to make 400 and 900. ⮚ Given a roman numeral, convert it to an integerCode the following statments in JAVA If your average time to run each mile is under 11 minutes, display a"you got gold" message 5. If your average time to run each mile is under 15 minutes, display a"you got silver" message 6. If your average time to run each mile is equal to or more than 15minutes, "you got bronze" message
- Write a complete java program for the following narrative: You were hired by PAGCOR as part of the programming team in-charge of automating its BINGO game. Your task is to write a program that will accept an integer number whose value is from 1 to 75. Thereafter, your program should determine and print the letter that corresponds to that number. That is, numbers 1 to 15 corresponds to the letter 'B', 16 to 30 corresponds to the letter 'I', 31 to 45 corresponds to the letter 'N', 46 to 60 corresponds to the letter ^ prime G^ prime and 61 to 75 corresponds to the letter r^ prime o^ prime .Write a Java program code: Scenario:One of the renowned supermarket in Dhaka City, “Shwapno” is celebrating their firstanniversary of opening. They have become very popular among people in a short amount oftime. As a method of celebration they have designed three interesting and exciting offer for theircustomers for that day only!! The offers are described as follows:Offer 1: This offer says, if the name of any customer starts with “S” OR ends with “o”, theywill receive a gift which contains 1 kg miniket rice and 1 litre soyabean oil. This offer isdedicated from their name, Shwapno.Offer 2: This offer says, if one customer have taken products and his/her total product weightis less than 1.50 kg, then Shwapno will give all the products to the customer for free. If the totalweight is 1.50 kg or more, the customer will have to pay the full amount.Offer 3: This offer says, if a customer is aged less than 15, then he/she will receive chocolates.If aged 15 or more, then no gifts for the…In JAVA ASSIGNMENT DESCRIPTION: A half-life is the amount of time it takes for a substance or entity to fall to half its original value. Caffeine has a half-life of about 6 hours in humans. Given caffeine amount (in mg) as input, output the caffeine level after 6, 12, and 24 hours. Output each floating-point value with two digits after the decimal point, which can be achieved as follows:System.out.printf("After 6 hours: %.2f mg\n", yourValue); Ex: If the input is: 100 the output is: After 6 hours: 50.00 mg After 12 hours: 25.00 mg After 24 hours: 6.25 mg Note: A cup of coffee has about 100 mg. A soda has about 40 mg. An "energy" drink (a misnomer) has between 100 mg and 200 mg. THE CODE I HAVE SO FAR: import java.util.Scanner; public class LabProgram { public static void main(String[] args) { Scanner scnr = new Scanner(System.in); double caffeineMg; // "double" supports floating-point like 75.5, versus int for integers like 75. caffeineMg = scnr.nextDouble(); System.out.printf("After…
- In Java 2.25 LAB: Leap year A year in the modern Gregorian Calendar consists of 365 days. In reality, the earth takes longer to rotate around the sun. To account for the difference in time, every 4 years, a leap year takes place. A leap year is when a year has 366 days: An extra day, February 29th. The requirements for a given year to be a leap year are: 1) The year must be divisible by 4 2) If the year is a century year (1700, 1800, etc.), the year must be evenly divisible by 400; therefore, both 1700 and 1800 are not leap years Some example leap years are 1600, 1712, and 2016. Write a program that takes in a year and determines whether that year is a leap year. Ex: If the input is: 1712 the output is: 1712 - leap year Ex: If the input is: 1913 the output is: 1913 - not a leap year1)Write a java program that helps a stock market investor understand how much they've made when selling Acme Software, Inc. stock. 2)Ask your user how many shares of Acme Software, Inc. they purchased.And ask your user how much they paid per share. 3)Then, assume that your user sold the same number of shares they had purchased some time later.Ask your user at what price they sold the shares. **In both instances, the purchase and sale, your user had to pay their stockbroker a commission that amounted to 2% of the amount paid for the stock as well as the amount received for the stock.** 4)Then, display:a) The amount your user paid for the stock.b) The amount of commission your user paid their stockbroker when they bought the stock.c) The amount your user sold the stock for.d) The amount of commission your user paid their stockbroker when they sold the stock.e) The amount of profit that your user made after selling the stock and paying the two commissions to their broker. (If the amount…A company has 5 stores {1, 2, 3, 4, 5}. The sales for each store is as follows: {200, 300, 400, 500, 600}. The tax rate is 6% Write a java program that: Print the sales tax for the entire company
- (Create a java )Consider a ball is kicked at an angle e (in degrees) from the horizontal with an initial velocity vo m/s. Write a java program that ask the user for values of e and vo m/s (meter per second) and accordingly it simulates the ball movements in very short time intervals At millisecond (ms). You will take the time interval for measurements at a standard interval of At = 10 ms and determine the football position Ax and Ay (i.e. x and y coordinate). For the next iteration the new Ax and Ay will be used to update the distance. Run the simulation until the football falls back to earth. Your program computes and displays the position (x and y coordinates) and the velocity (vỵ and v,) of the football to record its dynamic-motion until it hits the ground. Calculate x and y every 10 ms but print the values every 500 ms with the format as shown in sample runs figures below.Problem: Write a java language program that will compute the salary of the employee. The program will accept Name, Department, Hours work, Hourly rate. and deductions like: SSS, Phil-Health, PagIbig. After computation display the ff: Name, Dept, H_rate, H_work , Basic_Salary, Total_Deductions, and Net_Pay. Where: Basic_Salary = H_rate * H_work; Sal_Deductions: SSS = 2% of Basic_Salary; PHealth= 3% of Basic_Salary; PagIbig= 4% of Basic_Salary; Total_Deduction = SSS + PHealth + PagIbig; Net_Pay = Basic_Salary - Total_Deduction. Filename: Exam1.javawrite the codes in java Last month Joe purchased some stock in Acme Software, Inc. Here are the details of thepurchase:• The number of shares that Joe purchased was 1,000.• When Joe purchased the stock, he paid $32.87 per share.• Joe paid his stockbroker a commission that amounted to 2% of the amount he paidfor the stock.Two weeks later Joe sold the stock. Here are the details of the sale:• The number of shares that Joe sold was 1,000.• He sold the stock for $33.92 per share.• He paid his stockbroker another commission that amounted to 2% of the amount hereceived for the stock.Write a program that displays the following information:• The amount of money Joe paid for the stock. • The amount of commission Joe paid his broker when he bought the stock. • The amount that Joe sold the stock for. • The amount of commission Joe paid his broker when he sold the stock. • Display the amount of profit that Joe made after selling his stock and paying the twocommissions to his broker. (If the amount…