Week 7 Activity Exercise– Annual Profit

Week 7 Activity Exercise– Annual Profit

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.

TCO #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.

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.

–iqra javaid

Use the order calculator below and get started! Contact our live support team for any assistance or inquiry.

[order_calculator]