Homework

Homework Questions? Ask a Tutor for Answers ASAP

Ask an Expert,
Get an Answer ASAP!

I am writing a program for class, but unfortuintly the

Customer Question
I am writing a...

I am writing a program for class, but unfortuintly the progam is behaving like i would like it to.

Tutor's Assistant: What programs and versions are you using?

Im using java vs 9 i belive

Tutor's Assistant: What is your ideal outcome? How can we solve this for you?

I guess, tell me what exatly im doing wrong in my code to be able to fix it

Submitted: 10 months ago.Category: Homework
Show More
Show Less
Ask Your Own Homework Question
Answered in 8 minutes by:
9/30/2017
Tutor: Bhavik Joshi, Computer Software Engineer replied 10 months ago
Bhavik Joshi
Bhavik Joshi, Computer Software Engineer
Category: Homework
Satisfied Customers: 1,005
Experience: Product Developer at Computer Science Corporation
Verified

Hi, I'm Bhavik. Welcome to JustAnswer. I'm reviewing your question now, and will reply back ASAP.

Ask Your Own Homework Question
Tutor: Bhavik Joshi, Computer Software Engineer replied 10 months ago

Please attach your code here using Add files option so that I can debug it.

Ask Your Own Homework Question
Customer reply replied 10 months ago
i cant make it a file to send
Customer reply replied 10 months ago
can i paste the text here?
Customer reply replied 10 months ago
public static void main(String[] args)
{//Program to calculate tip
Scanner scnr = new Scanner(System.in);
double billCharge = 0;
int peopleInParty = 0;
double tipAmount = 0;
double totalCharge = billCharge * tipAmount / 100 + billCharge;System.out.println("This program will help you calculate the tip" +
" for your bill, that corresponds to the type of service you" +
" had during your meal.");
System.out.println("If there are more than 6 people in your party" +
" a charge of 25% will be added to your bill automaticly for your tip.");// Get user data on bill amount
System.out.println("Please enter the charge of your bill here.");
billCharge = scnr.nextDouble();// Get user data on the amount of people in the dining party
System.out.println("Thank you, ***** ***** enter the amount of people"
+ " in your party");
peopleInParty = scnr.nextInt();if (peopleInParty > 6)
{
System.out.println("Since your party size had over 6 people"
+ " in it, your tip is automatically raised to 25%");
tipAmount = 25;//Get user data on what tip they would like to add
System.out.println("Thank you, ***** ***** enter the tip amount you" +
" would like to add to your total bill." +
" The tip added will be in a percentage." +
" You can type 10 for poor service," +
" 15 for adequate service," +
" or 20 for good service.");
tipAmount = scnr.nextInt();// Display how much the total bill will be
System.out.println("Thank you for your input, your bill was "
+ billCharge);System.out.println("The total amount of people in your party was "
+ peopleInParty);System.out.println("The amount you selected for a tip percent is "
+ tipAmount + "%");System.out.println("The grand total for your bill, with tax is " +
totalCharge * .0625);System.out.println("Thank you for dining with us, and using our" +
" program to calculate your total bill price. We hope to see you" +
" again soon!");}
}
}
Was this answer helpful?

How JustAnswer works

step-image
Describe your issueThe assistant will guide you
step-image
Chat 1:1 with a tutorLicensed Experts are available 24/7
step-image
100% satisfaction guaranteeGet all the answers you need
Ask Scott Your Own Question
Scott
Scott
Scott, MIT Graduate
Category: Homework
Satisfied Customers: 3,040
3,040 Satisfied Customers
Experience: MIT Graduate (Math, Programming, Science, and Music)

Scott is online now

A new question is answered every 9 seconds

How JustAnswer works:

  • Ask an ExpertExperts are full of valuable knowledge and are ready to help with any question. Credentials confirmed by a Fortune 500 verification firm.
  • Get a Professional AnswerVia email, text message, or notification as you wait on our site. Ask follow up questions if you need to.
  • 100% Satisfaction GuaranteeRate the answer you receive.

JustAnswer in the News:

Ask-a-doc Web sites: If you've got a quick question, you can try to get an answer from sites that say they have various specialists on hand to give quick answers... Justanswer.com.
JustAnswer.com...has seen a spike since October in legal questions from readers about layoffs, unemployment and severance.
Web sites like justanswer.com/legal
...leave nothing to chance.
Traffic on JustAnswer rose 14 percent...and had nearly 400,000 page views in 30 days...inquiries related to stress, high blood pressure, drinking and heart pain jumped 33 percent.
Tory Johnson, GMA Workplace Contributor, discusses work-from-home jobs, such as JustAnswer in which verified Experts answer people’s questions.
I will tell you that...the things you have to go through to be an Expert are quite rigorous.

What Customers are Saying:

Wonderful service, prompt, efficient, and accurate. Couldn't have asked for more. I cannot thank you enough for your help.

Mary C.Freshfield, Liverpool, UK

This expert is wonderful. They truly know what they are talking about, and they actually care about you. They really helped put my nerves at ease. Thank you so much!!!!

AlexLos Angeles, CA

Thank you for all your help. It is nice to know that this service is here for people like myself, who need answers fast and are not sure who to consult.

GPHesperia, CA

I couldn't be more satisfied! This is the site I will always come to when I need a second opinion.

JustinKernersville, NC

Just let me say that this encounter has been entirely professional and most helpful. I liked that I could ask additional questions and get answered in a very short turn around.

EstherWoodstock, NY

Thank you so much for taking your time and knowledge to support my concerns. Not only did you answer my questions, you even took it a step further with replying with more pertinent information I needed to know.

RobinElkton, Maryland

He answered my question promptly and gave me accurate, detailed information. If all of your experts are half as good, you have a great thing going here.

DianeDallas, TX

< Previous | Next >

Meet the Experts:

LogicPro

LogicPro

Engineer

5,894 satisfied customers

Expert in Java C++ C C# VB Javascript Design SQL HTML

Manal Elkhoshkhany

Manal Elkhoshkhany

Tutor

4,556 satisfied customers

More than 5000 online tutoring sessions.

Linda_us

Linda_us

Finance, Accounts & Homework Tutor

3,138 satisfied customers

Post Graduate Diploma in Management (MBA)

Chris M.

Chris M.

M.S.W. Social Work

2,699 satisfied customers

Master's Degree, strong math and writing skills, experience in one-on-one tutoring (college English)

F. Naz

F. Naz

Chartered Accountant

2,194 satisfied customers

Experience with chartered accountancy

Bizhelp

Bizhelp

CPA

1,887 satisfied customers

Bachelors Degree and CPA with Accounting work experience

Seanna

Seanna

Tutor

1,781 satisfied customers

3,000+ satisfied customers, all topics, A+ work

< Previous | Next >

Related Homework Questions
Need help coding this Java program?! So i need help coding
Need help coding this Java program?!So i need help coding this program, i've done some but its pretty wrong. Theres comments in the java file itself on what each method should do (NOTE I CANNOT ADD/CH… read more
LogicPro
LogicPro
Engineer
Bachelor of Technology
5,894 satisfied customers
I call on your help once again. The professor isn't allow
I call on your help once again. The professor isn't allow much room for error. This assignment is due 11:59pm est… read more
LogicPro
LogicPro
Engineer
Bachelor of Technology
5,894 satisfied customers
I have a Java program problem. I am attaching a zip file
I have a Java program problem. I am attaching a zip file with the instructions, appropriate text file, and the GUI that I have completed. I would like this complete by 12/12 @ 10 PM .… read more
Ingo U
Ingo U
Master\u0027s Degree
358 satisfied customers
Write a Java application that uses a frame window and solves
Write a Java application that uses a frame window and solves the following problem. Write a java application program which will compute the average of five test scores , compute the average, assign a … read more
Expert
Expert
Im trying to create a class in java. I also need help with 2
Im trying to create a class in java. I also need help with 2 more assignments. I will get more specific once I get a response… read more
Ingo U
Ingo U
Master\u0027s Degree
358 satisfied customers
Need help with a implementing a RPN calculator. I have two
(Java) Postfixevaluator class. Need as soon as possible. Can pay more if needed Java Program. Im using Netbeans IDE 8.0 http://wikisend.com/download/279238/Complex.zip… read more
Ingo U
Ingo U
Master\u0027s Degree
358 satisfied customers
Java NetBeans, :( I need help!? Design, write in Java, test
Java NetBeans, :( I need help!? Design, write in Java, test and document a program for the following problem. 1.Write a program that invites the user to input an IP number in the dotted decimal notati… read more
LogicPro
LogicPro
Engineer
Bachelor of Technology
5,894 satisfied customers
write a program that takes in 2 integers (num1, num2). Divides
write a program that takes in 2 integers (num1, num2). Divides num1 by num 2 and shows the result and the remainder in java Note: Please upload the java source code file, do not paste it here.… read more
active1065
active1065
Bachelor
82 satisfied customers
You are developing a simple graphics package that will allow
You are developing a simple graphics package that will allow you to draw and manipulate simple geometric shapes such as squares, rectangles, etc. Your initial design is along the following lines: publ… read more
active1065
active1065
Bachelor
82 satisfied customers
Exercise P1.1. Write a program that prints the message, “Hello,
Exercise P1.1. Write a program that prints the message, “Hello, my name is Hal!” Then, on a new line, the program should print the message “What would you like me to do?” Then it's the user's turn to … read more
LogicPro
LogicPro
Engineer
Bachelor of Technology
5,894 satisfied customers
Biking - Write a program that inputs (& prints) the time (hours,
Biking - Write a program that inputs (& prints) the time (hours, minutes & seconds) and distance ridden (miles/kilometers) and outputs the average MPH.… read more
John
John
Software Engineer
509 satisfied customers
Write a Java application that allows a user to enter 10 numbers
Write a Java application that allows a user to enter 10 numbers (double precision) into an array and then sorts and displays the numbers from lowest to highest. You should use the Arrays.sort() method… read more
TheDoctor
TheDoctor
Software Engineer
Master\u0027s Degree
9 satisfied customers
**9.9 Write the HTML markup to create a form with the following capab
**9.9 Write the HTML markup to create a form with the following capabilities: a.A text widget to collect the user's name b.Four checkboxes, one each for the following items: i.Four 25-watt light bulbs… read more
TheDoctor
TheDoctor
Software Engineer
Master\u0027s Degree
9 satisfied customers
Problem 2: Write an interactive program that plays a game of
Problem 2: Write an interactive program that plays a game of hangman. Store the characters of the word to be guessed in an array of type char (you can do this during initialization of an array of char… read more
LogicPro
LogicPro
Engineer
Bachelor of Technology
5,894 satisfied customers
Hello, Im having a problem developing a simple java program
Hello, I'm having a problem developing a simple java program and I need help. I especially need an expert who can explain things in plain english rather than just technical language. The program so fa… read more
Eric M.
Eric M.
PhD Candidate
Master\u0027s Degree
66 satisfied customers
I need help with a simple java program. I am writing a program
I need help with a simple java program. I am writing a program where I have to calculate the interest rate for car loan based on a credit score. Can you help me? and how much I have to pay?… read more
Raj
Raj
SAP ABAP Consultant
Master\u0027s Degree
27 satisfied customers
how to write a guess the word C++ console program the program
how to write a guess the word C++ console program the program should have a hidden word stored internally. The ‘X's will represent the characters of the hidden word. The program user will guess one le… read more
unvadim
unvadim
Software Engineer
Diplom
5 satisfied customers
I need to create 2 classes, Polynomial and Lab3. This lab ...
I need to create 2 classes, Polynomial and Lab3. This lab will allow the user to enter in the coefficients for a polynomial function of degree 2. The user will then be asked to enter a number. The pro… read more
Scott
Scott
MIT Graduate
Master's Degree
3,040 satisfied customers
Disclaimer: Information in questions, answers, and other posts on this site ("Posts") comes from individual users, not JustAnswer; JustAnswer is not responsible for Posts. Posts are for general information, are not intended to substitute for informed professional advice (medical, legal, veterinary, financial, etc.), or to establish a professional-client relationship. The site and services are provided "as is" with no warranty or representations by JustAnswer regarding the qualifications of Experts. To see what credentials have been verified by a third-party service, please click on the "Verified" symbol in some Experts' profiles. JustAnswer is not intended or designed for EMERGENCY questions which should be directed immediately by telephone or in-person to qualified professionals.

Disclaimer: Information in questions, answers, and other posts on this site ("Posts") comes from individual users, not JustAnswer; JustAnswer is not responsible for Posts. Posts are for general information, are not intended to substitute for informed professional advice (medical, legal, veterinary, financial, etc.), or to establish a professional-client relationship. The site and services are provided "as is" with no warranty or representations by JustAnswer regarding the qualifications of Experts. To see what credentials have been verified by a third-party service, please click on the "Verified" symbol in some Experts' profiles. JustAnswer is not intended or designed for EMERGENCY questions which should be directed immediately by telephone or in-person to qualified professionals.

Show MoreShow Less

Ask Your Question

x