ITCS 1010 Programming Logic
Logic Plan 7 – Chapter 7 – 20 points
“Lottery Numbers Using an Array to Hold a List of Random Lottery Numbers and
Totaling the values in the Array”
Student Name ___________________________________
Given the following problem statements, perform the steps and answer the questions listed below, which are designed to help you analyze the problem and prepare a strategy for solving the problem. Submit this logic plan and C# Project into a folder, zip the folder, and submit in Blackboard for grading.
Problem statement: Revise the application created in Tutorial 7-1 to accumulate all 5 values in the array. Show the accumulated values from the array in an output label control.
For example: Total = (Total + lotteryNumbers [index])
or
Total += lotteryNumbers[index]
Use label controls, button controls, and program comments where applicable. Make sure the C# program is free of syntax and logic errors. Also, include user-friendly ToolTips on button controls!
Create a file folder on your USB Port drive or hard drive at home, and call it “Logic Plan7 Your student name”. For example “Logic Plan7 DLohn”.
There is no VideoNote associated with this Lab.
Before coding the program create the Logic Plan!
Design the Program’s Logic: enter your answers in the IPO chart below. Write pseudocode and insert below. Draw a flowchart and insert below. (Hint: see the completed logic plan in this Tutorial.)
What must the user enter as INPUT?
INPUT |
|
How will the program generate the 5 random numbers as output?
PROCESSING |
|
What OUTPUT will the program display?
OUTPUT |
|
ENTER PSEUDOCODE HERE
DRAW OR COPY/PASTE FLOWCHART HERE
Save this project in your “Logic Plan 7 your student name” file folder and submit in this category for grading.