Using visual logic write the monthly sales amounts to a


Exercises & iLabs Logic and Design

Exercise

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.

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.

7 Lab Fireworks Stand Checkout (Devry)

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 also load our array of valid zip codes from a text file. In addition, we will modify the existing code to create a modularized design.

Load the array via a .txt file. Prompt to see if the user wants to search for a zip code. Prompt the user to enter a zip code and search against the array. If the zip code is found in the array, continue processing the sale. If the zip code is not found in the array, display a message stating, "State law prohibits selling fireworks for people living in the zip code". 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.

Solution Preview :

Prepared by a verified Expert
Computer Engineering: Using visual logic write the monthly sales amounts to a
Reference No:- TGS01692120

Now Priced at $40 (50% Discount)

Recommended (98%)

Rated (4.3/5)