Variables and input/output

Slides:



Advertisements
Similar presentations
Lesson 5 Homework: Logic and Planning Tools A step by step solution guide.
Advertisements

Java Planning our Programs Flowcharts Arithmetic Operators.
Introduction to Application Programming IST 256 Application Programming for Information Systems Xiaozhong Liu.
Introduction to Computers and Programming Lecture 4: Mathematical Operators New York University.
Mathematical Operators: working with floating point numbers and more operators  2000 Prentice Hall, Inc. All rights reserved. Modified for use with this.
CS Data Structures Appendix 1 How to transfer a simple loop- expression to a recursive function (factorial calculation)
Moving To Code 3 More on the Problem-Solving Process §The final step in the problem-solving process is to evaluate and modify (if necessary) the program.
Special Sum The First N Integers. 9/9/2013 Sum of 1st N Integers 2 Sum of the First n Natural Numbers Consider Summation Notation ∑ k=1 n k =
– ALGEBRA I – Unit 1 – Section 2 Consecutive
6.2 Factoring Simple Quadratics Objective: Learn/review the basics needed for factoring.
Java Programming, 3e Concepts and Techniques Chapter 3 Section 62 – Manipulating Data Using Methods – Day 1.
I CAN COMPARE AND ORDER RATIONAL NUMBERS BY USING A NUMBER LINE. 1.5 RATIONAL NUMBERS.
Java Final Project Web Design. Complete a Java Applet.
Lecture 2: Introduction to C Programming. OBJECTIVES In this lecture you will learn:  To use simple input and output statements.  The fundamental data.
Variables and Math in Code. Variables A variable is a storage block for information in your program “A” “A” Computer Program Memory Computer Program.
College Schedule Mini- Project College Prep Stats.
Lecture 5: Stopping with a Sentinel. Using a Sentinel Problem Develop a class-averaging program that will process an arbitrary number of grades each time.
solve x + (-16) = -12 solve x + (-16) = X = 4.
EXAMPLE 1 Add two integers using a number line
5 Minute Math In which place is the 4 in each of the following: 140,399 48, ,394 Write 2 equivalent fractions for each of the following:
InterestRate Create an InterestRate class and InterestRateViewer client class to do the following: A person is purchasing an item with their credit card.
1 Project 4: Computing Distance. 222 Computing Distance Write a program to compute the distance between two points. Recall that the distance between the.
WORKSHEET #36  Because some elements have different isotopes. This means the same atom has different numbers of neutrons.
For Friday Read No quiz Program 6 due. Program 6 Any questions?
UFCFY5-30-1Multimedia Studio Coding for Interactive Media Fundamental Concepts.
Copyright © Cengage Learning. All rights reserved. Section 3.1 Measures of Central Tendency: Mode, Median, and Mean.
while Repetition Structure
© 2016, Mike Murach & Associates, Inc.
Multiplying Decimals 3-6 & 3-7.
2.5 Another Java Application: Adding Integers
2.6 Factoring Simple Quadratics
JavaScript: Control Statements I
The UK Tier 1 Entrepreneur Visa and the UK Representative of Overseas Business Visa - SmartMove2UK
Dr. Clincy Professor of CS
Installing and Using MARIE
Final Grade Averages Weighted Averages.
For Monday Read WebCT quiz 18.
Jeopardy Operations with Integers With Decimals Fractions Solving Word
1) C program development 2) Selection structure
For Wednesday No new reading No quiz.
Installing and Using MARIE
Multiplying Decimals 3-6 & 3-7.
1 Introduction to Algebra: Integers.
We are starting JavaScript. Here are a set of examples
Objective - To add and subtract decimals.
Suppose I want to add all the even integers from 1 to 100 (inclusive)
Algebra 1 Section 8.4 Express numbers using scientific notation
Installing and Using MARIE
For this assignment, copy and past the XHTML to a notepad file with the .html extension. Then add the code I ask for to complete the problems.
Unit 3 Review (Calculator)
Welcome to AP Computer Science A!
9-5 Completing the square
Agenda Warmup Lesson 1.6 (Do-while loops, sentinels, etc)
Basic Lessons 5 & 6 Mr. Kalmes.
Data Type Conversion ICS2O.
Agenda Warmup Lesson 1.6 (Do-while loops, sentinels, etc)
10-4 Common Logarithms Objective:
Agenda Warmup Review Finish 1.2 Assignments Lesson 1.3 (If Statements)
If starting Candium Lab, sit in the back and start.
6.2 Factoring Simple Quadratics
EECE.2160 ECE Application Programming
Calculate 9 x 81 = x 3 3 x 3 x 3 x 3 3 x 3 x 3 x 3 x 3 x 3 x =
EECE.2160 ECE Application Programming
Final Revision sheet- term2
This is an introduction to JavaScript using the examples found at the CIS17 website. In previous examples I specified language = Javascript, instead of.
GCSE Computing Mini Assignment.
Agenda Warmup Review Finish 1.2 Assignments Lesson 1.3 (If Statements)
Write a Fraction as a Terminating Decimal
Agenda Warmup Lesson 1.9 (random #s, Boolean variables, etc)
Python Creating a calculator.
Presentation transcript:

Variables and input/output Java Mini Project Variables and input/output

Requirements Build a simple calculator to add 2 numbers. The calculator should prompt for 2 numbers and then display the sum of the numbers. The numbers can be integers or decimal numbers.

Storyboard Your final program should look like this:

=Double.parseDouble(string) Due… You have today to complete this assignment. I will grade it tomorrow Use the body mass calculator code as a guide. To parse a decimal number instead of an integer you will need to use the method: =Double.parseDouble(string) This is worth 20 points.