I'm Having A Problem With This Qbasic. Who Can Help? - Programming - Nairaland
Nairaland Forum › Science/Technology › Programming › I'm Having A Problem With This Qbasic. Who Can Help? (1654 Views)
| I'm Having A Problem With This Qbasic. Who Can Help? by Vectormike(op): 7:18am On Dec 19, 2016 |
Write a Qbasic program which reads the radius of a circle centered at the origin. then read in coordinate (x,y) of a point and determine if that point lies within a circle |
| Re: I'm Having A Problem With This Qbasic. Who Can Help? by fuckpro: 7:28am On Dec 19, 2016 |
Vectormike:... What software do u use in running it |
| Re: I'm Having A Problem With This Qbasic. Who Can Help? by Vectormike(op): 8:31pm On Dec 19, 2016 |
Qbasic na |
| Re: I'm Having A Problem With This Qbasic. Who Can Help? by francollimasso: 11:49am On Dec 20, 2016 |
should I use c# or javascript to solve it, it's been a while in qbasic |
| Re: I'm Having A Problem With This Qbasic. Who Can Help? by paranorman(m): 7:12pm On Dec 20, 2016 |
francollimasso: |
| Re: I'm Having A Problem With This Qbasic. Who Can Help? by paranorman(m): 7:13pm On Dec 20, 2016 |
francollimasso:please do and post the solution here. |
| Re: I'm Having A Problem With This Qbasic. Who Can Help? by Vectormike(op): 8:11pm On Dec 20, 2016 |
francollimasso:Yeah |
| Re: I'm Having A Problem With This Qbasic. Who Can Help? by Jolliano: 1:25pm On Dec 22, 2016 |
Vectormike:Do you need a version where the radius of the circle and coordinates of the point are entered by the user? Or a version that is graphic and involves diagrams? |
| Re: I'm Having A Problem With This Qbasic. Who Can Help? by francollimasso: 8:53pm On Dec 22, 2016 |
paranorman:saw your mention late, this is it using System; namespace circlegeometry { class Program { static void Main(string[] args) { int r, y, x, d2; Console.WriteLine("please enter the radius" ;r = int.Parse(Console.ReadLine()); Console.WriteLine("please enter the x coordinate" ;x = int.Parse(Console.ReadLine()); Console.WriteLine("please enter the y coordinate" ;y= int.Parse(Console.ReadLine()); d2 = (x ^ 2) + (y ^ 2); Console.WriteLine(d2 < (r ^ 2) ? "Lies within the circle" : " lies on or outside the circle" ;Console.WriteLine(); } } } |
| Re: I'm Having A Problem With This Qbasic. Who Can Help? by francollimasso: 8:55pm On Dec 22, 2016 |
Vectormike:nairaland has introduced emoticon to my code, who send nairaland |
| Re: I'm Having A Problem With This Qbasic. Who Can Help? by Vectormike(op): 5:07pm On Dec 23, 2016 |
Jolliano:The user enters the radius |
| Re: I'm Having A Problem With This Qbasic. Who Can Help? by Vectormike(op): 5:08pm On Dec 23, 2016 |
francollimasso:Thanks so much. lol. I still got it. |
| Re: I'm Having A Problem With This Qbasic. Who Can Help? by Jolliano: 7:49am On Dec 26, 2016 |
Vectormike:PRINT "Welcome" INPUT "Enter the radius of the circle"; r INPUT "The X-cordinate of the point"; x INPUT "The Y-cordinate of the point"; y L = (x ^ 2) + (y ^ 2) - (r ^ 2) IF (L > 0) THEN PRINT "This point lies outside the circle." ELSE PRINT "The point lies inside the circle" |
Please Help With This QBASIC Question • Qbasic Programmers SOLVE THIS QUESTIONS • Can Someone Help Me With This Qbasic? • 2 • 3 • 4
Irotvmobile App...used In Watching Cinemas Nollywood • Nairaland, Pls I Need Help, I Want To Learn Programming Lagos If Free Or Cheap • Good Programmer Is Needed
;