what is the problem in this program;
class Main {
public static void main(String[] args) {
String userChoice;

String userName;

double hrsWorked = 0;
double payRate = 0.00;
double taxRate1 = 0.25;
double taxRate2 = 0.50;

double grossPay = 0.00;
double taxAmt = 0.00;
double netPay = 0.00;


scanner in = new scanner( System.in );

System.out.println("Please enter your first name ==> \n");
userName = in.next();


System.out.println("Do you want to compute your net pay? \n");
System.out.println("Enter Y for yes or N for no ==> ");
userChoice = in.next();


if (userChoice.equals("Y")) {
System.out.println("\n Please enter the number of hours you worked ==>");
hrsWorked = in.nextInt();


System.out.println("\n Please enter your pay rate ==> $");
payRate = in.nextFloat();

grossPay = payRate * hrsWorked;

taxAmt = (grossPay >= 500) ? grossPay * taxRate2 : grossPay * taxRate1;

netPay = grossPay - taxAmt;

System.out.println( "\n " + userName + " you said you worked " + hrsWorked + " hours at $" + payRate + "\n");
System.out.println("which means you earned a gross amount of $" + grossPay + " \n");
System.out.println("and you paid $" + taxAmt + " in taxes\n");
System.out.println("so your net pay is $" + netPay + " \n");}
else {System.out.println("\n Thank you " + userName + " then I will not computer your net pay \n");
System.out.println(" Thank you and please come again. \n");
}
}
}
also, this done repl.it PLEASE HELP ASP

Answers

Answer 1

Answer:

You should import java.util.*; at the top, and capitalize the Scanner class:

   

   Scanner in = new Scanner( System.in );

A detail is that the scanner needs to be closed once you're done with it:

   in.close();


Related Questions

What is the difference between ionizing and non-ionizing radiation?

Answers

Non-ionizing radiation is longer wavelength/lower frequency lower energy. While ionizing radiation is short wavelength/high frequency higher energy. Ionizing Radiation has sufficient energy to produce ions in matter at the molecular level.

Answer:

Radiation is classified as being either non-ionizing or ionizing. Non-ionizing radiation is longer wavelength/lower frequency lower energy. While ionizing radiation is short wavelength/high frequency higher energy. Ionizing Radiation has sufficient energy to produce ions in matter at the molecular level.

Explanation:

a computer programmer draws a before writing a comouter program​

Answers

Answer:

Draws a flow chart

Are you familiar with measuring using a ruler? When have you ever used a ruler to measure, and who taught you how to use the ruler? How confident are you in your ability to measure things using a ruler? Please help me answer this question

Answers

Answer:

I have used a ruler many times to meausre various things such as paper, my height, etc. I was taught how to use a ruler in elementary school. I am pretty confident in using a ruler because I have used one for a majority of my life.

Explanation:

PLEASEEEEE HELLPPP IT'S URGENT!!! PLEASEEEEE HELLPPP IT'S URGENT!!!

We’re working on micro:bits and I need to find the meaning to these words:

•LED Matrix
•Battery
•Processor
•Accelerometer
•Micro USB Port
•Compass
•Block Editor
•Iteration
•Selection
•Variable
•Algorithm
•Debug
•Number
•String
•Define iteration
•Indefinite iteration
•If Statement
•Text Based programming
•Block Based programming
•JavaScript
•Function
•Syntax

YOU DON’T HAVE TO DO ALL THE WORDS JUST SOME, I WILL GIVE BRAINLIEST!!!

Answers

Answer:

LED matrix is a grid of lights arranged into rows and columns

A battery is a device consisting of one or more electrochemical cells with external connections for powering electrical devices such as flashlights, mobile phones, and electric cars.

A processor is a machine that processes something.

An accelerometer is a tool that measures proper acceleration.

Universal Serial Bus is an industry standard that establishes specifications for cables and connectors and protocols for connection, communication and power

A compas is an instrument containing a magnetized pointer which shows the direction of magnetic north and bearings from it.

A block editor allows you to add Columns block, which basically adds two columns of paragraph blocks.

Iteration is the repetition of a process in order to generate an outcome.

Selection is the action or fact of carefully choosing someone or something as being the best or most suitable.

Algorithm is a process or set of rules to be followed in calculations or other problem-solving operations, especially by a computer.

debug identifies and remove errors from (computer hardware or software).

an arithmetical value, expressed by a word, symbol, or figure, representing a particular quantity and used in counting and making calculations and for showing order in a series or for identification.

I can do the rest if you want, just wanted to give you a head start :)

Once a table has been inserted into a message, how can a user add new rows or columns? Check all that apply. Place the cursor inside the table and press Enter. Place the cursor on the last cell and press the Tab key. Click the plus sign over a column or next to a row. Click the Insert tab, click Tables, and select a new table. Right-click for the insert options menu at the insertion point

Answers

Answer: A and E

A. Place the cursor on the last cell and press the Tab key.

B. Right-click for the insert options menu at the insertion point.

Explanation: Just took the test!

Place the cursor on the last cell and press the Tab key. Right-click for the insert options menu at the insertion point. The correct options are B and E.

What is cursor?

On a computer display screen, a cursor indicates the location where a user can type text. It's also referred to as a "caret."

The Latin word "cursorem," which meaning "runner," is where the word "cursor" originates.

A figure resembling an arrow shows on the computer screen as the mouse pointer. It is employed to identify the various screen icons.

It is capable of sweeping the screen. However, as you type on a computer, a blinking line known as the cursor appears.

The user can add extra rows or columns by placing the cursor in the last cell and pressing the Tab key after inserting a table into a message. At the insertion point, right-click to display the insert options menu.

Thus, the correct options are B and E.

For more details regarding cursor, visit:

https://brainly.com/question/30355731

#SPJ6

What goes in between the < > when declaring a new ArrayList?

A A class data type

B A class variable

C A primitive variable

D Any data type

E A primitive data type

Answers

Answer:

A, a class data type

Explanation:

Arraylists can only hold class data types such as String, Array, etc.

The statement of function that goes in between the < > when declaring a new ArrayList is the "A class data type." Thus, the correct option for this question is A.

What is Array list?

Array list may be characterized as a type of list that is significantly present in java. util package. It is a well-known data structure in Java programming language that is used to store elements or objects. It is generally the collection framework in Java.

If a user wants to declare an ArrayList, he/she must require to use the function or command, i.e. ArrayList<Type> name. Change the type to whatever type of objects you want to store in the ArrayList, for example, String as shown in the code below. Arraylists can significantly hold class data types such as String, Array, etc.

Therefore, the statement of function that goes in between the < > when declaring a new ArrayList is the "A class data type." Thus, the correct option for this question is A.

To learn more about ArrayList, refer to the link:

https://brainly.com/question/30000210

#SPJ2

Raul is a 13-year-old teenager interested in taking up photography as a new hobby. His dad wants to buy him a camera for his birthday that will be easy to use and simple enough for a beginner, meaning that Raul won’t have to mess with any settings if he doesn’t want to. What type of camera might be a good starter camera for his teen aged son?

a. point and shoot
b. hybrid
c. DSLR
d. format field camera

Answers

Answer:

c. DSLR can be good camera for the teenager son or any beginner photographer

Answer:

Point and shoot

Explanation:

With a point and shoot camera, all you literally do is point and shoot. It is a very simple camera with no buttons and the lens don't move. Is it the perfect camera for a beginner.

In computing, what does Bcc mean. The topic in which this is found is HOW TO CREATE AN E MAIL ACCOUNT ​

Answers

Answer:

BCC stands for "blind carbon copy."

Answer:

that I have a a but this is the real account of Finn have a great day today with my mom said you didn't want me there was an accident in the middle of nowhere near as much as I can get some sleep now so I can get some sleep now so I can get some sleep now so I report

Help give crown and points

Answers

Answer:

what should i do

please tell

A _______ is a website specially designed to allow visitors to use their browser to add, edit, or delete the site's content.

Answers

Answer:

"Wiki" Blog Webcast Microblog

so technically just wiki

Explanation:

A Wiki Blog Webcast Microblog is a website specially designed to allow visitors to use their browser to add, edit, or delete the site's content.

Answer:

A wiki is a website specially designed to allow visitors to use their browser to add, edit, or delete the site's content.

Explanation:

Write a 10 sentence paragraph about george washington and abraham lincoln and no plagiarism

Answers

10 sentence paragraph about George Washington and Abraham Lincoln and no playgiarism

Answer:

Hands down, no argument, no opinion, when you think of the U.S Presidential candidates you often think of our first founder, George Washington, and our 16th founder, Abraham Lincoln.

Lincoln was born on February 12, 1809. Although being called the Illinoisan President, he was born in Kentucky on a farm in Sinking Spring. A little after his birth, him and his parents - Thomas and Nancy Lincoln - moved to Illinois to live out the rest of their days. He was only 52 years old when he became a Presidential elect, and had 4 kids; William Wallace Lincoln, Tad Lincoln, Robert Todd Lincoln, and Edward Baker Lincoln. Soon, he would die to John Wilkes Booth on April 14th, 1865 at 7:22 am.

George Washington was born on February 22, 1732. He is nationally known for being the first of the Founding Fathers, and the first President elect of the United States. He was President of the U.S 1789-97, but unfortunately died at the age of 67 to a disease named Epiglottitis. Before he died, he had two children; John Parke Custis, and Martha "Patsy" Parke Custis.

Which is an example of a variable name written in camelcase?

Song Name
songName
song Name
SongNAME

Answers

Answer: songName

-DoggyMan5

the physical parts of Computer are kwon as

Answers

Answer:

Computer hardware

Explanation:

Computer hardware includes the physical parts of a computer, such as the case,central processing unit (CPU), monitor, mouse, keyboard, computer data storage, graphics card, sound card, speakers and motherboard.

favorite color should it be stored why?or why not?

Answers

Answer:

Explanation:

green

Favorite color should not be stored as there is no need to keep it.

What is Color?

Color is known to be a kind of visual appeal or view property gotten from the spectrum of light working together with the photoreceptor cells of the human eyes.

Therefore, Favorite color should not be stored as there is no need to keep it but one can buy items using one's  Favorite color .

Learn more about color  from

https://brainly.com/question/911645

#SPJ2

Direction: Choose the letter of the correct answer.

1. It is a substance consumed to provide nutritional sustenance for an

organism.

a. food

b. dish

c. menu

d. meal

2. This refers to a prepared item of food like cordon bleu.

a. meal

b. dish

c. menu

d. food

3. This is the term for all item that has been manufactured and is useful to us.

a. nutritive tool b. dishes

c. product evaluation

d. sensory evaluation

4. This involves the sense of sight and can be described through colors, size,

shape, consistency and crumb.

a. flavour

b. fresh

c. appearance

d. texture

5. This is produced by a combination of taste and aroma.

a. flavour

c. changes in color

b. texture

d. sensory

6. This involves the senses of sight and touch and results to different cooking

methods to produce different textures such as soft , chewy, crispy, sticky

and grainy.

a. flavour

c. appearance

b. texture

d. aroma

7. This refers to the nutritive value of the food or dish .

a. sensory tools

c. nutritive tools

b. senses

d. food evaluation

8. This must be evaluated for the purpose of maintaining the consistency of

the products served.

a. meal

c. menu

b. recipe

d. dish

9. It refers to the taste buds on our tongue.

a. taste

c. aroma

b. appearance

d. texture

10. This involves the sense of smell and is detected by the nose.

a. taste

c. texture

b. aroma

d. appearance

Ano pong answer nyo dito?.
pahelp po.

Answers

Explanation:

b c a d d d a b c c good luck bro

How does a hyperlink function in an Outlook message? When the hyperlink is selected, a web page opens inside the message. When the hyperlink is selected, a web page opens in the default browser. When the message is opened, the hyperlink automatically opens a web page. When the message is opened, a web page displays in a special preview window.

Answers

Answer:

When the hyperlink is selected, a web page opens in the default browser.

Explanation:

HTML is an acronym for hypertext markup language and it is a standard programming language which is used for designing, developing and creating web pages.

Generally, all HTML documents are divided into two (2) main parts; body and head. The head contains information such as version of HTML, title of a page, metadata, link to custom favicons and CSS etc. The body of the HTML document contains the contents or informations of a web page to be displayed.

A hyperlink can be defined as an element in a HTML document that provides a direct access or link to another document, page, location, and image.

Basically, a hyperlink links to the same page or image in a HTML document or another HTML document. The texts contained in a hyperlink is usually highlighted and only activated by a click.

In Microsoft Outlook, when a hyperlink is selected, a web page opens in the default browser.

Answer:

B. When the hyperlink is selected, a web page opens in the default browser.

Explanation:

1. What does VolP stand for? *
O a. Video on Internal Pride
O b. Voice on Inside Platform
c. Voice over Internet Protocol
O d. Video on Internet Pipes

Answers

Answer : c

Explanation:
Answer choice c is correct

Vector images are drawn ________ available in most graphic software programs.

Answers

Answer:

Vector images are drawn with basic line tools available in most graphic software programs

Explanation:

A vector graphic image makes use of points coordinate points on a Cartesian plane, to define computer graphic images, such that the image is based on mathematical relationships between the different parts of the image rather the use of pixels

Vector images are therefore smooth without aliasing errors for all sizes to which the image is zoomed given that the image generated by a combination of lines, curves and points

A broadcast network is one in which a transmission from any one attached station is received by all other attached stations over a shared medium. Examples are a bus-technology local area network, such as Ethernet, and a wireless radio network. Discuss the need or lack of need for a network layer (OSI layer 3) in a broadcast network.

Answers

Answer:

In a broadcast network such as radio network for example a walkie talkie, the broadcasted transmission is received equally by all receivers indiscriminately which may lead to dissemination of classified information to an unauthorized receiver, therefore, the network layer is required is needed to ensure proper routing of the information

Similarly, when the all the broadcasters in one location are each trying to send messages to different receivers at another given location, there would be potential for network congestion and it would be difficult to send information through the network

When there is need for priority service the presence of a network layer is needed in the network

However, when the above functions performed by the network layer is not required, then, the network layer can be excluded, such as the communication between layers 4 - 7 of the OSI model

Explanation:

Why can't this app have people ask riddles.

Answers

I don’t know why it doesn’t have that

Because this is an app for school. Even though, I always post riddles on it anyway

Bitmap images produce a _________ images

Answers

I DONT KNOW WHAT YOU MEAN

illl give brainliest plzzzzzzzzzz

Answers

The one paste symbol name is : paste settings

it consist of 'paste special' and 'set default paste if im not wrong'

why we have to inspect the tools and equipment?​

Answers

Answer:

The purpose of an inspection is to identify whether work equipment can be operated, adjusted and maintained safely, with any deterioration detected and remedied before it results in a health and safety risk.

Explanation:

hopefully this Helps!

9.
Write an application that computes and displays the day on which you become (or
became) 10,000 days old. Save the application as Ten ThousandDaysOld.java.
TI

Answers

Answer:

Explanation:

The following code is written in Java and it asks you for your age and then prints out the exact date from your birthday that you will turn 10,000 days old.

import java.util.Calendar;

import java.util.Date;

import java.util.Scanner;

public class Main {

   public static void main(String[] args) {

       Scanner in = new Scanner(System.in);

       System.out.println("What is your age?");

       int age = in.nextInt();

       int daysLeft = (10000 - (age*365));

       Date birthday = new Date();

       Calendar cal = Calendar.getInstance();

       cal.setTime(birthday);

       cal.add(Calendar.DATE, daysLeft);

       Date modifiedDate = cal.getTime();

       System.out.println(modifiedDate);

   }

}

Other Questions
HELP!! will give brainliest!! polycondensation reaction takes place between 1.2 moles of a dicarboxylic acid, 0.4 moles of glycerol (a triol) and 0.6 moles of ethylene glycol (a diol). A.Calculate the critical extents of reaction for gelation using (i) the statistical theory of Flory and (ii) the Carothers theory.B.Comment on the observation that the measured value of the critical extent of reaction is 0.866. What characteristics would you look for to determine if an organism is a protist or a plant? Observing and recording behavior is the main purpose behindresearch.experimentaldescriptivelongitudinalcorrelational explain why antibiotics such as penicillin, kill bacteria and not viruses Multiply (6 + 5i)(4 - 4i) Tech A says that radial ply tires have much more flexible sidewalls than bias-ply tires because of their construction. Tech B says that bias-ply tires have a more durable construction than radial tires. Who is correct? which ones right Ill give brainliest What prompts the narrator to visit an energy plant?A. A desire to drive more responsiblyB. Curiosity about the energy it takes to make coffeeO C. A love for bike-ridingO D. A distrust of all information found on the Internet What is the ph value of neutral substance what is bromothymol blue ESSAYThe aim of art is to represent not the outward appearance of things, but their inward significance. Aristotle Does anyone know this? I picked arkansa and North Carolina Graduation rates vary from state to state in the United States. Based on the statistics for the two states you selected, identify at least one potential reason for this variance. A rectangle is 3 meters wide and 10meters long. How long is the diagonalof the rectangle? What is the solution to the system of equations?2x+y=111/2x-5y=8please help!!! write a function of least degree to model this graph with the final answer in factored form. How do we read and write in MAR and MDR memory unit, please help I am very confused :) Which of the following best describe gas particles? SELECT ALL THAT APPLYA.) moving randomlyB.) collide with each other C.) move slowD.) High kinetic energyE.) moving orderly 3 3/7x1/3 yeah pls help In January, Mr Tan's students read 20 books. In Febuary, they read 15 books. What is the percent increase or decrease in the number of books they read? A. 5% decrease B. 15% increase C. 25% increase D. 25% decrease