Computers & Internet Logo

Related Topics:

Posted on Dec 11, 2010
Answered by a Fixya Expert

Trustworthy Expert Solutions

At Fixya.com, our trusted experts are meticulously vetted and possess extensive experience in their respective fields. Backed by a community of knowledgeable professionals, our platform ensures that the solutions provided are thoroughly researched and validated.

View Our Top Experts

Write a program that accepts two numbers a and b and divides a by b and displays the quotient and the remainder..

2 Answers

Jose Pino

Level 3:

An expert who has achieved level 3 by getting 1000 points

All-Star:

An expert that got 10 achievements.

MVP:

An expert that got 5 achievements.

Vice President:

An expert whose answer got voted for 100 times.

  • Master 563 Answers
  • Posted on Dec 11, 2010
Jose Pino
Master
Level 3:

An expert who has achieved level 3 by getting 1000 points

All-Star:

An expert that got 10 achievements.

MVP:

An expert that got 5 achievements.

Vice President:

An expert whose answer got voted for 100 times.

Joined: Oct 27, 2008
Answers
563
Questions
0
Helped
133177
Points
1604

BASIC

a = 0
b = 0
c = 0
input "First number "; a
input "Second number "; b
c = int ( a / b )
d = ( a / b ) - c
print "Quotient: "; c
print "Remainder: "; d
end

Anonymous

Level 1:

An expert who has achieved level 1.

  • Contributor 1 Answer
  • Posted on Jan 02, 2013
Anonymous
Contributor
Level 1:

An expert who has achieved level 1.

Joined: Jan 02, 2013
Answers
1
Questions
0
Helped
318
Points
0

Write a program that accepts two numbers a and b and divides a by b and
displays the quotient and the remainder

Ad

Add Your Answer

×

Uploading: 0%

my-video-file.mp4

Complete. Click "Add" to insert your video. Add

×

Loading...
Loading...

Related Questions:

0helpful
2answers
0helpful
1answer

Use compatible numbers to find two estimate that the quotient is between 1,624 divided by 3

Hi Tammy:
Here's what I would do.
1) 1500 divided by 3 equals 500
that would leave 124
2) 120 divided by 3 equals 40
That leaves 4
3) 4 divided by 3 equals 1
with 1 remaining.
putting the quotients together you get 541
with 1 remaining.
All can be done mentally with no calculator and basic multiplication tables that most school children memorize.

Is this what you were looking for?
Cheerfuls.
0helpful
1answer

What is the answer to 27 divided by 9 in quotient

27 divided by 9 is 3.
The quotient of 27 and 9 is 3.
0helpful
1answer

How come i dont get the right answer for example 120 divided by tan68 = -58 instead of 45?

Make sure your calculator is set to the desired angular mode.

The quotient of 120 divided by the tangent of 68 radians is about -58.82, as your calculator is giving you.
The quotient of 120 divided by the tangent of 68 degrees is about 48.48 . The quotient of 120 divided by the tangent of 68 grads is about 65.97 .
0helpful
1answer

When a number is divided by 6, the remainder is 5.

There are an infinite number of numbers that qualify. The smallest such positive number is 125. The next such number is 251.
0helpful
1answer

Remainder

The quotient is easy. Since the calculator drops any fractional portion when in base mode, simply do the division. For example, to get the quotient of 5 and 3, divide 5 by 3 and see 1.
The remainder is a bit harder. Subtract the product of the quotient and the divisor from the dividend. For example, to get the remainder of 5 and 3, first calculate the quotient as above. Then subtract 1*3 from 5 and see 2.
1helpful
1answer

How to find remainder as a solution in CASIO fx991ES

Finding the remainder from a division calculation is often referred to as using the MOD function, though this isn't available directly on the fx-991ES.
To obtain the remainder, for example when dividing 10 by 7, you can only divide 7 into 10 once, leaving a remainder of 3.
For larger numbers, eg when dividing 389487 by 31 (equivalent to 389487MOD31) the division gives an answer of 12564.09677 (on the display), however you only want the fractional part so subtract 12564 to give 0.0967741935 . This includes the lower value digits that were previously hidden. Then multiply this result by 31 which gives 2.999999999 on the display. Since the result of a MOD or remainder calculation involving integers has to be a whole number, the answer needs to be rounded to 3. If the answer doesn't easily round to a whole number, it is likely that you have gone beyond the calculator's working capacity.
An alternative method which avoids the rounding of the fractional part is to take the integer part of the first result (12564) and multiply it by 31 to get 389484, then subtract this from 389487, giving the answer of 3.
4helpful
1answer

Program that will accepts 2 numbers and will display the sum,difference,product and quotient by the use of flow chart?

You can do this pretty easily in a spreadsheet program such as excel, open office or numbers on a mac. Simply use two cells for the numbers you would like as an input and then input formulas for the sum, difference, product and quotient in 4 other cells. Examples:

(This assumes you use A1 and B1 to hold your input numbers)
For sum you would input the formula: =A1+B1
For difference: =A1-B1
For product: =A1*B1
For quotient: =A1/B1

To get this into a flowchart simply go into "Insert > Chart" and select the chart you want to use with the correct options.

I hope this helps, if it does, please give a thumbs up!
1helpful
1answer

What is base 6 of 486

for converting 486 to the base 10 to base 6 dived 486 by 6 and note the quotients and remainder.


486/6 = quotient = 81 remainder = 0.now divide quotient by 6 and note quotient and remainder.

81/6 = quotient 13 remainder= 3

13/6 = quotient 2 remainder = 1 .

2/6 = quotient 0 remainder= 2.


Hence reading remainder from below we get 2130.



So 486 tot he base 10 is equivalent to 2130 to the base 6.

Thank you.
Not finding what you are looking for?

328 views

Ask a Question

Usually answered in minutes!

Top Computers & Internet Experts

Grand Canyon Tech
Grand Canyon Tech

Level 3 Expert

3867 Answers

Brad Brown

Level 3 Expert

19187 Answers

Cindy Wells

Level 3 Expert

6688 Answers

Are you a Computer and Internet Expert? Answer questions, earn points and help others

Answer questions

Manuals & User Guides

Loading...