Homework

Homework

# Create a QBasic program that a numeric value and return the

number of thousand,hundred,tens and units...
Create a QBasic program that a numeric value and return the number of thousand,hundred,tens and units it contained.
the numeric value entered must be between 0 and 99999 inclusive.
Show More
Show Less
1/22/2013
Category: Homework
Satisfied Customers: 1,890
Experience: Inner-city high school substitute teacher. Degrees in mathemetics, accounting, and education. Years and years of tutoring.
Verified

Ray Atkinson :

I want to make sure I understand. You want to have the user input a number and have the program return the number of thousands, the number of hundreds, the number of tens, and the number of ones?

Customer:

so please work out an example for me. let say:

Customer:

INPUT:12000

Customer:

OUTPUT:

Customer:

Thousand: 12

Customer:

how wilthe program look like?

Ray Atkinson :

Do you want it to say "Hunderds: 0" or suppress it?

Ray Atkinson :

should it catch if the number is XXXXX an integer?

Customer:

pls both if u don't mind

Ray Atkinson :

Not a problem.

Ray Atkinson :

Do you want me to explain the run of the program, or just type it up?\

Customer:

type it then explain

Ray Atkinson :

Ok, give me a couple minutes, and I will type up a word file.

Customer:

ok i will be waiting

Ray Atkinson :

start: Input x

if x<0 or x>99999 or x<>int(x) then goto start

q=int(x/1000): if q>0 then print “Thousands:”; q: x=x-1000*q

q=int(x/100): if q>0 then print “Hundreds:”;q: x=x-100*q

q= int(x/10): if >0 then print “Tens:”; q: x=x-10*q

if x>0 then print “Ones:”; x

Ray Atkinson :

The first line puts a label and asks for input

Customer:

ok

Ray Atkinson :

the second catches negative number, numbers that are too large, and non-integers

Ray Atkinson :

the next line calls the number of thousands Q and prints how many there are, and reduces x by that many thousands.

Ray Atkinson :

the next lines do the same for hundreds, tens, and ones.

Ray Atkinson :

oops. I missed a q on the "tens" line.

Customer:

ok

Ray Atkinson :

I'm sure you can make it look fancier with a message of some kind on line 2 and some more wording with the messages, of you wanted.

Ray Atkinson :

You also probably want a better prompt for the user than just a ? for them to input the number.

Customer:

ok so basically am am i doing a division operation?

Ray Atkinson :

I just gave the skeleton on the program.

Customer:

yeah i konw

Ray Atkinson :

"int" returns the integer of a division problem.

Customer:

thanks let me work my way around it and get back to u should i not get something.

Ray Atkinson :

If you start with a number like 14358, the first line divides that by 1000, gets 14.358 and int makes it 14.

Ray Atkinson :

it prints the 14, and then takes 14*1000 away from x, so 14358-14000=358

Ray Atkinson :

Hmmm. You don't want it to say that there are 143 hundreds in that example, so you?

Ray Atkinson :

You want 14 thousands, 3 hundred, 5 tens, and 8 ones, right?

Customer:

yes

Ray Atkinson :

oh, good. I w2as afraid I misunderstood.

Ray Atkinson :

I will be here most of the day if you have any questions. When you are satisfied, please remember to rate my answer.

Customer:

so x is what the person will input right

Ray Atkinson :

yes.

Category: Homework
Satisfied Customers: 1,890
Experience: Inner-city high school substitute teacher. Degrees in mathemetics, accounting, and education. Years and years of tutoring.
Verified
Can you not see the solution above?

start: Input x

if x<0 or x>99999 or x<>int(x) then goto start

q=int(x/1000): if q>0 then print "Thousands:"; q: x=x-1000*q

q=int(x/100): if q>0 then print "Hundreds:";q: x=x-100*q

q= int(x/10): if >0 then print "Tens:"; q: x=x-10*q

if x>0 then print "Ones:"; x

Customer reply replied 4 years ago

thanks so much

You are quite welcome. I'm glad I could help.
Customer reply replied 4 years ago

hi good day

Category: Homework
Satisfied Customers: 1,890
1,890 Satisfied Customers
Experience: Inner-city high school substitute teacher. Degrees in mathemetics, accounting, and education. Years and years of tutoring.

Ray Atkinson is online now

A new question is answered every 9 seconds

• 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.

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.
...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

Engineer

5,672 satisfied customers

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

Manal Elkhoshkhany

Tutor

4,549 satisfied customers

More than 5000 online tutoring sessions.

Linda_us

Finance, Accounts & Homework Tutor

3,138 satisfied customers

Post Graduate Diploma in Management (MBA)

Chris M.

M.S.W. Social Work

2,635 satisfied customers

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

F. Naz

Chartered Accountant

2,158 satisfied customers

Experience with chartered accountancy

Bizhelp

CPA

1,887 satisfied customers

Bachelors Degree and CPA with Accounting work experience

Seanna

Tutor

1,781 satisfied customers

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

< Previous | Next >

Related Homework Questions
Describe what happens "behind the scenes" as you perform
Describe what happens "behind the scenes" as you perform normal operations such as starting a program or application, opening a file, saving a file, and printing a document. Describe (high-level) the … read more
Dr. Donna Kakonge
Doctor of Education
189 satisfied customers
HEALTH, SAFETY, AND NUTRITION FOR THE CHILD 605844RR -
HEALTH, SAFETY, AND NUTRITION FOR THE YOUNG CHILD 605844RR - Preventing Illness and Injuries When you have completed your exam and reviewed your answers, click Submit Exam. Answers will not be recorde… read more
GLENN
Master of Mathematics
330 satisfied customers
FOR Discussion Question 1 • Due Date: Day 2 [post to the
FOR ANGELA Discussion Question 1 • Due Date: Day 2 [post to the Main forum] • Post your response to this question: Consider the statement “psychology has a long past but a short history.” What do you … read more
Seanna
Tutor
1,781 satisfied customers
When I open a word document it has a character string 20 and
When I open a word document it has a character string 20 and places that character after I type each line. This is just a recent problem and. How can have work not insert that character?… read more
F. Naz
Chartered Accountant
CA Finalist & Completed B.com
2,158 satisfied customers
I need help regarding javascript with custom objects and
I need help regarding javascript with custom objects and constructors. I am having trouble calling an onclick function in a form to an array.… read more
LogicPro
Engineer
Bachelor of Technology
5,672 satisfied customers
Fiscal restraint is defined as: a. Tax hikes or spending
Fiscal restraint is defined as: a. Tax hikes or spending cuts intended to reduce aggregate demand. b. Tax hikes or spending cuts intended to increase aggregate demand. c. Tax cuts or spending hikes in… read more
Chris M.
M.S.W. Social Work
Master's Degree
2,635 satisfied customers
Explain the types purpose and function of materials and
Explain the types purpose and function of materials and equipment needed for the administration of medication via the different routes … read more
Dr. Donna Kakonge
Doctor of Education
189 satisfied customers
This week you'll be making the following refinements to the
This week you'll be making the following refinements to the class that you wrote in the last assignment. All the requirements from that class are still in force. For example, all MyStrings must always… read more
LogicPro
Engineer
Bachelor of Technology
5,672 satisfied customers
I have a couple of basic java questions i need answered.
I have a couple of basic java questions i need answered … read more
LogicPro
Engineer
Bachelor of Technology
5,672 satisfied customers
The Use case diagram for a tracking system using clusters of
The Use case diagram for a tracking system using clusters of sensors. I am now in phase 3 and I did all the documentation but I need to deeply understand the logic behind the IoT to proceed correctly … read more
Dr. Donna Kakonge
Doctor of Education
189 satisfied customers
I asked a question and will pay but the site asks me to
hi i asked a question and will pay but the site asks me to verify an ammount below 200 usd which i want to but it does not give me the option to do so, please help… read more
GLENN
Master of Mathematics
330 satisfied customers
Which if the following is not included unpaid-in capital?
which if the following is not included unpaid-in capital? common stock pain-in capital-donations stock dividend distributable appropriation per loan agreement … read more
F. Naz
Chartered Accountant
CA Finalist & Completed B.com
2,158 satisfied customers
A rifle with a longer barrel can fire bullets with a larger
A rifle with a longer barrel can fire bullets with a larger velocity than a rifle with a shorter barrel. A. Explain this using the impulse momentum theorem B. Explain this using the work energy theore… read more
GLENN
Master of Mathematics
330 satisfied customers
This question is just for Dr. Kakonge. This purpose is to
Hello. This question is just for Dr. Donna Kakonge.This purpose is to pay the payment to Dr. Donna Kakonge on 06/16/2017 again because of something wrong about payment on 06/16/2017.The question on 06… read more
Dr. Donna Kakonge
Doctor of Education
189 satisfied customers
On Excel contour map want to: 1) rotate series 180 degrees
On Excel contour map want to: 1) rotate series 180 degrees but not category 2) edit series name for all 3) edit legend 4) fill in colour boxes 5) change colour boxes to meet colorirmetric convention.… read more
Dr. Donna Kakonge
Doctor of Education
189 satisfied customers
I need to get an answer of the case Conveyor Belt Project.
I need to get an answer of the case Conveyor Belt Project … read more
Dr. Donna Kakonge
Doctor of Education
189 satisfied customers
Where is the status bar? Im so sorry to be in a rush but if
where is the status bar? Im so sorry to be in a rush but if i fail my exam i have to redo my year … read more
The-PC-Guy
Bachelor\u0027s Degree
628 satisfied customers
A recent survey found that 73% of all adults over 50 wear
A recent survey found that 73% of all adults over 50 wear sunglasses for driving. In a random sample of 20 adults over 50, what is the mean and standard deviation of those that wear sunglasses?… read more
Dr. Donna Kakonge
Doctor of Education
189 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