Unit 3: Lab 3.1 Course Intro to programming Instructor : Sindar Lab 3.1 Lab 3.1 Step 1 Identify potential problems. Variable Name Problem Yes/No if yes, what’s wrong? Declare Real credits Taken No Declare Int cedits Left Yes We need to be able to use decimal as well. Declare Real studentName No Constant Real creditsNeeded=90 No Step 2 What’s wrong with this calculation Set credits-Left = credits-Taken – credits-Needed
Words: 300 - Pages: 2
Intro to programming final study guide 1. Name the components of a computer: CPU, RAM, Secondary storage devices, Input devices, Output devices 2. What does a disk drive do? A disk drive stores data by magnetically encoding it onto a circular disk. 3. What is the largest value that can be stored in a bit? 255 4. What is ASCII? ASCII is the American Standard Code for Information Interchange which is a set of 128 numeric codes that represent the English letters, various punctuation marks, and
Words: 771 - Pages: 4
Unit 3 Assignment 1: Homework Learning Objectives and Outcomes Describe the use of variables (declaration: specifies properties of an identifier, it declares what a word means, and is most commonly used for functions, variables, constants and classes. It can also be used for other things like enumerations and type definitions. Naming: The variable name is the way to reference the stored value. It allows the name to be used independently of the exact information it represents. Assignment: It
Words: 747 - Pages: 3
1. Case Structure: A multiple alternative decision structure: It allows you to test the value of a variable or an expression and then use that value to determine which statement or set of statements to execute. 2. Logical Operators: Boolean expressions used to create a compound expression. Logical operators AND and OR allow you to connect multiple Boolean expressions. The logical operator NOT reverses the truth of a Boolean expression. Expression (AND) | Value | True AND false | False |
Words: 834 - Pages: 4
Program Description: This program will calculate total usable area of a house by summing the square feet of rectangular rooms. This requires inputs in the form of length and width dimensions of each room to find the area of each room then adding those numbers together to find the area of all rooms. The results will be the output in area of each room and the total area of all the rooms. Analysis: The area of each room is found using the equation Area=Length x Width. The output in total square
Words: 317 - Pages: 2
Individual Project Professor IT106-1401A-05: Introduction to Programming Logic Contents Phase 1 3 Deposit 3 Transfer 3 Phase 2 4 Problem Analysis Chart 4 Inquiry 4 Deposit 4 Transfer 4 Structure Chart 4 IPO 4 Inquiry 4 Deposit 4 Transfer 4 Coupling Diagram 4 Data Dictionary 4 Phase 3 5 Inquiry 5 Flowchart 5 Pseudocode 5 Deposit 5 Flowchart 5 Pseudocode 5 Transfer 5 Flowchart 5 Pseudocode 5 Phase 4 6 Flowchart 6 Pseudocode 6 Phase 5 7
Words: 315 - Pages: 2
Class | Attributes | Responsibilities | Operations | BookTextbookPicturebook | ISBNAuthorTitlePriceRangeAge | Receive Book DataValidate Book DataSelect and Print DataReceive Book DataValidate DataSelect and Print DataReceive Book DataValidate Book DataSelect and Print Data | +setBook-Over$50+validatePrice+setBook-GradeRange3to6+validateGrade+setBook-AgeRange3to6+validateAge | UML Book | -ISBN-Author-Title-Price | +over$50( ) | TextBook | -Grade | +GradeRange3to6( ) | PictureBook
Words: 1298 - Pages: 6
Exercise 1.3.1 What is the decimal value of Byte 1 by itself? What is the decimal value of Byte 2 by itself? Answer: 25, 233 Exercise 1.5.1 On the desktop of your operating system, create a new folder called Classes. Open the C: drive and locate the path through the subfolders from the root directory C: to get to your Classes folder. This path will differ slightly depending on the operating system. Record the navigation path to get to your new Classes folder. Hint: Most directory structures that
Words: 421 - Pages: 2
Introduction to Programming Using Java Course Specifications Course length: 1.0 day(s) Course Description Course Objective: You will learn the basic concepts of programming using Java as the tool for learning. Target Student: This course is intended for students with no prior academic background in a field other than computer science or programming, who wish to embark on a course of study that will prepare them for employment as professional software developers. Students who interact on a
Words: 323 - Pages: 2
7. As a general rule, an eof question should always come immediately after an input statement because the end-of-file condition will be detected at input. | a. | True | | b. | False | | | | 8. Structured programming is sometimes called goto-less programming. | a. | True | | b. | False | | | | 9. No matter how complicated it is, any set of steps can always be reduced to combinations of the two basic structures of sequence and loop. | a. | True | | b. |
Words: 1129 - Pages: 5