Quadratic Equation Solver Tutorial. Introduction We will be making an app to solve 2 nd level polynomials like ax 2 +bx+c. We will model our app upon.

Slides:



Advertisements
Similar presentations
Spreadsheet Vocabulary
Advertisements

Introduction to FX Equation 4. The Basic Idea FX Equation is DIFFERENT. Most equation editors use a point and click interface that has you searching for.
Microsoft Excel. Click on “Start,” then “Microsoft Office Excel.”
Introduction to Microsoft Excel 2010 Chapter Extension 3.
Formulas and Functions. Type Data Into Spreadsheet ◦Open Excel ◦Create Blank Workbook ◦Type data shown as in example ◦ To get 2 lines in a cell ◦Type.
Making Grids This document shows you one way to make grids in PowerPoint. I prefer this way over PowerPoint’s built in grid because I can make my grids.
Microsoft Excel Computers Week 4.
Collin College Excel Exam Review. True In Excel worksheets, rows are designated using numbers while columns are designated using letters.
AoN Session 2. Highlight a number of cells at the top of the page. Then with the cursor over these cells right click. Scroll down to the format cell.
Click here to enter. Click a menu option to view more details Starters Main Courses Desserts Click on the coffee cup to return when Navigating For Vocabulary.
Science Fair Help Use this file to look up how to use PowerPoint and Excel for your Science Fair project. Two ways to switch to SLIDE SHOW 1.Click the.
Excel Web App By: Ms. Fatima Shannag.
1 Create a Questionnaire Learning Objective  To learn how to use the features in Microsoft Publisher to create a questionnaire.
Section 1.5 Quadratic Equations
Programing App Inventor. Variable Declaration App Inventor: Declare Variables using the “Define Variable As” Block – Find the Blocks Editor (top-left),
Android Apps: Building Blocks Module 6, Intro to I.T., Fall 2011 Sam Scott.
Microsoft Excel. Excel specializes in creating and designing spreadsheets, or worksheets Worksheet – area to insert data Workbook – a set of worksheets.
Microsoft Excel By: Dr. K.V. Vishwanath Professor, Dept. of C.S.E,
European Computer Driving Licence Syllabus version 5.0 Module 4 – Spreadsheets Chapter 22 – Functions Pass ECDL5 for Office 2007 Module 4 Spreadsheets.
Quadratic Equations By Dr. Carol A. Marinas. Solving Equations In the previous section, we solved LINEAR equations. This means that the highest exponent.
Nonvisual Arrays and Recursion by Chris Brown under Prof. Susan Rodger Duke University June 2012.
Algebra 2/Trig Midterm review. Solve and graph equations and inequalities Radical equations:
Excel. MSBCS-BCSI-9: Students will develop and apply basic spreadsheet skills. a) Identify and explain basic spreadsheet terminology (cell, column, row,
Microsoft Excel. Excel specializes in creating and designing spreadsheets, or worksheets Worksheet – area to insert data Workbook – a set of worksheets.
Class 2: College Algebra Objectives  Solve Quadratic equations  Add, subtract, multiply, and divide complex numbers.  Solve Quadratic equations in.
Quiz Me Tutorial. Introduction QuizMe is a trivia game (the example uses baseball) you can use as a template to build quizzes on any topic. The user steps.
Quiz Me Extensions. Increasing Flexibility of Answer Evaluation Currently in Quiz Me, if the users doesn’t type enter the exact answer from your “AnswerList”,
WaveMaker Visual AJAX Studio 4.0 Training Basics: Building Your First Application Designer Basics.
Spreadsheet Basics What is a Spreadsheet? A spreadsheet (or worksheet) is an arrangement of cells in columns and rows used to organize, analyze, calculate,
Making graphs and solving equations of circles.
Worksheets Copyright 2006 South-Western/Thomson Learning.
Excel Web App By: Ms. Fatima Shannag.
Microsoft Excel. Excel specializes in creating and designing spreadsheets, or worksheets Worksheet – area to insert data Workbook – a set of worksheets.
COMPUTER PROGRAMMING I 3.02 Apply Properties Associated with the Controls.
EXCEL GRAPHING *Basic Graphing Steps* by A.B. -NNHS.
T U T O R I A L  2009 Pearson Education, Inc. All rights reserved. 1 4 Designing the Inventory Application Introducing TextBox es and Button s.
Completing the Square SPI Solve quadratic equations and systems, and determine roots of a higher order polynomial.
Microsoft Excel ( XP-2003). Return to Table of Contents Table of Contents 1_ Introduction to ExcelIntroduction to Excel 2_ Overview of the Excel.
Spreadsheet Vocabulary Multimedia Lab Kathleen Pape.
Microsoft Excel 2007 Noris Bt. Ismail Faculty of Information and Communication Technology Tel : (Ext 8408) BCOMP0101.
Create a Timesheet Mini Activity III. Objectives: The Learner will be able to: 1. Enter data into a Spreadsheet 2. Use AutoFill with labels, data and.
Lesson 1 – Getting Started with App Inventor
Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall. 1 Skills for Success with Office 2010 Vol. 1, 2e PowerPoint Lecture to Accompany.
You can type your own categories and points values in this game board. Type your questions and answers in the slides we’ve provided. When you’re in slide.
Input, Variables, and Calculations. The TextBox Component Performing Calculations Storing Data with Variables Creating Blocks with Typeblocking The Slider.
Open a BLANK WORD document
Microsoft Excel.
Chapter 16 – Programming your App’s Memory
First text statement positioned here at guide intersection
Section F – Moral Decision Making
Squares and Square Roots
Microsoft Excel All editions of Microsoft office.
TAB ONE TAB TWO TAB THREE TAB FOUR TAB FIVE
Topic one text label Topic two text label Topic three text label
موضوع بحث: تعریف علم اصول جلسه 43.
اشاره به نتایج قیاس های فقهی گاهی، حکم شرعی است
علم اصول، «نفس قواعد» است نه «علم به قواعد»
The Community College of Baltimore County - CCBC
Practice Activity – Part 1
Parkdale EFC LPD Church of the Week Please pray for:
Paleolithic Mesolithic Neolithic Bronze Age
Unit G: Using Complex Formulas, Functions, and Tables
Spreadsheets and Data Management
The Development of Atomic Models
قاعده لا ضرر، تنها در شبهات حکمیه جاری است
جلسه 34.
TITLE BYOT Half Circle (Advanced)
1 ج : اشاره بعضی از اصولیون به تعریف ترکیبی آخوند با «یک لفظ»
Presentation transcript:

Quadratic Equation Solver Tutorial

Introduction We will be making an app to solve 2 nd level polynomials like ax 2 +bx+c. We will model our app upon the quadratic equation. Ex. 1*x 2 +4x+4 -> = -2,-2

Goals Examine Math Functions – Call sqrt Examine Order of Operations Review Components – Textboxes – Buttons – Labels Review Screen Arrangement Review Function Calling

Step 1: Change Title of Screen Change the title of Screen1 to “Quadratic Equation Solver”.

Step 2: Vertical Layout 1.Drag a VerticalArrangement onto Screen. 2.Set Width to Fill Parent and Height to 300 pixels

Step 3: Horizontal Layouts 1.Add 2 HorizontalArrangements into the “Vertical Arrangement1”. 2.Set both their Widths to fill parent. 3.Name the top one “LabelArrangement” and the bottom one “TextBoxArrangement”.

Step 4: Variable Labels 1.Add 3 Labels to “LabelArrangement”. 2.Rename them variableA-C. Set each Label’s Font to bold and size Set Text to Variable (respective letter). 4.Set TextAlignment to center. 5.Set Width to 94 pixels and Height 25 pixels for each Label.

Step 5: Textboxes 1.Add 3 TextBox(es) to the “TextBoxArrangement”. 2.Rename each to TextBox(respective letter). 3.Check the FontBold box and set the FontSize to 30 on each TextBox. 4.Make the Hint “Enter Variable (respective letter) Value” for each. 5.Check NumbersOnly box on each TextBox. 6.Set Text Alignment to center for each. 7.Set Width to 94 pixels and Height to 50 pixels for each.

Step 6: Solve Button 1.Add a HorizontalArrangement to “VerticalArrangement1” and name it “ButtonArrangement”. 2.Add a HorizontalArrangement to “ButtonArrangement” and name it “Filler”. 3.Set Width to 84 pixels and Height to 75 pixels. 3.Add a Button to ButtonArrangement and rename it SolverButton. 4.Set FontSize to Check FontBold box. 6.Set Text to “Solve”. 7.Leave Width and Height on Automatic.

Step 7:Answer Label 1.Add a Label to VerticalArrangement. 2.Rename it “AnswerLabel”. 3.Check boxes FontBold and FontItalic. 4.Set FontSize to Set Text to “x=?”. 6.Set TextAlignment to center. 7.Set Width & Height to Fill parent.

Step 8: Set Variables 1.Open Blocks Editor. 2.Create 6 variables. Click Definition. Drag out 6 “Define variable as pieces”. Set names of variables to a, b, c, positiveX, negativeX, & squareRoot. 3.Set each variable’s type to number. Click Math and connect a “number 123” to each variable.

Step 9: Getting Numbers in Textboxes 1.Click “My Blocks”. Click on “SolveButton”. Drag out a “when SolveButton.Click do”. 2.Click “My Blocks”. Click “My Definitions”. Drag a “set global a to” into the “do” slot of the “when SolveButton.Click do” block. 3.Connect a “TextBoxA.Text” to the “to” slot of “set global a to” block. 4.Repeats steps 1 & 2 for variables b & c being set to “TextBoxB.Text” & “TextBoxC.Text” respectively.

Let’s Examine the Quadratic Equation Important Considerations 1.What is the order of operations? 2.How should we deal with the + or -? 3.What happens if b 2 -4ac is negative? Decisions 1.b 2 -4ac under the square root must be solved first. Then we want to do the addition/subtraction above the fraction. Then divide by 2a. 2.The + and – should be calculated in separate functions and set to 2 different variables. The sqareroot should also be a separate function with a result set to a variable because both the + and – functions need that result. 3.The “sqrt” function built into handles square roots of negatives just fine with imaginary numbers (i).

Blocks Equation Practice Convert Block Equation to Math Equation Convert Math Equation to Block Equation 6 x (7-4) / (9*6+6)

Step 10: Squareroot Function 1.Click Definition. Drag a “to Procedure arg” block on. Name it “quadraticSquareRoot”. 2.Click “My Blocks”. Click “My definitions”. Drag “set global squareRoot to” into the “quadraticSquareRoot” block. 3.Click “Math” Connect a “call sqrt” to the “to” slot of “set global squareRoot to”. 4.Click “Math”. Connect a “-” to the right of the “cal sqrt” block. 5.Click “Math”. Drag a “x” to the left slot of the “-” block. 6.Click “My Blocks”. Click “My definitions”. Drag a “global b” into the left and right slots of the “x” block. 7.Drag a “x” into the right slot of the “-” block. Drag a “number 123” into the left slot of the “x” block and another “x” into the right slot.” Set the “number 123” to “4”. 8.Click “My Blocks”. Click “My definitions”. Drag a “global a” into the left slot and a “global c” into the right slot of the inner most “x” block.

Step 11: Positive/Negative Functions 1.Click Definition. Drag a “to Procedure arg” block on. Name it “calculatePositiveX”. 2.Click “My Blocks”. Click “My definitions”. Drag “set global positiveX to” into the “calculatePositiveX” block. 3.Click “Math”. Connect a “/” to the “to” slot of “set global positiveX to” block. 4.Click “Math”. Drag a “+” into the left slot and a “x” into the right slot of the “/”. 5.Drag a “x” into the left slot of the “+” block. Click “My Blocks”. Click “My Definitions”. Drag a “global squareRoot” into the right slot of the “+” block. 6.Drag a “global b” into the left and a “number 123” into the right of the “x” block. Set the “number 123” to “-1”. 7.Drag a “x” into the right slot of the “/” block. 8.Drag a “number 123” into the left slot and a “global a” into the right slot of the “x” block. 9.Repeat steps 1-8 except rename the “to Procedure arg” to “calculateNegativeX” of step 1, change the “set global positiveX to” to “set global negativeX to” of step 2,and change the “+” of step 4 to “-”. ( Recommend copy and paste here to save time)

Step 12: Call Our Functions and Display Answer 1.Click “My Blocks”. Click “My definitions”. Drag “call quadraticDquareRoot” into the “do” slot of the “when SolveButton do”. Click do” block under the “set global c to”. 2.Repeat step 1 for “call calculatePositveX” and “call calculateNegativeX”. 3.Drag a “set AnswerLabel.Text to” ” into the “do” slot of the “when SolveButton do”. under function calls from steps 1 & 2. 4.Click “Text”. Connect a “Join” to the “to” slot of the “set AnswerLabel.Text to” block. 5.Drag a “text text” into the left slot and another “join” into the right slot of the first “join”. Set text of “text text” to “x= “. 6.Click “My Blocks”. Click “My Definitions”. Drag “global positiveX” into the left slot and another “join” into the right slot of the last “join” block added. 7.Click “My Blocks”. Click “My Definitions”. Drag “global negativeX” into the right slot and “text text” into the left slot of the last “join” block added. Set text of “text text” to “, “.

Final Block Program

Review Used the “+”,”-”,”x”,”/” and “call sqrt” functions from “Math” in blocks editor. Converted Block Equations to Mathematical Equations and vice versa

Challenges Check for and handle blank checkboxes. Return only 1 answer if “positveX” and “negativeX” are the same. Improve the phone interface. Create other math formula solvers – Tip Calculator – Shape Info. Solver i.e. Circle Solver given radius – Factorial(!) - 5!= 5 X 4 X 3 X 2 X 1 – Your own math formulas, even fake ones as jokes.