Liang, Introduction to Java Programming, Seventh Edition, (c) 2009 Pearson Education, Inc. All rights reserved. 0136012671 1 Java Programming Practice.

Slides:



Advertisements
Similar presentations
Aim: How do we solve radical equations?
Advertisements

Children’s Health A Call to Action Your Name Your MAFHK Region Insert Date.
Liang, Introduction to Java Programming, Ninth Edition, (c) 2013 Pearson Education, Inc. All rights reserved.1 Chapter 3 Selections.
Liang, Introduction to Java Programming, Eighth Edition, (c) 2011 Pearson Education, Inc. All rights reserved Chapter 4: Selections.
Liang, Introduction to Java Programming, Seventh Edition, (c) 2009 Pearson Education, Inc. All rights reserved Java Programming Practice.
Liang, Introduction to Java Programming, Eighth Edition, (c) 2011 Pearson Education, Inc. All rights reserved Chapter 47 Red Black Trees.
Flowchart Start Input weight and height
Liang, Introduction to Java Programming, Eighth Edition, (c) 2011 Pearson Education, Inc. All rights reserved Chapter 48 Hashing.
Liang, Introduction to Java Programming, Eighth Edition, (c) 2011 Pearson Education, Inc. All rights reserved Chapter 3 Selections.
Click 98 bmi 1,75 kg m 98 bmi 1,75 kg m 32 Applet for calculation of body mass index.
Liang, Introduction to Java Programming, Seventh Edition, (c) 2009 Pearson Education, Inc. All rights reserved Java Programming Practice.
Liang, Introduction to Programming with C++, Second Edition, (c) 2010 Pearson Education, Inc. All rights reserved Chapter 3 Selections.
Liang, Introduction to Java Programming, Seventh Edition, (c) 2009 Pearson Education, Inc. All rights reserved Java Programming Practice.
Body Mass Index (BMI) This is the most commonly used index of over or underweight Body Mass Index = body weight ( Height) squared ClassificationBMI.
Copyright © 2014, 2010, 2007 Pearson Education, Inc. 1 1 Chapter 9 Quadratic Equations and Functions.
Chapter 4 Handling the Client Request: Form Data.
Liang, Introduction to Java Programming, Eighth Edition, (c) 2011 Pearson Education, Inc. All rights reserved COS240 O-O Languages AUBG,
Definitions: Definitions: Obesity: Body Mass Index (BMI) of 30 or higher. Obesity: Body Mass Index (BMI) of 30 or higher. Body Mass Index (BMI): A measure.
WHAT IS BMI? BMI BODY MASS INDEX- BASED ON HEIGHT AND WEIGHT TO DETERMINE AMOUNT OF FAT AN INDIVIDUAL HAS OBESE BMI > 30.
Java Programming, 3e Concepts and Techniques Chapter 3 Section 62 – Manipulating Data Using Methods – Day 1.
Liang, Introduction to Java Programming, Seventh Edition, (c) 2009 Pearson Education, Inc. All rights reserved Chapter 3 Selections.
Algebra: Wednesday’s Daily Inspiration Factor the following quadratic equations AND then identify the roots: 1.y = -2x x y = -x 2 + 8x – 16.
© Copyright 2013 by Pearson Education, Inc. All Rights Reserved.1 Chapter 3 Selections.
Introduction to PASS, and Exercises on Operators and Basic I/O.
1 nd Semester Module3 Selection Statement Thanawin Rakthanmanon Create by: Aphirak Jansang Computer Engineering Department.
Warmup 9-11 Solve the following equations by factoring. Show work! 1.x x - 80 = 0 2.Solve by using the quadratic formula: 4x 2 - 5x - 2 = 0 3.Solve.
1 Press Ctrl-A ©G Dear 2008 – Not to be sold/Free to use Relative Error Stage 6 - Year 11 General Mathematics Preliminary.
Copyright © 2012 Pearson Education, Inc. Publishing as Prentice Hall. Quadratic Equations.
How to Calculate Your Body Mass Index (BMI)
Liang, Introduction to Java Programming, Seventh Edition, (c) 2009 Pearson Education, Inc. All rights reserved Chapter 41 JavaServer Face.
8 The Metric System.
Selection Statement Thanachat Thanomkulabut. Outline 2  Boolean expression  if  if statement  nested if  nested if statement  switch case  switch.
Copyright © 2015, 2008, 2011 Pearson Education, Inc. Section 5.6, Slide 1 Chapter 5 Logarithmic Functions.
MATH AND HEALTHCARE PROFESSION AS A MEDICAL ASSISTANT MM Konette Davis
Quadratic Equations. PROGRAM QuadraticEquations_1 IMPLICIT NONE REAL A, B, C, Discriminant, Root_1, Root_2 ! Get the coefficients PRINT *, "Enter the.
Copyright © 2010 Pearson Education, Inc. All rights reserved Sec Radical Expressions and Graphs.
Ectomorph, Endomorph, and Mesomorph
Assignments. Assignment 1 Write a program to calculate the current equation Where p is the period of pendulum in seconds, g=980 cm/sec 2 (acceleration),
Mark Dixon 1 07 – In-class test. Mark Dixon 2 In-class Test Date: Monday 5 th November 2012 Time: 11:05-120:55 Location: SMB109 Type: Individual 40% of.
How fit are you? Learning Objectives: * To consider different ways of measuring fitness. * To collect measurements and calculate your own BMI. * To use.
ICa i e sr lo. ONE Design Statement Nowadays, a lot people wants to be healthy or loss weight. In project 1, I decided to do a Calories calculator for.
4/4 Warm Up- Monday Where do I need to be tomorrow? Take this time to find out where to go for STAAR testing tomorrow or if classes are being relocated.
KEEP SLIM NURIZATI KHAIRUNNISA BT MOHAMAD NAJIB ( ) HABIBAH BT HASAN ( )
How to Calculate Your Body Mass Index (BMI)
Chapter 3 Selections Liang, Introduction to Java Programming, Ninth Edition, (c) 2013 Pearson Education, Inc. All rights reserved.
Objectives Find probabilities for normally distributed variables
Chapter 1 Introduction to Java
© 2015 Pearson Education, Inc.
Copyright © 2004 American Medical Association. All rights reserved.
Copyright © 2002 American Medical Association. All rights reserved.
© 2015 Pearson Education, Inc.
Larger Systems of Linear Equations
Chapter 3 Selections Liang, Introduction to Java Programming, Eighth Edition, (c) 2011 Pearson Education, Inc. All rights reserved
Weightproblems by teenagers
Quadratic Equations, Inequalities, and Functions
Chapter 4 TCP 서버/클라이언트 u-Network Design Lab 3.
Tip Calculator App Android How to Program
Chapter 3 Selections Liang, Introduction to Java Programming, Seventh Edition, (c) 2009 Pearson Education, Inc. All rights reserved
Zeros to Quadratic Functions
Since 1985, obesity among U.S. adults has risen dramatically
Applications of Systems of Linear Equations
Option 1: Human Power Output 
Quadratic Equations, Inequalities, and Functions
Factoring if/else code
Proximate social causes Height Social consequences
Chapter 5 Processing Input with Applets
Metric –U.S. Customary Comparisons
AP CS Be able to fix a program written in Java
Efficiency.
Obesity Trends Among U.S. Adults Between 1985 and 2010
Presentation transcript:

Liang, Introduction to Java Programming, Seventh Edition, (c) 2009 Pearson Education, Inc. All rights reserved Java Programming Practice 7. Write a Java program to calculate the and print the roots of a quadratic equation. Program Output: Enter The a coefficient 2 Enter The b coefficient -6 Enter The c coefficient 3 The Roots are: X1 = , X2 =

Liang, Introduction to Java Programming, Seventh Edition, (c) 2009 Pearson Education, Inc. All rights reserved Java Programming Practice 8) Write a Java program which asks from the user the weight in kilograms and the height in meters as input and then calculates Body Mass Index (BMI) with the formula BMI = weight / (height 2 ) and print the result with the corresponding comment according to the following table. Output: Enter the weight in kg: 60 Enter the height in meters: 1.5 The BMI is So, it is overweight

Liang, Introduction to Java Programming, Seventh Edition, (c) 2009 Pearson Education, Inc. All rights reserved Java Programming Practice 9. Write a Java program to convert weekdays number to the weekdays name. (Use case Command) Output: Enter Weekday Number: 0 Day is Monday Enter Weekday Number: 2 Day is Wednesday Enter Weekday Number: 6 Day is Sunday Enter Weekday Number: 3 Day is Thursday