of paint and eight hours of labor will be required. The company charges $18.00 per hour for labor. Write a program that allows the user to enter the number of rooms to be painted and the price of the paint per gallon. It should also ask for the square feet of wall space in each room. The program should have methods that return the following data: • The number of gallons of paint required • The hours of labor required Programming Challenges • The cost of the paint • The labor charges • The total cost of the paint job Then it should display the data on the screen
Q: Make sure each program has at least one method in addition to its driver method(main). Or use one…
A: import java.util.*;public class Main{ static void GPA() { int A=4,B=3,C=2,D=1,F=0;…
Q: Herbert’s Home Repair estimates each job cost as the cost of materials plus $35 per hour while on…
A: import java.uti.Scanner; public class JobPricing{ public static void main(String[] args) {…
Q: Question 2 has bigger options otherwise according to your policy they are 3 questions at a time.…
A: Ans 1: The signature of a method consists of: 1) method name Ans 2: Fille the code given: public…
Q: Create a method that transforms a time given in seconds to a String that shows the hours, minutes,…
A: logic:- read totalSeconds p1=totalSeconds%60 (gives seconds) p2=totalSeconds/60 p3=p2%60…
Q: Two integers are said to be relatively prime if their greatest common divisor (GCD) is one. For…
A: import java.util.Scanner; class RelativelyPrime { public static void relativelyPrime(int A, int…
Q: Consider the following method. public double Sqaure(int r){ int x=2; return Math.sqrt(x); } which of…
A: Required:
Q: Write a method named graduation that takes two arguments gpa and totCreditsEarnd Determine…
A: According to the asked question, the solution is given below with a proper explanation.
Q: Create two (2) overloaded methods that display a greeting message and use first name and last name…
A:
Q: need help creating this Java Program it has to match the sample run exactly thank you !…
A: import java.util.Scanner; public class Main{ public static double futureInvestmentValue(double…
Q: this assignment wants me : Herbert’s Home Repair estimates each job cost as the cost of materials…
A: Below is the modified java program: - Explanation: - In the given code, there are two errors that is…
Q: in c# please Write method QualityPoints that inputs a student’s average and returns 4 if the…
A: As per the requirement program is developed. Algorithm: Step 1: Write the main method. Step 2:…
Q: Write an application that allows you to enter nine(and only nine, no more no less) integers and…
A: Introduction of the Program: The Java program takes 9 integers from the user as input and then the…
Q: Write a program for an artist who is creating art instillation “experiences” consisting of rooms…
A: The program is completed with java. first of all, we take all the user input of width, length,…
Q: Herbert’s Home Repair estimates each job cost as the cost of materials plus $35 per hour while on…
A: Code snippet:
Q: Please use Java as programming language Create a class named Commission that includes 3 variables: a…
A: logic:- In first computeCommission(double sales,double commission_rate1) {…
Q: Write a standard mode application that calculates and displays the weekly salary for an employee.…
A: A required program is as follows, import java.util.Scanner; public class Salary { //Define the…
Q: The Body Mass Index – BMI is a parameter used to measure the health status of an individual. Various…
A: The Answer start from step-2.
Q: In this task, you are asked to write a program called Swap.java, including at least 3 following…
A: As per the above descriptions : method used: methods: Swap() swapDigitPairs(int num)…
Q: An integer number is said to be a perfect number if its factors, including 1 (but not the number…
A: PROGRAM CODE: import java.util.Scanner;public class Main { //creating scanner object to get…
Q: b. Weight c. Height 2. Compute the BMI of that individual 3. Make the following decisions if:…
A: Define packages java.util and java.lang for i/o operations and fundamental classes respectively…
Q: 3) Write a method that computes the speeding penalties of cars. Given as inputs the speed of the…
A: The code has been written in Java as no programming language has been mentioned.
Q: This Java program,prompts the user to enter either an 'F' for Fahrenheit or 'C' for Celsius (either…
A: Actually, java is a object oriented programming language. It is a platform independent.
Q: In this task, you are asked to write a program called Swap.java, including at least 3 following…
A: SOURCE CODE import java.util.Scanner; public class Main { //method to swap a number public…
Q: You invoke a method by its name followed by a pair of brackets and the usual semi-colon, PLEASE USE…
A: Coded using C#.
Q: The Body Mass Index – BMI is a parameter used to measure the health status of an individual. Various…
A: Start Variables name with type string and weight, height as type double Define constructor BMI…
Q: Write a method thatcomputes future investment value at a given interest rate for a specified…
A: Programming instructions: Import necessary header files. Create a class. Create required variables.…
Q: Question 1: Write a java program that has the following methods: • A method called bodyMass that…
A: Here I have defined the function bodyMass(). In this function, I have used nested if-else conditions…
Q: The terms in the formula are as follows: • P is the present value, or the amount that you need to…
A: PROGRAM: //Header file import java.util.*; //Defining class public class Main{ //Defining…
Q: Write a program that reads a student’s name together with his or her test scores. The program should…
A: Grading System: 90-100, A; 80-89, B; 70-79, C; 60-69, D; 0-59, F student.txt file Johnson 85 83 77…
Q: Create a class called Employee that includes three pieces of information as instance variables—a…
A: Program code: Filename: "Employee.java" public class Employee{ private String firstName; private…
Q: The Freemont Automobile Factory has discovered that the longer a worker has been on the job, the…
A: After fixing the errors, I have provided JAVA CODE along with CODE SCREENSHOT and OUTPUT…
Q: Write a method called CaculateTuitionFee(int numberOfCourses, double costPerCourse = 449.99). This…
A: Coded using C#.
Q: Write and test a method that can be used to determine the winner and increment either the user or…
A: import random user_score = int(0)pc_score = int(0)score_limit = 10 user_guess: str = input(str("pls…
Q: Write a program that asks the user to enter an item’s wholesale cost and its markup percentage. It…
A: The program is written in C#
Q: 3. write a method which calculate the Earns as following: If the Job is Teaching assistance : Earns…
A: Required: C# program to calculate earning and print the results. All code and screenshots have…
Q: Write a method that calculates the tax on a price. The price and tax percentage should be doubles.…
A: the answer to the following question:-
Q: You need to read in and process the wind speeds in East London over the past few days. The maximum…
A: The methods including parameters are given. Minimum 4 to 8 reading are required from the user as…
Q: Create a program named PaintingEstimate whose Main() method prompts a user for length and width of a…
A: using System;using static System.Console;using System.Globalization;class PaintingEstimate{…
Q: Develop a letter-guessing game in this assignment. Requirements: 1). When the game begins, generate…
A: The java code is given below:
Q: To encourage good grades, Hermosa High School has decided to award each student a bookstore credit…
A: Actually, java is a object oriented programming language. It is a platform independent.
Q: Question 11 Assuming you have this Java method: public static double computeGrade(int score) {…
A: 11)Given:public static double computeGrade(int score){//this method takes int parameter and returns…
Q: In this program, create a method with the following signature: public static double…
A: Average = total sum of all scores / total number of scores. If avg : 91-100 grade =A…
Q: Write a program that asks the user to enter a distance in meters. The program will then pre-sent the…
A: import java.util.*;import java.lang.*;public class Main { static double showKilometers(double…
Q: program that asks the user to enter an item’s wholesale cost and its markup percentage. It should…
A: Markup refers to the difference between the selling price of a good or service and its cost. It is…
Q: C++ write a program that computes the amount of money the computer club will receive from proceeds…
A: A required program is as follows, #include<iostream> #include<iomanip> using namespace…
Q: T/F 2) There is no base case in the following method. public int noBaseCase(int x) { if(x > 0)…
A: Given that, There is no base case in the following method. public int noBaseCase(int x){if(x >…
Q: 1. Complete the following methods: a) public static double calculateArea (double radius) { // return…
A: a) public static double calculateArea (double radius){ double area; area= 3.14*radius*radius; return…
Q: This JAVA program prompts the user to enter the current month, using 1 for January, 2 for…
A: 1. Create a class Rainfall. Declare two integer variables to hold the month and average as shown.…
Q: 2. Write a method named graduation that takes two arguments gna and totCreditsEarnd Determine…
A: public class Tester{ public static void main(String[] args) { Scanner sc=new Scanner(System.in);…
Q: Write an application that displays every perfect number from 1 through 1,000. A perfect number is…
A: Program description: The main objective of the program,Perfect.java is to find the perfect numbers…
Starting Out with Java From Control Structures through Objects 6th Edition
Paint Job Estimator
Trending now
This is a popular solution!
Step by step
Solved in 2 steps with 1 images
- c# Now, modify the program so that the major functions appear in the following individual methods: GetMonth - This method prompts for and returns the month GetNumMurals - This method prompts for and returns the number of murals scheduled and is called twice -- once for interior murals and once for exterior murals ComputeRevenue - This method accepts the number of interior and exterior murals scheduled, accepts the month they are scheduled, displays the interior and exterior prices, and then returns the total expected revenue DataEntry - This method fills an array with customer names and mural codes and is called twice -- once to fill the array of interior murals and once to fill the array of exterior murals GetSelectedMurals - This method continuously prompts for mural codes and displays jobs of the corresponding type until a sentinel value is entered using systeml using static System.Console; using System.Globalization; class MarshallsRevenue { staticvoidMain() { // Your code here…Financial Application:• Write a program that computes future investment value at a given interest rate for aspecified number of months and prints the report shown in the sample output. • Given the annual interest rate, the interest amount earned each month is computedusing the formula: Interest earned = investment amount * annual interest rate /1200 (=months * 100) • Write a method, computeFutureValue, which receives the investment amount, annualinterest rate and number of months as parameters and does the following: o Prints the interest amount earned each month and the new value of theinvestment (hint: use a loop). o Returns the total interest amount earned after the number of months specified bythe user. The main method will:o Ask the user for all input needed to call the computeFutureValue method.o Call computeFutureValueo Print the total interest amount earned by the investment at the end of thenumber of months entered by the user. Sample Program runningEnter the investment…C++ write a program that computes the amount of money the computer club will receive from proceeds of their granola bar sales project. Allow user to enter the number if cases sold and the sale price per bar. Each case contains 12 bars; each case is purchased at $5.00 per case from local vendor. The club is required to give student government association 10% of their earnings. Display their proceeds formatted with currency . Write appropriate methods for your solution
- Write a method that returns the lcm (least common multiple) of an unspecified number of integers. The method header is specified as follows: public static int lcm(int... numbers) Write a test program that prompts the user to enter five numbers, invokes the method to find the lcm of these numbers, and displays the lcm.Write a program that asks the user to enter an item’s wholesale cost and its markup percentage. It should then display the retail price for the item. For example: • If the wholesale cost is £3.00 and the markup percentage is 100%, the retail price will be £6.00 • If the wholesale cost is £5.00 and the markup percentage is 50%, the retail price will be £7.50. The calculation should be done by a method called CalculateRetailPrice in a class called RetailPricing. The method CalculateRetailPrice should the wholesale cost and markup percentage as arguments and returns the retail price. require to be in c#Write a program that asks the user to enter an item’s wholesale cost and its markup percentage. It should then display the retail price for the item. For example: • If the wholesale cost is £3.00 and the markup percentage is 100%, the retail price will be £6.00 • If the wholesale cost is £5.00 and the markup percentage is 50%, the retail price will be £7.50. The calculation should be done by a method called CalculateRetailPrice in a class called RetailPricing. The method CalculateRetailPrice should the wholesale cost and markup percentage as arguments and returns the retail price.
- this assignment wants me : Herbert’s Home Repair estimates each job cost as the cost of materials plus $35 per hour while on the job, plus $12 per hour for travel time to the job site. The main() method prompts the user for the name of a job (for example, Smith bathroom remodel), the cost of materials, the number of hours of work required, and the number of hours travel time. Pass the numeric data to a method that computes an estimate for the job and returns the computed value to the main() method which displays the job name and estimated price. here is my code: it is showing 2 errors (in the snapshot shown below) please help import java.util.Scanner; class JobPricing { public static void main(String[] args) { String description; double materials; double hoursOnJob; double hoursTraveling; double price; Scanner input = new Scanner(System.in); System.out.print("Enter job description >> "); description =…in c# please Write method QualityPoints that inputs a student’s average and returns 4 if the student’s average is 90–100, 3 if the average is 80–89, 2 if the average is 70–79, 1 if the average is 60–69 and 0 if the average is lower than 60. Incorporate the method into an app that reads a value from the user and displays the result.Java - Programming Develop a letter-guessing game in this assignment.Requirements:1). When the game begins, generate a random letter between A and Z;2). Display a message "I have a secret letter (A to Z), can you guess what it is?";3). Read the user's answer;4). Compare the user's answer and the random secret letter generated;5). If the user answer is before the random secret letter in the alphabet, display "Incorrect. Trysomething later in the alphabet" and go to Step 2;6). If the user answer is after the random secret letter in the alphabet, display "Incorrect. Trysomething earlier in the alphabet." and go to Step 2;7). If the user answer is the same as the random secret letter, display "Well done. Want to playagain (y/n)?";8). Read the user's answer. If the answer is 'y', go to Step 1. If the answer is 'n', go to Step 9;9). Display "Thanks for playing the game. Goodbye!". The program stops.Run your program several times. Take screenshots. Submit your Java file with the screenshots
- In this exercise you will use if and else statements to write some code that simulates a gambler who makes various wagers. As part of your solution, you will use the following parameters that are passed in to the method:A double variable with the identifier money that indicates how much money the gambler has.A double variable with the identifier wager that indicates how much money is being wagered in a particular bet.A Boolean variable with the identifier outcome that indicates if the gambler wins (true) or loses (false)1) In some cases the gambler is unable to fix the outcome of the wager ahead of time and must rely on luck.Use an if statement to check if outcome has a value (whether or not it is null)If it does not have a value, you will need to assign it one by instantiating a Random object and using one of its methods.2) Use an if/else statement to determine if the gambler has won the wager (outcome is true) If the gambler has won the wager, add the wager to amount of money the…Write a class that contains thefollowingtwo methods:/** Convert from pounds to kilograms */public static double poundToKilogram(double pound)/** Convert from kilograms to pounds */public static double kilogramToPound(double kilogram)The formula for the conversion is:pound = 0.453 * kilogramkilogram = 2.204 * poundWrite a test program that invokes these methods to display the following tables:This JAVA program prompts the user to enter the current month, using 1 for January, 2 for February... or q or Q to stop; do only the 1st 3 months. Each month must have its own object and method that query the user for the 1st 10 days of rainfall for each month; assume rainfall is not negative or alphabetic characters, only positive. Compute the avg rainfall for each month and display itEach object must update the same, one, variable with avg for all 3 months main() print the result.