Question: IVY TECH COMMUNITY COLLEGE SDEV 120 / Computing Logic S11 Homework Assignment, Part 1 (20 points) YOUR NAME: ______________________________________________________________________ INTRODUCTION: In this assignment, you will
IVY TECH COMMUNITY COLLEGE SDEV 120 / Computing Logic S11 Homework Assignment, Part 1 (20 points) YOUR NAME: ______________________________________________________________________ INTRODUCTION: In this assignment, you will write statements and definitions from the assigned readings in Books 24x7: Beginning Programming, All-in-One Reference for Dummies: Chapter 2 in Book II (Variables, Data Types and Constants) Beginning Programming, All-in-One Reference for Dummies: Chapter 1 in Book III (Structures and Arrays) ASSIGNMENT: Answer the following questions by typing your answers into the space after each question. When you are finished, save the file and submit this document through Blackboard. #1. Write a statement that assigns the value 3 to a variable named YearsOfService. (2 points) #2. Write a series of three statements that assign the value 40 to the variable HoursWorked, the value 17.50 to the variable HourlyWage, and a statement that multiplies them together and stores the result in the variable GrossPay. (6 points) #3. Write a single statement that prints the label \"Your score is: \" followed by a variable named Score1. (2 points) #4. Write two statements. The first assigns the value 1200 to the variable Sales. The second calculates the value of 10% times Sales and assigns that value to a variable called Bonus. (4 points) #5. Write the definition of a structure named Book that includes the variables Title, Author and NumberOfPages, using the data types String and Integer as appropriate. (3 points) #6. Write a single statement that assigns the values 99, 100 and 88 to an integer array named TestScores. Use the C++ notation used for the \"lotterynumbers\" array. (3 points) SDEV 120, Computing Logic S11 Homework Assignment, Part 2 (Puzzles) #1: Cryptogram Decypher the following quotation. Each letter consistently stands for another letter. Hints are short words, common words, double letters, repeated letters and punctuation. The name of the quotation's author is in parentheses. Type your letters in the yellow row, above the encrypted letters. A G W X K X S N B Z L , #2: Sudoku Fill in the missing squares, so that: Each row contains the numbers 1 through 9. Each column contains the numbers 1 through 9. Each square 3 by 3 box contains the numbers 1 through 9. 4 2 7 6 5 8 4 9 6 3 8 5 2 1 7 9 3 1 6 W C C L G W L J B L G . ( R 4 2 4 5 8 1 2 3 1 6 5 4 5 I J H L A I K X ) (Here is the original grid, in case you need to start over. Copy and paste this over the original box if you need to.) 7 8 6 8 9 L #1 #2 TOTAL: 3 7 4 2 9 7 6 5 8 4 9 6 3 8 5 2 1 7 9 3 1 6 7 4 5 8 1 2 3 1 6 8 6 8 9 5 4 5 3 4 2 9 7 POINTS Possible Actual 5 5 10 0