Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / New
Stats: 3,207,117 members, 7,997,901 topics. Date: Friday, 08 November 2024 at 08:26 PM

Please I Need Your Help On These Questions - Education - Nairaland

Nairaland Forum / Nairaland / General / Education / Please I Need Your Help On These Questions (664 Views)

Help Me Solve These Questions / Helping My Son Prepare For Common Entrance...help With These Questions / Who Can Answer These Questions? (2) (3) (4)

(1) (Reply) (Go Down)

Please I Need Your Help On These Questions by Punctual(m): 11:21am On Nov 03, 2017
To the programmers in the house,I need an answer to these qbasic questions

1) Given the following set of numbers 4,1,2,3,6,8,-4 and 9. Write a program that find the smallest and the largest out of the on numbers

2)Write a program to get the volume of a sphere
Re: Please I Need Your Help On These Questions by Okiem(m): 7:45am On Nov 04, 2017
These questions are very simple. I can help with the flowchart
Re: Please I Need Your Help On These Questions by Punctual(m): 10:56am On Nov 04, 2017
Okiem:
These questions are very simple. I can help with the flowchart


Not the flowchart,can you help me with it in qbasic?
Re: Please I Need Your Help On These Questions by megasamuel(m): 10:59am On Nov 04, 2017
Punctual:
To the programmers in the house,I need an answer to these qbasic questions

1) Given the following set of numbers 4,1,2,3,6,8,-4 and 9. Write a program that find the smallest and the largest out of the on numbers

2)Write a program to get the volume of a sphere
I can't write in qbasic but could give a breakdown of the algorithm..
Then u can write in qbasic
Re: Please I Need Your Help On These Questions by Punctual(m): 11:35am On Nov 04, 2017
megasamuel:

I can't write in qbasic but could give a breakdown of the algorithm..
Then u can write in qbasic
I'll gladly appreciate that,
Thanks in anticipation
Re: Please I Need Your Help On These Questions by megasamuel(m): 1:44pm On Nov 04, 2017
Punctual:

I'll gladly appreciate that,
Thanks in anticipation
This won't be a typical algorithm, I'll try to explain
I'll be using integers 1,2,3 for examples
...
STEP 1: let Smallest(variable) =0
Let Largest(variable) = 0
STEP 2 : create an array of the integers
example : (java) ints [] a = new ints[]
a[0] = 1..etc
STEP 3 : create a loop to read through the all in integers in the array
example (java) = for( i=0; i<a.lenght-1; i++)
Int i (this is the index of the integers in the array i
Believe u know about those)
STEP 4 : Create a loop for getting the largest ;this would be done by updating the value of largest(variable) if it is greater than the current Vallue(remember we're checking all the values so this part should be in the loop in step3)
Example sadjava) if (a[i] > largest)
{largest = a[i]
STEP 5 : create a similar loop for smallest
STEP 6 : print largest and smallest

If it's not understood u can take the post to the programming section where someone can write the code in qbasic for you
Re: Please I Need Your Help On These Questions by megasamuel(m): 1:52pm On Nov 04, 2017
Punctual:
To the programmers in the house,I need an answer to these qbasic questions

1) Given the following set of numbers 4,1,2,3,6,8,-4 and 9. Write a program that find the smallest and the largest out of the on numbers

2)Write a program to get the volume of a sphere
STEP 1: Input R(radius) (variable)
STEP 2: Read A = 4/3 × 3.14 × R×R ×R
STEP 3: Print A
Re: Please I Need Your Help On These Questions by Okiem(m): 3:38pm On Nov 04, 2017
Punctual:


Not the flowchart,can you help me with it in qbasic?
I have forgotten how codes are written in basic,however, I can help you answer these questions using another programming language.
Re: Please I Need Your Help On These Questions by Punctual(m): 3:28am On Nov 06, 2017
megasamuel:

STEP 1: Input R(radius) (variable)
STEP 2: Read A = 4/3 × 3.14 × R×R ×R
STEP 3: Print A

Thanks alot bro,really appreciate this
Re: Please I Need Your Help On These Questions by Punctual(m): 3:29am On Nov 06, 2017
megasamuel:

This won't be a typical algorithm, I'll try to explain
I'll be using integers 1,2,3 for examples
...
STEP 1: let Smallest(variable) =0
Let Largest(variable) = 0
STEP 2 : create an array of the integers
example : (java) ints [] a = new ints[]
a[0] = 1..etc
STEP 3 : create a loop to read through the all in integers in the array
example (java) = for( i=0; i<a.lenght-1; i++)
Int i (this is the index of the integers in the array i
Believe u know about those)
STEP 4 : Create a loop for getting the largest ;this would be done by updating the value of largest(variable) if it is greater than the current Vallue(remember we're checking all the values so this part should be in the loop in step3)
Example sadjava) if (a[i] > largest)
{largest = a[i]
STEP 5 : create a similar loop for smallest
STEP 6 : print largest and smallest

If it's not understood u can take the post to the programming section where someone can write the code in qbasic for you

Re: Please I Need Your Help On These Questions by Punctual(m): 3:30am On Nov 06, 2017
megasamuel:

This won't be a typical algorithm, I'll try to explain
I'll be using integers 1,2,3 for examples
...
STEP 1: let Smallest(variable) =0
Let Largest(variable) = 0
STEP 2 : create an array of the integers
example : (java) ints [] a = new ints[]
a[0] = 1..etc
STEP 3 : create a loop to read through the all in integers in the array
example (java) = for( i=0; i<a.lenght-1; i++)
Int i (this is the index of the integers in the array i
Believe u know about those)
STEP 4 : Create a loop for getting the largest ;this would be done by updating the value of largest(variable) if it is greater than the current Vallue(remember we're checking all the values so this part should be in the loop in step3)
Example sadjava) if (a[i] > largest)
{largest = a[i]
STEP 5 : create a similar loop for smallest
STEP 6 : print largest and smallest

If it's not understood u can take the post to the programming section where someone can write the code in qbasic for you

I found it helpful.
Thanks

(1) (Reply)

Shocking: See Some Of The Simple Questions Failed By Kaduna Teachers / Differences Between Jamb Admission And School Admission. / Do My Assignment Online

(Go Up)

Sections: politics (1) business autos (1) jobs (1) career education (1) romance computers phones travel sports fashion health
religion celebs tv-movies music-radio literature webmasters programming techmarket

Links: (1) (2) (3) (4) (5) (6) (7) (8) (9) (10)

Nairaland - Copyright © 2005 - 2024 Oluwaseun Osewa. All rights reserved. See How To Advertise. 24
Disclaimer: Every Nairaland member is solely responsible for anything that he/she posts or uploads on Nairaland.