Alice Community Chapter 10, Exercise 8

 Chapter 10, Exercise 8
 tgarner Junior Member   Status: Offline Posts: 1 Join Date: Mar 2013 Chapter 10, Exercise 8 - 03-23-2013, 08:26 PM I really have no idea how to do this...does anyone else know
 Scary math stuff.
chickentree
Super Moderator

Status: Offline
Posts: 250
Join Date: Dec 2012
Location: Frosno, Ca
Scary math stuff. - 03-26-2013, 08:46 AM

Quote:
 Originally Posted by tgarner I really have no idea how to do this...does anyone else know
The first suggestion I would usually give is to find out what you don't understand and then research it until you do. In this case the problem doesn't give you much to go on. If you have not been exposed to the quadratic equation you would rightly be at a lost.
Fear not, little understanding of the quadratic equation is necessary for our purposes and Alice has to do the math!
If you look at the Discriminant Wiki it will tell you all you need to know in the first couple of paragraphs. The discriminant is the stuff under the square root sign "b^2 - 4ac" where b^2 is b squared or b * b. and there are three cases:
1. The result is positive - there are two answers.
2. The result is zero - There is one answer.
3. The result is negative - There are no answers.
This means YOUR problem boils down to:
1. Get three numbers from the user.
2. Use the numbers to determine the discrimant, using the formula above.
3. Test the discriminant to see how many answers there are.
4. Use the qudratic formula to compute the answers, if needed.

Hope this is enough to get you going and good luck
Mark

 Thread Tools Display Modes Linear Mode

 Posting Rules You may not post new threads You may not post replies You may not post attachments You may not edit your posts BB code is On Smilies are On [IMG] code is On HTML code is Off Forum Rules
 Forum Jump User Control Panel Private Messages Subscriptions Who's Online Search Forums Forums Home Announcements     Community News and Announcements Alice 3     How Do I?     Works In Progress     Share Your World     Share Custom Classes     Bugs and Trouble Shooting     Suggestion Box Alice 2     How do I...?     Works-In-Progress     Share Worlds     Share Objects     Bugs and Troubleshooting     Suggestion Box Educators     Teaching with Alice     Teaching Using Alice 3     Teaching Using Alice 2     CS Principles and Alice     AP CSA and Intro to Java and Alice     Workshops General Discussion     Questions and Comments     The Lounge