Student Lab Activity CIS115 Logic and Design
A. Lab #:CIS CIS115-A1 B. Lab 1 of 1 :Fireworks Stand Checkout C. Lab Overview – Scenario / Summary:
In this lab you are going to extend the Fireworks Checkout Stand application in Week 6. This week we will be more efficient by using files and modularizing the program. This week we will be even more efficient, loading our array of valid zip codes from a text file. In addition, we will modify the existing code to create a modularized design.
1.Load the array via a .txt file. 2.Prompt to see if the user wants to search for a zip code. 3.Prompt the user to enter a zip code & search against the array. 4.If the zip code is found in the array, continue processing the sale. If the zipCode is not found in the
array, display a message stating, "State law prohibits selling fire works for people living in the zip
code". 5.Modularize your code.
Be sure to THINK about the logic and design first (IPO chart and or pseudocode), then code the Visual Logic command line processing.
TCO #6 – Given a simple business problem with data stored in a file, design, code, and test a solution algorithm that reads
input from the file and writes output to a file.
CTO #8– Given a business problem, develop a solution algorithm for a menu-driven program.
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.
TCO #10 – Given a more complex business problem, develop a complete solution that includes a comprehensive statement
of the problem, complete program design, and program documentation.
Pseudocode – complete logic of module