Write the monthly sales amounts to a file

Assignment Help Computer Engineering
Reference no: EM131289389

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.

Reference no: EM131289389

Questions Cloud

High outrage type of risk communication : What is the key concept of Sandman's High Hazard/High Outrage type of risk communication? How should an organization best act and communicate in this type of crisis? What type of messages should they send?
Routines that use the computer to check the validity : Routines that use the computer to check the validity and accuracy of transaction data during input are sometimes referred to as
Impact on public service delivery : Will the total quality management movement fade away as a fad, or will it have a long-term impact on public service delivery?
Given the answer of the multiple choice questions : Given the answer of the multiple choice questions:Principles are,Ethics is a part of decision making etc.
Write the monthly sales amounts to a file : 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.)
Determine the price for your product : Determine the price for your product. Justify that price and provide a link to the resources you found most useful on the Etsy site.
Some accountants believe that deferred taxes : Some accountants believe that deferred taxes should be recognized only for some temporary differences. THe FASB requirement states that deferred taxes should be recognized for all temporary differences. Who do you agree with and why? Justify your rea..
How do marketers use psychological pricing to communicate : How do marketers use psychological pricing to communicate something about the product?- What is the Consumer Price Index (CPI)?
Prepare the entry made by dental at maturity : On September 1, 2010, Dental Equipment Corporation sold equipment priced at $635,000 in exchange for a nine month note receivable with an annual interest rate of 18.2%, all due at maturity. Prepare the December 31, 2010 (fiscal year end), adjusting e..

Reviews

Write a Review

Computer Engineering Questions & Answers

  Create a class named musicalinstrument

Design and implement a musical instrument class along with 4 subclasses using the following guidelines: Create a class named MusicalInstrument and its four subclasses named Woodwind, Brass, String and Percussion.

  Question1 obviously conceptual data modelling is a

question1. obviously conceptual data modelling is a time-consuming and costly process. examine potential drawbacks to

  Make a function definition called reverse

Write down a function definition called reverse, with two parameters, the first is an array of integer and the second is the number of elements in the array. The function reverses the elements of the array and does not return a value.

  Consider a two-dimensional integer array of size n x m

Consider a two-dimensional integer array of size n x m that is to be used in your favorite programming language.

  Pros of the just-in-time inventory management system

What does just-in-time inventory management have to do with Carle Heart Center in Urbana, Illinois? The Carle Heart Center is one of the most sophisticated cardiac-care facilities in the Midwest

  Write dpwn an algorithm, using pseudo code

Write down an algorithm, using pseudo code, "Consensus algorithm": A group of ten people want to decide which one flavor of ice cream they will all order, out of three options.

  Create a storyboard diagram depicting layout of your website

Create a storyboard diagram depicting the layout of your Website. Create a narrative that describes the site to your prospective client.

  Converting the sum of elements of array into octal format

Provided an array of ints named x and an int variable named total that has already been declared, write down some code which places the sum of all the elements of the array x into total.

  Slide presentation on access controls you may use various

slide presentation on access controls. you may use various sources including your textbook. be sure to cite any

  Design an application that finds all 4 digit numbers

make an application that finds all 4 digit numbers (those would be the numbers in the range 1000-9999) whose value is equal to the sum of each digit raised to the fourth power. MEANINGFUL output should be sent to the screen.

  1 functional dependenciesconsider a relation r

1. functional dependenciesconsider a relation r abcdefghjnbspwith the following functional dependenciesab --gt cdh --gt

  The program must request the quantity of each item ordered

a fast-food vendor sells pizza slices 1.75 fries 2.00 and soft drinks 1.25. write a program to compute a customers

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd