your instructor at the beginning of Unit 2. Unit 2 Assignment 1: Homework Learning Objectives and Outcomes Determine program input‚ processing‚ and output stages. Create the necessary flowcharts to describe a program’s structure. Use pseudocode to define a program’s structure. Formulate solution algorithms for calculations by properly following the order of operations. Assignment Requirements Answer: Short Answer 1‚ 2‚ 3‚ and 4 on page 71 Algorithm Workbench Review Questions 1 and
Premium Programming language Computer program Source code
result = y / x Set result = y – z 5. Write a pseudocode statement that declares the variable cost so it can hold real number. 6. Write a pseudocode statement that declares the variable total so it can hold real integers. Initialize the variable with the value 0. 7. Write a pseudocode statement that assigns the value of 27 to the variable count. 8. Write a pseudocode statement that assigns the sum of 10 and 14 to the variable total. 9. Write a pseudocode statement that subtracts the variable Down
Premium Real number Computer programming Mathematics
using exactly the same logic. Answer: Student answers will vary widely. They should come up with processes that fit the generic logic shown in Figure 3-9. Some examples could include: making a dentist appointment or registering for a class. Pseudocode for each follows. if it’s time for your annual teeth cleaning call the dentist for an appointment tomorrow while the day and time you want isn’t available if another time the same day is available make the appointment at the
Premium Programming language
PT1420 - Unit 2 Homework and Lab Assignment Unit 2 Assignment 1: Homework (material from Chapter 2of your text book) 1.) What is pseudocode? A.) Pseudocode is when you pre write a program in your own type of language to lay it out 2.) Computer programs typically perform what 3 steps. A.)Input‚ Process‚ Output. 3.) What 2 things must you normally specify in a variable declaration. A.)Type‚ Identifier. 4.) Write assignment statements that perform the following operations with the variables
Premium Imperial units Computer programming Output
should be able to: Identify inputs‚ outputs‚ and processing components from a problem description. Work out solution algorithm for the defined problem with sequence‚ selection and repetition control structures. Write the solution algorithm with pseudocode. Task 1: Tutorial Short Questions. Task 2: Algorithms Development Problem 1. A simple problem with only sequence Problem 2. A problem with single selection Problem 3. A problem with multiple selections Problem 4. A problem with multiple selections
Premium Algorithm Mathematics Programming language
PT1420 - Unit 2 Homework and Lab Assignment Unit 2 Assignment 1: Homework (material from Chapter 2of your text book) 1.) What is pseudocode? An informal language used to develop a programs design 2.) Computer programs typically perform what 3 steps. Input‚ Processing‚ and Output 3.) What 2 things must you normally specify in a variable declaration. Variable name and data type 4.) Write assignment statements that perform the following operations with the variables a‚ b‚ and c: a. Adds 2 to a and
Premium Computer programming Real number Algorithm
Lab 7: Repetition Structures I This lab accompanies Chapter 5 (pp. 163-183 and pp. 196-201) of Starting Out with Programming Logic & Design. Name: ___________________________ Lab 7.1 –Condition Controlled with While and Do-While Loops: Pseudocode Critical Review A repetition structure causes a statement or set of statements to execute repeatedly. Repetition structures are used to perform the same task over and over. Repetition structures are commonly called loops A condition-controlled
Free Statement
manufactures several types of candy. Design a flowchart or pseudocode for the following: a. A program that accepts a candy name (for example‚ “chocolate-covered blueberries”)‚ price per pound‚ and number of pounds sold in the average month‚ and displays the item’s data only if it is a best-selling item. Best-selling items are those that sell more than 2‚000 pounds per month. Answer: A sample solution is as follows: Pseudocode: start Declarations string name double pricePerPound
Premium Insurance Telephone
CheckPoint: Programming Problems Complete the programming problems 1 and 2 as described below. DO NOT COMPLETE THE PROBLEMS FROM THE TEXT For each of the following problems‚ use the top-down modular approach when writing the pseudocode to design a suitable program to solve each problem. Be sure to include an “analysis” for each problem. Note: you need to write 2 separate programs that will handle each problem separately. That means you will also have 2 analyses. Problem 1 Design a program
Premium Problem solving Programming language Real number
8-2 5. Write a pseudocode statement that declares the variable cost so it can hold real numbers. Floating-point variable cost 6. Write a pseudocode statement that declares the variable total so it can hold integers. Initialize the variable with the value 0. Declare Real price=99.95 Display "the original price." Input item original price Display "price" 7. Write a pseudocode statement that assigns the value 27 to the variable count. Count:=27 8. Write a pseudocode statement that assigns
Premium Value added tax Real number Integer