For Wednesday No new reading No quiz.

Slides:



Advertisements
Similar presentations
Counter Billing is a software to prepare invoices at retail counter very fast and quick. By using this software user can prepare the invoices for more.
Advertisements

1 9/29/06CS150 Introduction to Computer Science 1 Loops Section Page 255.
The UNIVERSITY of NORTH CAROLINA at CHAPEL HILL Adrian Ilie COMP 14 Introduction to Programming Adrian Ilie July 5, 2005.
COMP 14 Introduction to Programming Miguel A. Otaduy May 20, 2004.
Java vs. You.
COMP 110 Introduction to Programming Mr. Joshua Stough September 24, 2007.
Presented by Joaquin Vila Prepared by Sally Scott ACS 168 Problem Solving Using the Computer Week 12 Boolean Expressions, Switches, For-Loops Chapter 7.
Combination of Sequence, Selection and Repetition
Chapter 13 Sequential File Processing. Master Files Set of files used to store companies data in areas like payroll, inventory Usually processed by batch.
Looping While-continue.
Program 6 Any questions?. System.in Does the opposite of System.out.
More While Loop Examples CS303E: Elements of Computers and Programming.
Nested LOOPS.
Review for Exam2 Key Ideas 1. Key Ideas: Boolean Operators (2 > 3) || (3 < 29.3) A.True B.False C.Impossible to determine (22 > 3) && (3 > 29.3) A.True.
Function Problems. Write Functions Asks users whether the user wants to continue of not, then returns the answer. Takes two integers and returns 1 if.
PROBLEM SOLVING & ALGORITHMS CHAPTER 5: CONTROL STRUCTURES - SELECTION.
Quiz. Quiz One Type your name, ID and address in the.asm file. MUST DO or ZERO SCORE. Change q1 to yourStudentID_q1. You were working as a programming.
1 09/20/04CS150 Introduction to Computer Science 1 Let ’ s all Repeat Together.
Lecture 4: Calculating by Iterating. The while Repetition Statement Repetition structure Programmer specifies an action to be repeated while some condition.
Writing JavaScript Functions. Goals By the end of this unit, you should understand … How to breakdown applications into individual, re-usable modules.
Pseudocode Algorithms Using Sequence, Selection, and Repetition
CS 100 Introduction to Computing Seminar
Count and add list of numbers From user input and from file.
CS161 Topic #16 1 Today in CS161 Lecture #16 Prepare for the Final Reviewing all Topics this term Variables If Statements Loops (do while, while, for)
13-1 Sequential File Processing Chapter Chapter Contents Overview of Sequential File Processing Sequential File Updating - Creating a New Master.
Computer Programming TCP1224 Chapter 5 The Selection Structure.
COMP Loop Statements Yi Hong May 21, 2015.
CPSC 233 Tutorial 5 February 2 th /3 th, Java Loop Statements A portion of a program that repeats a statement or a group of statements is called.
For Friday Read No quiz Program 6 due. Program 6 Any questions?
Computer Programming 12 Lesson 6 – Loop structure By: Dan Lunney.
Loops ( while and for ) CSE 1310 – Introduction to Computers and Programming Alexandra Stefan 1.
© Copyright 1992–2004 by Deitel & Associates, Inc. and Pearson Education Inc. All Rights Reserved. 1 Flow Control (while) Outline 3.7The While Repetition.
For Friday Finish reading chapter 9 WebCT quiz 17.
Java Project 3 In Class Practice. IF Statements Create a simple program that allows the user to enter a test score as an integer. If the test score is.
CHAPTER 6: REPETITION AND LOOP STATEMENTS Learning outcomes  Define the concept of repetition structure.  Specify.
1 COMS 261 Computer Science I Title: C++ Fundamentals Date: September 23, 2005 Lecture Number: 11.
CIS 115 All Exercises Devry University (Devry) FOR MORE CLASSES VISIT CIS 115 All Exercises Devry University.
CIS 115 ALL EXERCISES DEVRY UNIVERSITY (DEVRY)  CIS 115 All Exercises Devry University CIS 115 ALL ILABS DEVRY UNIVERSITY (DEVRY)  CIS 115 All iLabs.
CIS 115 AID Teaching Effectively/cis115aid.com FOR MORE CLASSES VISIT
CIS 115 Slingshot Academy / cis115.com
Introduction to Programming
Exercise : Write a program that print the final price of purchase at a store where everything costs exactly one dollar. Ask for the number of items purchased.
while Repetition Structure
EKT120 COMPUTER PROGRAMMING
EKT150 INTRODUCTION TO COMPUTER PROGRAMMING
CHAPTER 6: REPETITION AND LOOP STATEMENTS
Chapter 4 C Program Control Part I
Quiz # 02 Design a data type Date to hold date
CHAPTER 5A Loop Structure
Introduction to Programming
Basic operations in Matlab
CIS115 Education for Service-- snaptutorial.com
CIS 115Competitive Success/tutorialrank.com
CIS 115 Teaching Effectively-- snaptutorial.com
For Monday Read WebCT quiz 18.
Logical Operators and While Loops
The while Looping Structure
Yong Choi School of Business CSU, Bakersfield
Control Statements Loops.
Let’s all Repeat Together
Data Groupings: File File: a group of related records
Logical Operators and While Loops
Process Exchange Transactions Activity
Control Statements Loops.
CS150 Introduction to Computer Science 1
Continue with conditional
The while Looping Structure
Algorithms For use in Unit 2 Exam.
Incremental Programming
The while Looping Structure
Presentation transcript:

For Wednesday No new reading No quiz

Program 6 Any questions?

Objects and Records Approaches to reading objects Approaches to writing objects Issues to deal with New lines Multiple word fields

The File Class Contains a number of methods Useful for answering questions about files

Interacting with the User How is this similar to files? How is it different?

System.in

Practice Design and write a program that will prompt for, receive, and total a collection of payroll amounts entered by the user until a sentinel amount of -99 is entered. After the sentinel has been entered, display the total payroll amount on the screen.

Problem 2 Write a program that finds the smallest of several integers. Assume that input will end when a sentinel value of –999 is read. Do not count –999 as one of the integers to consider.

Problem 3 Write a program that sums a sequence of integers. Assume that the first integer read specifies the number of values remaining to be entered. Your program should read only one value at a time. A typical input sequence might be 5 100 200 300 400 500

Practice Problem Write Java code to ask for a student’s exam score out of 100. Your program is then to match the exam score to a letter grade and print the grade to the screen. The letter grade is to be calculated as follows: 90 and above A 80-89 B 70-79 C 60-69 D below 60 F

Switch Practice A program is required to read a customer’s name, a purchase amount and a tax code. The tax has been validated and will be one of the following: 0 tax exempt (0%) 1 state sales tax only (3%) 2 federal and state sales tax (5%) 3 special sales tax (7%) The program must then compute the sales tax and the total amount due and print the customer’s name, purchase amount, sales tax and total amount due.

JFileChooser