1 / 51

CIS 115 Effective Communication - tutorialrank.com

For more course tutorials visit<br>www.tutorialrank.com<br>Tutorial Purchased: 3 Times, Rating: A <br><br>CIS 115 All Exercises Devry University<br>

Download Presentation

CIS 115 Effective Communication - tutorialrank.com

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. CIS 115 All Exercises Devry University (DEVRY) For more course tutorials visit www.tutorialrank.com Tutorial Purchased: 3 Times, Rating: A+ CIS 115 All Exercises Devry University ************************************* CIS 115 All iLabsDevry University (DEVRY) For more course tutorials visit www.tutorialrank.com Tutorial Purchased: 3 Times, Rating: A CIS 115 Entire Course: Devry University: All iLabs and Exercises

  2. CIS 115 Entire Course (DEVRY) For more course tutorials visit www.tutorialrank.com Tutorial Purchased: 5 Times, Rating: A+ CIS 115 Week 1 Exercise CIS 115 Week 1 iLab 1 CIS 115 Week 2 Exercise CIS 115 Week 2 Lab Total Meal Purchases CIS 115 Week 3 Exercise CIS 115 Week 3 Lab Decision Calendar CIS 115 Week 4 Exercise CIS 115 Week 4 Lab Grade Calendar CIS 115 Week 5 Exercise CIS 115 Week 5 Lab Fireworks Stand Checkout CIS 115 Week 6 Exercise CIS 115 Week 6 Lab Fireworks Stand Checkout

  3. CIS 115 Week 7 Exercise CIS 115 Week 7 Lab Fireworks Stand Checkout CIS 115 All iLabsDevry University CIS 115 All Exercises Devry University CIS 115 Entire Course: Devry University: All iLabs and Exercises CIS 115 Final Exam 1 CIS 115 Final Exam 2 CIS 115 Final Exam 3 CIS 115 Final Exam 3 Sets of Answers ************************************* CIS 115 Final Exam 1 (DEVRY) For more course tutorials visit www.tutorialrank.com Tutorial Purchased: 3 Times, Rating: B+ 1. (TCO 1) What does IPO of IPO Model stand for? (Points : 4)

  4. 2. (TCO 1) What is a data item with a name and a value that remain the same during the execution of a program? (Points : 4) 3. (TCO 1) What symbol in a flowchart would be used by a developer to represent an input or output operation? (Points : 4) 4. (TCO 1) Set is a process. What data type would you expect the variable, name, to have? (Points : 4) 5. (TCO 1) You are using dollar amounts in an algorithm. What data type would you assign? (Points : 4) 6. (TCO 2) What tool is used by developers to design logic using specific shapes/symbols? (Points : 4) 7. (TCO 2) When a program evaluates mathematical expression, which of the following operators (or mathematical operations) has the lowest precedence? (Points : 4) 8. (TCO 2) Using the assignment statement, + sales, which side of the equal sign is evaluated first? (Points : 4) 9. (TCO 2) What value will be contained in the variable, x, after the following statement * 5 / 10 + 6 (Points : 4) is executed? 10. (TCO 2) Review the partial pseudocode below. What is the correct math expression to complete the algorithm and total sales for both regions? Prompt “Enter total sales Input Prompt “Enter total sales Input for region 1: region1 2: region2 ” for region ”

  5. Set Display “total sales: ” + total (Points : 4) _____ 11. (TCO 3 & 4) Review the pseudocode below. What will be displayed when this Set If ((x > 10) AND Display “the IF Else Display “the ELSE EndIf (Points : 4) algorithm executes? (x path < 20))=""> executes” path executes” 12. (TCO 3 & 4) What value gets displayed for the variable X? Set Set Set If (B > 15) AND (() Set Else Set EndIf Display X (Points : 4) OR (C <= 15))=""> 13. (TCO 3 & 4) In the following pseudocode, what raise will an employee in Department If department Set Else If department Set Else 6 receive? 2=""> < < 6="">

  6. Set EndIf EndIf (Points : 4) 14. (TCO 3 & 4) Which of the selection structures determines if the user enters a number between 20 and 45? (Points : 4) 15. (TCO 3 & 4) What value gets displayed for the variable Z? Set Set Set If ((balance <> 800) OR (stateCode<> 6) OR (creditCode<> 7) then Set Else Set EndIf Display Z (Points : 4) 1. (TCO 5) The variable used to create an expression controlling the loop is known as the _____. (Points : 4) 2. (TCO 5) Which of the following statements is false? (Points : 4) 3. (TCO 5) Which control structure is classified as a loop? (Points : 4) 4. (TCO 5) Repetition that loops a certain number of times is typically referred to as _____. (Points : 4) 5. (TCO 5) How many times will the following loop be executed? Set DOWHILE x Display <> 7 x

  7. Set ENDO (Points : 4) + 1 6. (TCO 7) What is a subscript or an index? (Points : 4) 7. (TCO 7) Suppose you have an array named number and two of its elements are number(1) and number(4). You know that _____. (Points : 4) 8. (TCO 7) What is the value of the index used to access the last element in a zero-based array declared as num(12)? (Points : 4) 9. (TCO 7) When loading/initializing the elements of an array, what control structure is used to move through each element within the array? (Points : 4) 10. (TCO 7) A zero-based array named sales has been declared and loaded with the values: 100, 1100, 3400, 5550, 3000, 22300, 1200. What value will be stored in the array element, sales(2)? (Points : 4) 11. (TCO 6) A record contains _____. (Points : 4) 12. (TCO 6) What are the three modes of operation on a file? (Points : 4) 13. (TCO 8) Many algorithms require direct communication from users. These types of algorithms are called _____. (Points : 4) 14. (TCO 9) What type of error occurs when an array subscript’s value goes beyond the total number of elements in the array? (Points : 4) 15. (TCO 2) What type of variable can be accessed by any module within the design? (Points : 4)

  8. 1. (TCO 10) A department store is having a customer appreciation sale. Depending on the total dollars purchased, the customer could receive a discount on total purchases. You are to develop pseudocode that will obtain the total dollars purchased from the user, determine the discount percent, and display the total amount due. When the purchases are more than $500, the discount is 10%. When the purchases are $500 or less, the discount is 6%. (Points : 10) 2. (TCO 10) A small business in your neighborhood would like an application developed that determines the average dollar amount spent for every three purchases. The user will enter three different purchase amounts. You need to display the average to your client. Complete the pseudocode to design your logic. (Points : 10) 3. (TCO 9 & 10) There is a logic error in the following pseudocode. What statement(s) would you need to add to correct the logic? Be sure to explain why you are Set DOWHILE Set + ENDO Display total (Points : 10) adding the statements. num<=> num 4. (TCO 4 & 10) Complete the pseudocode by rewriting the algorithm. The design is determining the correct sales tax depending on the county identifying code. Counties with a number less than 7 have a 5% sales tax. The 8-24 codes have a sales tax of 7%. Codes above 24 have a sales tax of 9%. The code is Begin Declare Real Declare ____ entered by the user. salesTax countyCode

  9. _____ Input If Set Else If ______________ Else Set EndIf ____________ Display End (Points : 10) “Enter the county code: _____________ “ _______ <= 7=""> ______ AND ______ then “the sales tax is: “ + _______________ 5. (TCO 5 & 10) Complete the pseudocode by rewriting the algorithm. The design is to display Begin Declare _______ Set REPEAT Display “countdown: Set UNTIL Display “LIFT End (Points : 10) a 60 second countdown. count “ + _______ - 1 ___________ OFF!” 6. (TCO 4, 5 & 10) Complete the pseudocode by rewriting the algorithm. The colors red, blue, and yellow are known as primary colors because they cannot be made by mixing other colors. When you mix two primary colors, you get a secondary color. Mixing yellow and blue gets you green. Mixing red and blue gets you purple. The algorithm allows the

  10. user to enter two primary colors and then displays the resulting secondary color. The colors entered by the user will be validated to ensure they entered Begin Declare String Declare String Declare String Declare String ______ “Enter first Input Prompt “Enter the second Input Set control1 DOWHILE control1 If (color1 <> “yellow”) ______ (color1 <> “red”) _______ (color1 <> “blue”) Prompt “first primary Input Else Set control1 ENDO Set control2 DOWHILE control2 If (color2 <> “yellow”) ______ (color2 <> “red”) _______ (color2 <> “blue”) Prompt “second primary Input Else Set control2 ENDO a primary color. color1 color2 control1 control2 primary color: “ _______ color: _________ primary “ = “n” “n” = then color is invalid” _________ = “y” = “n” “n” = then color is invalid” color2 = “y”

  11. If Display EndIf If Display EndIf End (Points : 10) (color1 = “red”) AND color (__________) is: then “secondary purple” (color1 = “yellow”) AND color (_________) is: then “secondary green” 7. (TCO 1, 2, 3, & 4) Describe the difference between a flowchart and pseudocode and explain whether one is more important to develop than the other. (Points : 10) 8. (TCO 1, 2, 3, 4, & 5) Compare and contrast sequence control structures and selection control structures. (Points : 10) ************************************* CIS 115 Final Exam 2 (DEVRY) For more course tutorials visit www.tutorialrank.com Tutorial Purchased: 1 Times,NO Rating

  12. 1. What is the first step in software development? 2. What are named locations in a computer’s memory holding information required by a program? 3. What symbol in a flowchart would be used by a developer to represent the beginning or ending point? 4. ) Set name = “BSCIS” is a process. What data type would you expect the variable, name, to have? 5. (You are using dollar amounts in an algorithm. What data type would you assign? 6. What tool is used by developers to design logic using specific shapes/symbols? 7. When a program evaluates mathematical expression, which of the following operators (or mathematical operations) takes precedence? 8. (Which one of the following is a valid assignment statement in a program? 9. (Evaluate (2 * 3) ^ 3. 10. (TCO 2) Review the partial pseudocode below. What is the correct math expression to complete the algorithm and total sales for both regions? Prompt “Enter total sales Input Prompt “Enter total sales Input for region 1: region1 2: region2 “ for region “

  13. Set Display “total sales: “ + total (Points : 4) _____ 11. (TCO 3 & 4) Review the pseudocode below. What will be displayed when this Set If ((x > = 10) Display “the IF Else Display “the ELSE EndIf (Points : 4) algorithm executes? AND (x < 20))=""> executes” path path executes” 12. (TCO 3 & 4) What value gets displayed for the variable X? Set Set Set If (B > 15) AND (() Set Else Set EndIf Display X (Points : 4) OR (C <= 15))=""> 13. (TCO 3 & 4) In the following pseudocode, what raise will an employee in Department If department Set Else If department Set Else 6 receive? 2=""> < < 6="">

  14. Set EndIf EndIf (Points : 4) 14. (TCO 3 & 4) Which of the selection structures determine whether the user enters a number outside a range of 5 and 15? (Points : 4) 15. (TCO 3 & 4) What value gets displayed for the variable Z? Set Set Set If ((balance <> 800) OR (stateCode<> 6) OR (creditCode<> 7) then Set Else Set EndIf Display Z (Points : 4) 1. (TCO 5) The statements executed within a loop are known collectively as the _____. (Points : 4) 2. (TCO 5) Which of the following statements is false? (Points : 4) 3. (TCO 5) A DO loop is considered what type of loop? (Points : 4) 4. (TCO 5) What happens when the loop control variable is not changed? (Points : 4) 5. (TCO 5) How many times will the following loop be executed? Set DOWHILE Display num<=> num

  15. Set ENDO (Points : 4) + 1 6. (TCO 7) What is another name for an array’s index? (Points : 4) 7. and two of its elements are number(1) and number(4). You know that _____. (Points : 4) (TCO 7) Suppose you have an array named number, 8. (TCO 7) Which one of the following correctly declares a zero-based array of four integers? (Points : 4) 9. (TCO 7) When processing the elements of an array, what control structure is used to move through each element within the array? (Points : 4) 10. (TCO 7) A zero-based array named sales has been declared and loaded with the values 100, 1100, 3400, 5550, 3000, 22300, and 1200. What value will be stored in the array element sales(1)? (Points : 4) 11. (TCO 6) A file contains _____. (Points : 4) 12. (TCO 6) What is automatically placed at the bottom of a file when the file is closed? (Points : 4) 13. (TCO 8) Menu-driven programs need to give the user the option to _____. (Points : 4) 14. (TCO 9) What type of error occurs when a program will not execute because the rules of the language have been violated? (Points : 4) 15. (TCO 2) The first module is usually considered to be called the _____ module. (Points : 4)

  16. 1. (TCO 10) A retail store is having a customer appreciation sale. Depending on the total dollars purchased, the customer could receive a discount on his or her total purchases. You are to develop pseudocode that will obtain the total dollars purchased from the user, determine the discount percentage, and display the total amount due. When the purchases are more than $100, the discount is 10%. When the purchases are $100 or less, the discount is 5%. (Points : 10) 2. (TCO 10) A small business in your neighborhood would like an application developed that determines the average dollar amount spent for every three purchases. The user will enter three different purchase amounts. You need to display the average to your client. Complete the pseudocode to design your logic. (Points : 10) 3. (TCO 9 & 10) There is a logic error in the following pseudocode. The loop needs to execute four times. What statement(s) would you need to add or change to correct the logic? Be sure to explain why you are adding or changing Set REPEAT Set UNTIL EndWhile Display total (Points : 10) the statements. + total 1 <> 4. (TCO 4 & 10) Complete the pseudocode by rewriting the algorithm. The design is determining the correct sales tax depending on the county identifying code. Counties with a number less than 10 have a 6% sales tax. The 11–25 codes have a sales tax of 7%. Codes above 25 have a sales tax of 8%. The code Begin is entered by the user.

  17. Declare Declare _____ _____ If Set Else If Set Else _____ EndIf _____ Display End (Points : 10) Real salesTax countyCode code: countyCode _____ the “Enter county “ _____ <= 10=""> _____ AND _____ then “the sales tax is: “ + _____ 5. (TCO 5 & 10) Complete the pseudocode by rewriting the algorithm. The design is to display Begin Declare _____ Set REPEAT Display “countdown: Set UNTIL EndDo Display “LIFT End (Points : 10) a 60-second countdown. count “ + _____ - 1 _____ OFF!” 6. (TCO 4, 5 & 10) Complete the pseudocode by rewriting the algorithm. The colors red, blue, and yellow are known as primary colors because

  18. they cannot be made by mixing other colors. When you mix two primary colors, you get a secondary color. Mixing yellow and blue gets you green. Mixing red and blue gets you purple. The algorithm allows the user to enter two primary colors and then displays the resulting secondary color. The colors entered by the user will be validated to ensure they entered Begin Declare String Declare String Declare String Declare String _____ “Enter first Input Prompt “Enter the second Input Set control1 DOWHILE control1 If (color1 <> “yellow”) _____ (color1 <> “red”) _____ (color1 <> “blue”) Prompt “first primary Input Else Set control1 ENDO Set control2 DOWHILE control2 If (color2 <> “yellow”) _____ (color2 <> “red”) _____ (color2 <> “blue”) Prompt “second primary Input a primary color. color1 color2 control1 control2 primary color: “ _____ primary color: “ _____ “n” “n” = = then color is invalid” _____ = “y” = “n” “n” = then color is invalid” color2

  19. Else Set ENDO If Display EndIf If Display EndIf End (Points : 10) control2 = “y” (color1 = “red”) AND (_____) is: then “secondary color purple” (color1 = “yellow”) AND (_____) is: then “secondary color green” 7. (TCO 1, 2, 3, & 4) Describe the difference between a flowchart and pseudocode and explain whether one is more important to develop than the other. (Points : 10) 8. (TCO 1, 2, 3, 4, & 5) Describe two of the three control structures and how relational and logical operators are used. (Points : 10) ************************************* CIS 115 Final Exam 3 Sets of Answers (DEVRY) For more course tutorials visit www.tutorialrank.com

  20. Tutorial Purchased: 4 Times, Rating: A+ CIS 115 Final Exam 3 Sets of Answers ************************************* CIS 115 Final Exam 3 (DEVRY) For more course tutorials visit www.tutorialrank.com Tutorial Purchased: 3 Times, Rating: A 1. (TCO 1) When creating an IPO Model, program designers generally determine _____ last. (Points : 4) 2. (TCO 1) What is a data item with a name and a value that remain the same during the execution of a program? (Points : 4) 3. (TCO 1) What symbol in a flowchart would be used by a developer to represent the beginning or ending point? (Points : 4)

  21. 4. (TCO 1) Set is a process. What data type would you expect the variable, name, to have? (Points : 4) 5. (TCO 1) You are designing an algorithm that will use a date of 01202009. What data type would you choose for this date variable? (Points : 4) 6. (TCO 2) What is a tool that developers use to design logic using English-like statements? (Points : 4) 7. (TCO 2) When a program evaluates mathematical expression, which of the following operators (or mathematical operations) has the lowest precedence? (Points : 4) 8. (TCO 2) Which one of the following is not a valid assignment statement in a program? (Points : 4) 9. (TCO 2) Evaluate (2 * 3) ^ 3. (Points : 4) 10. (TCO 2) Review the partial pseudocode below. What is the correct math expression to complete the algorithm and determine 50% of a cost? Prompt “Enter Input Set _____ total cost: “ cost Display “50% of the cost is: “ + total (Points : 4) 11. (TCO 3 & 4) Review the pseudocode below. What will be displayed when this Set If ((x > 10) AND Display “the IF algorithm executes? (x path < 20))=""> executes”

  22. Else Display “the ELSE path executes” EndIf (Points : 4) 12. (TCO 3 & 4) What value gets displayed for the variable X? Set Set Set If (B > 15) OR () Set Else Set EndIf OR (C <= 15)=""> Display X (Points : 4) 13. (TCO 3 & 4) In the following pseudocode, what percentage raise will an employee in If department Set Else If department Set Else Set EndIf Department 5 receive? 3=""> < < 5=""> EndIf (Points : 4) 14. (TCO 3 & 4) Which of the selection structures determines whether the user enters a number between 20 and 45? (Points : 4)

  23. 15. (TCO 3 & 4) What value gets displayed for the variable Z? Set Set Set If ((balance <> 800) AND (stateCode<> 6) AND (creditCode<> 7) then Set Else Set EndIf Display Z (Points : 4) 1. (TCO 5) The variable used to create an expression controlling the loop is known as the _____. (Points : 4) 2. (TCO 5) Which of the following statements is false? (Points : 4) 3. (TCO 5) Which loop may not execute the body of the loop at all? (Points : 4) 4. (TCO 5) Repetition that loops a certain number of times is typically referred to as _____. (Points : 4) 5. (TCO 5) How many times will the following loop be executed? 6. (TCO 7) Subscripts or indexes of any array are always declared with what data type? (Points : 4) 7. (TCO 7) What is an array element? (Points : 4) 8. (TCO 7) What is the value of the index used to access the last element in a zero-based array declared as num(12)? (Points : 4)

  24. 9. (TCO 7) When processing/manipulating the elements of an array, what control structure is used to move through each element within the array? (Points : 4) 10. (TCO 7) A zero-based array named sales has been declared and loaded with the values 100, 1100, 3400, 5550, 3000, 22300, and 1200. What value will be stored in the array element sales(1)? (Points : 4) 11. (TCO 6) A record contains _____. (Points : 4) 12. (TCO 6) What are the three modes of operation on a file? (Points : 4) 13. (TCO 8) Algorithms that allow users to direct the flow of control are often referred to as _____. (Points : 4) 14. (TCO 9) What type of error occurs when an array subscript’s value goes beyond the total number of elements in the array? (Points : 4) 15. (TCO 2) Which of the following is not an advantage of modular design? (Points : 4) 1. (TCO 10) A retail store is having a customer appreciation sale. Depending on the total dollars purchased, the customer could receive a discount on his or her total purchases. You are to develop pseudocode that will obtain the total dollars purchased from the user, determine the discount percentage, and display the total amount due. When the purchases are more than $100, the discount is 10%. When the purchases are $100 or less, the discount is 5%. (Points : 10) 2. (TCO 10) A small business in your neighborhood would like an application developed that determines the average dollar amount spent for every three purchases. The user will enter three different purchase

  25. amounts. You need to display the average to your client. Complete the pseudocode to design your logic. (Points : 10) 3. (TCO 9 & 10) There is a logic error in the following pseudocode. What statement(s) would you need to add to correct the logic? Be sure to explain why you are Set DOWHILE Set + ENDO adding the statements. num<=> num Display total (Points : 10) 4. (TCO 4 & 10) Complete the pseudocode by rewriting the algorithm. The design is determining the correct sales tax depending on the county identifying code. Counties with a number less than 7 have a 5% sales tax. The 8–24 codes have a sales tax of 7%. Codes above 24 have a sales tax of 9%. The code is Begin Declare Real Declare _____ _____ “Enter the _____ If _____ Set Else If _____ AND Set Else _____ EndIf entered by the user. salesTax countyCode code: countyCode county “ <= 7=""> _____ then

  26. _____ Display End (Points : 10) “the sales tax is: “ + _____ 5. (TCO 5 & 10) Complete the pseudocode by rewriting the algorithm. The design is to display a 60-second counter. The counter needs to begin at Begin Declare _____ Set REPEAT Display “counter: Set count = UNTIL count Display End (Points : 10) 1. count “ + _____ _____ + 1 _____ “Done!” 6. (TCO 4 & 10) Complete the pseudocode by rewriting the algorithm. The colors red, blue, and yellow are known as primary colors because they cannot be made by mixing other colors. When you mix two primary colors, you get a secondary color. Mixing yellow and blue gets you green. Mixing red and blue gets you purple. The algorithm allows the user to enter two primary colors and then displays the resulting secondary Begin Declare _____ Declare _____ _____ “Enter first Input Prompt “Enter the second Input color. color1 color2 primary color: “ _____ primary color: “ _____

  27. If Display EndIf If Display _____ End (Points : 10) (_____) AND (_____) then “secondary color is: purple” (_____) AND (_____) then “secondary color is: green” 7. (TCO 1, 2, 3, & 4) Describe the difference between a flowchart and hierarchy chart and explain whether one is more important to develop than the other. (Points : 10) 8. (TCO 1, 2, 3, 4, & 5) Describe two of the three control structures and how relational and logical operators are used. (Points : 10) ************************************* CIS 115 Week 1 Exercise (DEVRY) For more course tutorials visit www.tutorialrank.com Tutorial Purchased: 3 Times, Rating: A

  28. Assignment: This activity will assist you in the understanding of how output should appear after statements are executed (results) and how to write proper pseudocode. 1. Show the result of each pseudocode program. 2. Also rewrite the pseudocode statements using Assignment statements. Rubric: When completed compile the following documents together neatly in 1 & 2 order: 1) This instruction sheet first 2) Your answer sheet, second Point distribution for this activity: Pseudocode Activity Document: Points possible: Points received Problem #1 6 Problem #2

  29. 6 Problem #3 8 Total Points 20 Problem #1: The variable X starts with the value 0. The variable Y starts with the value 5. Add 1 to X. Add 1 to Y. Add X and Y, and store the result in Y. Display the value in Y on the screen. Output #1: Pseudocode #1: Problem #2: The variable J starts with the value 10. The variable K starts with the value 2. The variable L starts with the value 4.

  30. Store the value of J times K in J. Store the value of K times L in L. Add J and L, and store the result in K. Display the value in K on the screen. Output #2: Pseudocode #2: Problem #3: The variable A starts with the value 1. The variable B starts with the value 10. The variable C starts with the value 100. The variable X starts with the value 0. Store the value of C times 3 in X. Add the value of B times 6 to the value already in X. Add the value of A times 5 to the value already in X. Display the value in X on the screen. Output #3: Pseudocode #3: *************************************

  31. CIS 115 Week 1 iLab 1 (DEVRY) For more course tutorials visit www.tutorialrank.com Tutorial Purchased: 2 Times, Rating: A+ A. Lab #: CIS CIS 115-A1 B. Lab 1 of 1 : Fireworks Stand Checkout C. Lab Overview – Scenario / Summary: TCO #4 – Given a simple business problem that requires one or more decisions, create a solution algorithm that uses decisions with logical and relational expressions. TCO #5

  32. Given a simple business program that requires iteration, create a solution algorithm that employs loops. TCO #9 – Given a program with logic errors that is intended as a solution to a simple business problem, employ debugging diagnostics to remove and correct the errors. Scenario: Your algorithm will keep track of a customer’s purchases at the local fireworks stand. Customers will not know exactly how many items they will purchase, so using a FOR loop on this lab is not allowed. Let’s keep the rules simple. 1) Accept the dollar value of each item purchased from the user until the user is finished. 2) When purchases are complete, enter a sentinel value of -1 (indicating the user has finished). 3) If more the item purchased is 50.00 or more, give your customer a 10% discount on their item purchased. 4) Display all of the purchases to the customer with the original price and the discount price. Be sure to THINK about the logic and design first (IPO chart and pseudocode), then code the Visual Logic command line processing.

  33. D. Deliverables: Deliverable Points Fireworks IPO Model 10 Fireworks Pseudocode 20 Fireworks Flowchart 20 ************************************* CIS 115 Week 2 Exercise (DEVRY) For more course tutorials visit www.tutorialrank.com

  34. Tutorial Purchased: 2 Times, Rating: B+ Given a simple business problem, design a solution algorithm that uses arithmetic expressions and built-in functions. Assignment: Your goal is to solve the following simple programming exercise. You have been contracted by a local restaurant to design an algorithm determining the total meal charges. The algorithm should ask the user for the total food purchase and the tip percent. Then, the algorithm will calculate the amount of a tip, a 7% sales tax, and the total meal charge (including tip). The food purchase, sales tax, tip amount, and total meal charge will need to be displayed to the customer. Be sure to THINK about the logic and design first (IPO chart and pseudocode), then code the Visual Logic command line processing. Display all output using currency formatting (built-in Visual Logic function). Advanced (optional): use a constants for the 7% sales tax. Rubric: When completed staple the following documents together neatly in 1,2,3,4 order: 1) This instruction sheet first 2) The IPO Chart, second 3) The Pseudocode, third

  35. 4) The Flowchart and output example last. ************************************* CIS 115 Week 2 Lab Total Meal Purchases (DEVRY) For more course tutorials visit www.tutorialrank.com Tutorial Purchased: 3 Times, Rating: A Scenario/Summary Your goal is to solve the following simple programming exercise. You have been contracted by a local antique store to design an algorithm determining the total purchases and sales tax. According to the store owner, the user will need to see the subtotal, the sales tax amount, and the total purchase amount. A customer is purchasing four items from the antique store. Design an algorithm where the user will enter the price of each of the four items. The algorithm will determine the subtotal, the sales tax, and the total purchase amount. Assume the sales tax is 7%.

  36. Be sure to THINK about the logic and design first (IPO chart and pseudocode), then code the Visual Logic command line processing. Display all output using currency formatting (built-in Visual Logic function). Advanced (optional): Use a constant for the 7% sales tax. Deliverables Total Purchases IPO Model Total Purchases Pseudocode Total Purchases Flowchart Total Purchases Output Sample ************************************* CIS 115 Week 3 Exercise (DEVRY) For more course tutorials visit www.tutorialrank.com Tutorial Purchased: 4 Times, Rating: B+ Week 3 Activity – Calculate Overtime Pay TCO #4 – Given a simple business problem that requires one or more decisions, create a solution algorithm that uses decisions with logical and relational expressions. TCO #9 – Given a program with logic errors that is intended as a

  37. solution to a simple business problem, employ debugging diagnostics to remove and correct the errors. Assignment: You will need to design an application that it will prompt a user for their hourly pay rate, their hours worked, and whether they are single, married, divorced, or widowed. It will then calculate their gross and net pay. If they work more than 40 hours, overtime is calculated at 1 ½ times the regular rate and displayed separately. If they are married, use a flat tax rate of 15%. If they are single, use 22%, if they are divorced, use 23%, and if they are widowed, use 13% (I realize that these are not very realistic). Here is a sample of what the program should do when run: (No overtime example) Enter hourly pay rate: 10.00 Enter hours worked: 35 Enter letter for (M)arried, (S)ingle, (D)ivorced, (W)idowed: M Gross pay is $350.00 Net pay is $297.50 (Overtime example) Enter hourly pay rate: 10.00 Enter hours worked: 45 Enter letter for (M)arried, (S)ingle, (D)ivorced, (W)idowed: S Regular pay is $400.00 Overtime pay is $75.00 Gross pay is $475.00 Net pay is $370.50 Rubric: When completed staple the following documents together neatly in 1,2,3,4 order: 1) This instruction sheet first 2) The IPO Chart, second 3) The Pseudocode, third 4) The Flowchart and output example last. Point distribution for this application: Calculate Overtime Pay Document: Points possible: Points received IPO Chart 5 Pseudocode 5 Flowchart and output 10 Total Points 20 IPO Chart: Input Processing Output Pseudocode: Begin calculateOvertimePay End Flowchart: Example Output after execution: *************************************

  38. CIS 115 Week 3 Lab Decision Calendar (DEVRY) For more course tutorials visit www.tutorialrank.com Tutorial Purchased: 3 Times, Rating: A i L A B O V E R V I E WScenario/Summary Your goal is to solve the following programming lab activity. Write a program that prompts and accepts a number between 1 and 12. After getting the input, display the number with the appropriate month. (example: This is the 1st month…January, month…February, This is This month…December). is the 2nd the 12th Be sure to THINK about the logic and design first (IPO chart and/or pseudocode), then code the Visual Logic command line processing. Deliverables Pseudocode Decision Calendar Flowchart Decision Calendar Output Sample Decision Calendar IPO Model Decision Calendar *************************************

  39. CIS 115 Week 4 Exercise (DEVRY) For more course tutorials visit www.tutorialrank.com Tutorial Purchased: 2 Times,NO Rating TCO #4 – Given a simple business problem that requires one or more decisions, create a solution algorithm that uses decisions with logical and relational expressions. TCO #9 – Given a program with logic errors that is intended as a solution to a simple business problem, employ debugging diagnostics to remove and correct the errors. Assignment: You will need to design an application that will receive the weight of a parcel and calculate and display the cost per kg and the delivery charge for that parcel. Calculate the charges using the following data: Parcel Weight (kg) Cost per kg ($) < 2.5="" kg="" $3.50="" per="" kg=""> 2.5 to 5 kg $2.85 per kg > 5kg $2.45 per kg

  40. Make sure that the weight entered is a positive number, otherwise your program should display an error message and end. Test your algorithm with the following THREE sets of data: Test case 1: package weight of 2 kg Test case 2: package weight of 5 kg Test case 3: package weight of 6 kg Rubric: When completed staple the following documents together neatly in 1,2,3,4 order: 1) This instruction sheet first 2) The IPO Chart, second 3) The Pseudocode, third 4) The Flowchart and output example last. Point distribution for this application: Parcel Charges Document: Points possible: Points received IPO Chart 5

  41. Pseudocode 5 Flowchart and output 10 Total Points 20 IPO Chart: Input Processing Output Pseudocode: Begin parcelCharges End Flowchart: Example Output after execution: *************************************

  42. CIS 115 Week 4 Lab Grade Calendar (DEVRY) For more course tutorials visit www.tutorialrank.com Tutorial Purchased: 4 Times, Rating: A You have been asked to design a program that will allow a teacher to calculate the percentage and the final grade for students in a class. The program will prompt the teacher to enter the student’s first and last name and the number of points the student received. The program shall only accept scores between 0 and 1,000 points (including 0 and 1,000), with 1,000 points being the maximum number of points. If the input value is within the valid range, the program will display a "good score" message; otherwise, the program will display an error message and then terminate the program. The program shall then calculate the score percentage, and then determine the grade based on the percentage using the following grade criteria: Score Percent Range Grade 90-100 A

  43. 80-89 B 70-79 C 60-69 D 0-59 F The program will then display the student’s first name, last name, number of points, calculated percentage, and the final grade. The program shall have an initial prompt informing the user of the program's purpose, and a program termination message. Be sure to THINK about the logic and design first (IPO chart and pseudocode), then code the Visual Logic command line processing. ************************************* CIS 115 Week 5 Exercise (DEVRY)

  44. For more course tutorials visit www.tutorialrank.com Tutorial Purchased: 2 Times,NO Rating Assignment (part A): Your goal is to solve the following simple programming exercise. Using a FOR loop, write an algorithm that displays the squares of the numbers 1 to 10 to console output. Thought provoking question: Do you need to accept input? Assignment (part B): Using a pretest WHILE loop, write an algorithm that displays the squares of the numbers 1 to 10 to console output. Assignment (part C): This is extra for those who desire a challenge. Accomplish the same output as above, but use a posttest WHILE loop this time. Be sure to THINK about the logic and design first (IPO chart and or pseudocode), then code the Visual Logic command line processing. Rubric: When completed staple the following documents together neatly in 1,2,3,4 order: 1) This instruction sheet first 2) The IPO Chart, second

  45. 3) The Pseudocode, third 4) The Flowchart and output example last. ************************************* CIS 115 Week 5 Lab Fireworks Stand Checkout (DEVRY) For more course tutorials visit www.tutorialrank.com Tutorial Purchased: 1 Times,NO Rating Your algorithm will keep track of a customer’s purchases at the local fireworks stand. Customers will not know exactly how many items they will purchase, so using a for-loop on this lab is not allowed. Let’s keep the rules simple. Accept the dollar value of each item purchased from the user until the user is finished. When purchases are complete, enter a sentinel value of - 1 (indicating the user has finished). If the item purchased is $50.00 or more, give your customer a 10% discount on the item purchased.

  46. Display all of the purchases to the customer with the original price and the discount price. Be sure to THINK about the logic and design first (IPO chart and pseudocode), then code the Visual Logic command line processing. Deliverables Firework Stand Checkout IPO Model Firework Stand Checkout Pseudocode Firework Stand Checkout Flowchart Firework Stand Checkout Output Sample ************************************* CIS 115 Week 6 Exercise (DEVRY) For more course tutorials visit www.tutorialrank.com Tutorial Purchased: 1 Times,NO Rating Assignment: Arrays are incredible fun! Today we are going to work on a program to keep track of our homework scores for a math class. Write a program that accepts five homework scores as input values and stores

  47. them into a table (which is another name for an array). Once the scores are in the array, we can process them again and again. First, load the scores in your array. Second, display the contents of the array in order. Third, display array in reverse order. Fourth, calculate the average of the five scores entered in the array. Finally, the algorithm should display all the homework scores in the array that are larger than the previously calculated average. Make sure you use some output statements to clarify all the details you are displaying, being cautious about spelling and communicating to your user. Be sure to THINK about the logic and design first (IPO chart and or pseudocode), then code the Visual Logic command line processing. Rubric: When completed staple the following documents together neatly in 1,2,3,4 order: 1) This instruction sheet first 2) The IPO Chart, second 3) The Pseudocode, third 4) The Flowchart and output example last. *************************************

  48. CIS 115 Week 6 Lab Fireworks Stand Checkout (DEVRY) For more course tutorials visit www.tutorialrank.com Tutorial Purchased: 3 Times, Rating: A+ Your algorithm will keep track of a customer’s purchases at the local fireworks stand. Customers will not know exactly how many items they will purchase, so using a for-loop on this lab is not allowed. Let’s keep the rules simple. Accept the dollar value of each item purchased from the user until the user is finished. When purchases are complete, enter a sentinel value of - 1 (Make certain you do not include the -1 sentinel value in your total). Keep track of the total dollar amount of all fireworks purchased. Keep a tally of the number of items purchased. If more than 20 items were purchased, give your customer a 10% discount on the total purchases. Once purchases are complete, display the total number of items purchased, the average price of the items, the total of all fireworks purchased, any discount if applicable, and the total of all fireworks purchased minus the discount. Be sure to THINK about the logic and design first (IPO chart and/or pseudocode), then code the Visual Logic command line processing.

  49. Deliverables Firework Stand Checkout IPO Model Firework Stand Checkout Pseudocode Firework Stand Checkout Flowchart Firework Stand Checkout Output Sample ************************************* CIS 115 Week 7 Exercise (DEVRY) For more course tutorials visit www.tutorialrank.com Tutorial Purchased: 1 Times,NO Rating Assignment: Your goal is to solve the following simple programming exercise. You have been asked by your accounting department to design an algorithm determining the annual profit for your company. The algorithm should ask the user for the projected monthly sales for 12 months. Then, you need to determine the annual profit and display it to the user. The annual profit is 21% of the total sales.

  50. Part A: Using Visual Logic, write the monthly sales amounts to a file, monthly_Sales.dat. (Hint: be sure to enter a sentinel value for end of file processing later.) Part B: Using a separate algorithm, use the monthly_Sales.dat file as input to determine the company’s annual profit. Be sure to THINK about the logic and design first (IPO chart and or pseudocode), then code the Visual Logic command line processing. Rubric: When completed staple the following documents together neatly in 1,2,3,4 order: 1) This instruction sheet first 2) The IPO Chart, second 3) The Pseudocode, third 4) The Flowchart and output example last. ************************************* CIS 115 Week 7 Lab Fireworks Stand Checkout (DEVRY)

More Related