Programming

Programming questions? Ask a programmer for answers ASAP

Ask a Computer Expert,
Get an Answer ASAP!

Okay so i have to write a program that prompts someone to…

Customer Question
Okay so i have...

Okay so i have to write a program that prompts someone to enter in the weight of an object in grams, then gives back how many of each weight (100gm, 50gm, 20gm, 10gm, 5gm, 2gm, 1gm) that would match the weight on a balance.

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

Java 8

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

I know how to prompt for someone to enter in a weight of the object, I'm just struggling on how I can get it to compute back how many of each weight are needed.

Submitted: 11 months ago.Category: Programming
Show More
Show Less
Ask Your Own Programming Question
Answered in 2 hours by:
9/18/2017
Programmer: LogicPro, Computer Software Engineer replied 11 months ago
LogicPro
LogicPro, Computer Software Engineer
Category: Programming
Satisfied Customers: 13,509
Experience: Expert in C, C++, Java, DOT NET, Python, HTML, Javascript, Design.
Verified
Hi
Ask Your Own Programming Question
Was this answer helpful?

How JustAnswer works

step-image
Describe your issueThe assistant will guide you
step-image
Chat 1:1 with a programmerLicensed Experts are available 24/7
step-image
100% satisfaction guaranteeGet all the answers you need
Ask ATLPROG Your Own Question
ATLPROG
ATLPROG
ATLPROG, Computer Software Engineer
Category: Programming
Satisfied Customers: 7,677
7,677 Satisfied Customers
Experience: MS in IT.Several years of programming experience in Java C++ C C# Python VB Javascript HTML

ATLPROG 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:

My Expert answered my question promptly and he resolved the issue totally. This is a great service. I am so glad I found it I will definitely use the service again if needed.

One Happy CustomerNew York

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

< Previous | Next >

Meet the Experts:

ATLPROG

ATLPROG

Computer Software Engineer

7,677 satisfied customers

MS in IT.Several years of programming experience in Java C++ C C# Python VB Javascript HTML

LogicPro

LogicPro

Computer Software Engineer

13,509 satisfied customers

Expert in C, C++, Java, DOT NET, Python, HTML, Javascript, Design.

unvadim

unvadim

Computer Software Engineer

1,168 satisfied customers

Good knowledge of OOP principles. 3+ years of programming experience with Java and C++. Sun Certified Java Programmer 5.0.

lifesaver

lifesaver

Computer Software Engineer

950 satisfied customers

Several years of intensive programming and application development experience in various platforms.

ehabtutor

ehabtutor

Computer Software Engineer

936 satisfied customers

Bachelor of computer science, 5+ years experience in software development, software company owner

TheDoctor

TheDoctor

Software Engineer

893 satisfied customers

M.S. in Internet Information Systems

The-PC-Guy

The-PC-Guy

Software Engineer

848 satisfied customers

Extensive Knowledge in PHP, MYSQL, CSS & Javascript

< Previous | Next >

Related Programming Questions
- Defining Diagram – 10 points - Hierarchy Chart – 10 points - Pseudo
- Defining Diagram – 10 points - Hierarchy Chart – 10 points - Pseudo Code – 20 points - Running Java Program Your younger sister has just been hired at PapaJohns and for a first task, she has been as… read more
LogicPro
LogicPro
Computer Software Engineer
13,509 satisfied customers
I need help with this program, my code is not compiling and
I need help with this program, my code is not compiling and it is terrible. I don't know what I am doing. Here is what I need the program to do. It is for Java and we use Netbeans. This is a gui progr… read more
LogicPro
LogicPro
Computer Software Engineer
13,509 satisfied customers
I have a java program that took user input on object weight
I have a java program that took user input on object weight and converted it from earth weight to other planetary values. I now need to modify the code to give an error message if an object is greater… read more
unvadim
unvadim
Computer Software Engineer
Diplom
1,168 satisfied customers
need to write a conversion code to convert ounces to grams,
need to write a conversion code to convert ounces to grams, grams to pounds, pounds to kiliograms, tons to mega tons, then convert each back, eg. "ounces to grams, grams to ounces. im a student. wrote… read more
ATLPROG
ATLPROG
Computer Software Engineer
Master's Degree
7,677 satisfied customers
You must create two Java files. One is called FriedmanMatthewWeek6Prog.java,
You must create two Java files. One is called FriedmanMatthewWeek6Prog.java, and the other is called Hamster.java. Hamster.java Class File 1. Create a new class called Hamster that includes the functi… read more
LogicPro
LogicPro
Computer Software Engineer
13,509 satisfied customers
Directions Points You must create two Java files. One
Directions Points You must create two Java files. One is called LastNameFirstNameWeek6Prog.java, and the other is called Hamster.java. Ensure you include ALL files required to make your program compil… read more
LogicPro
LogicPro
Computer Software Engineer
13,509 satisfied customers
Hello again. Here is the next change request. I was wondering
Hello again. Here is the next change request. I was wondering if it would be easy to tie this project's code in with the previous code so that I am not turning in a different set of code every time? I… read more
jatechexpert
jatechexpert
Master\u0027s Degree
1 satisfied customers
For ATLProg only Write a program that reads in a weight
For ATLProg only: Write a program that reads in a weight in pounds and ounces and outputs the equivalent weight in kilograms and grams. Use at least three functions: one for input, one or more for cal… read more
ATLPROG
ATLPROG
Computer Software Engineer
Master's Degree
7,677 satisfied customers
Question 1 Bank Account Management System Consider the modified
Question 1: Bank Account Management System: Consider the modified bank account class posted. You need to write program that create 5 BankAccount object instances and store them in an array. First prog… read more
ATLPROG
ATLPROG
Computer Software Engineer
Master's Degree
7,677 satisfied customers
Question 1 Bank Account Management System Consider the modified
Question 1: Bank Account Management System: Consider the modified bank account class posted. You need to write program that create 5 BankAccount object instances and store them in an array. First prog… read more
jatechexpert
jatechexpert
Master\u0027s Degree
1 satisfied customers
1. Definition and Objectives of the Phases of Testing your
1. Definition and Objectives of the Phases of Testing – your plan should answer the following questions: What kind of testing will be done. Options include System Testing, Integration Testing, Systems… read more
jatechexpert
jatechexpert
Master\u0027s Degree
1 satisfied customers
JAVA Below is the question I added what I have done after
JAVA Below is the question: I added what I have done after the assignment. If you could correct it, rewrite it or whatever I would be greatful. But whatever you do, could you explain to me why so I ca… read more
ATLPROG
ATLPROG
Computer Software Engineer
Master's Degree
7,677 satisfied customers
I have to write a program in java belonging to inheritance. The
I have to write a program in java belonging to inheritance. The problem is as given below : ================================================================================= Create a class named Packa… read more
LogicPro
LogicPro
Computer Software Engineer
13,509 satisfied customers
I am taking a class on line and need help writing a pseudocode
I am taking a class on line and need help writing a pseudocode for a program that calculates the gown size that students need for a graduation ceremony. The program accepts as input a student's height… read more
ehabtutor
ehabtutor
Computer Software Engineer
Bachelor's Degree
936 satisfied customers
Complete SR-mf-003 Change Request 7. Insert comments to document
Complete SR-mf-003 Change Request 7. Insert comments to document the program. (PRG/421) I need to complete this assignment in the next two hours or else I will fail my class...My father passed away so… read more
LogicPro
LogicPro
Computer Software Engineer
13,509 satisfied customers
I need some help with writing a program for change request
I need some help with writing a program for change request #8-11. If someone could help I would appreciate it. I am new at C++ and have no clue. HELP! Service Request SR-mf-003 Mortgage Payment Calcul… read more
Kevin Bui
Kevin Bui
Software Developer
Bachelor\u0027s Degree
108 satisfied customers
You are expected to turn in only one program (file) with
• You are expected to turn in only one program (file) with 3 different classes. • Your programs will be graded using the following criteria: ? Documentation ? User-friendliness (menus, command prompts… read more
Raj
Raj
SAP ABAP Consultant
Master\u0027s Degree
27 satisfied customers
PSEUDOCODE NEEDED IMMEDIATELY FOR CLASS, PLEASE HELP
I am taking a class on line and need help writing a pseudocode for a program that calculates the gown size that students need for a graduation ceremony. The program accepts as input a student's height… read more
Todd
Todd
Bachelor\u0027s Degree
396 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