subject

Import static java. lang. system.*; import java. util. scanner; public class sales{ //you haven't learned about "static" yet but take it on faith that it is needed //we'll discuss in future classes what it actually means and why you need it //create a private static variable for price //create a private static variable for discountrate - it's an integer //create a private static variable for tax // the sale method takes in no parameters // there are 3 print satements and the method returns the final sale price public static double sale(){ //write your code here. use the word doc example as a guide to what the print statements //should look like. don't forget the "return" statement. } /* *the main method is what is executed when the "run" button is clicked. *it is necessary, in this case, for the program to be tested. *actually study this code and trace through it to see how the scanner is used to assign * values to the variables. also pay attention to the use of print, println and \n to cause the * output to be formatted the way it is in the example. */ public static void main(string[] args){ scanner kb = new scanner(system. in); system. out. print(" enter a price: "); price = kb. nextdouble(); system. out. println(price + "\n"); system. out. print("what is the tax rate? "); tax = kb. nextdouble(); system. out. println(tax); discountrate = (int)(math. random() * 40); system. out. println("result returned is " + ; } } can anyone with this

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 15:30
Melissa needs to add a topic to an email that she will send to her teacher. choose the name of the field where she should type her topic.
Answers: 2
question
Computers and Technology, 23.06.2019 15:00
Barbara is interested in pursuing a career in the science and math pathway. which qualifications will her reach that goal? a.an advanced knowledge of physics and math b.an advanced knowledge of engineering and math c. an advanced knowledge of physics and robotics an d. advanced knowledge of machinery and math
Answers: 1
question
Computers and Technology, 24.06.2019 20:50
Which key function of a business involves finding, targeting, attracting, and connecting with the right customers?
Answers: 3
question
Computers and Technology, 25.06.2019 01:30
Ashort circuit locator should be periodically run along the cords used in a shop to check for shorts and open circuits. a.)true b.)false
Answers: 2
You know the right answer?
Import static java. lang. system.*; import java. util. scanner; public class sales{ //you haven't...
Questions
question
Computers and Technology, 19.07.2019 01:30
Questions on the website: 13722362