Design algorithm determining annual profit for company

Assignment Help Data Structure & Algorithms
Reference no: EM1356111

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.

Reference no: EM1356111

Questions Cloud

Factors and benefits of global expansion : Explain what are some factors that may discourage organizations from expanding globally? What are some benefits of expanding globally?
Knowledge about operations management : Introduce implementation challenges in the selected operations management or situation and describe these challenges from the perspective of how they may affect the desired outcome for the organization or situation.
Outline on a subject of global warming : The purpose of the report is to convince members of Congress that there are 2 opposing viewpoints about the impacts of global warming and to explain these viewpoints.
Explain e-mail new employees with the packet attached : Explain E-mail new employees with the packet attached and request they complete it and e-mail it back within three days
Design algorithm determining annual profit for company : 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.
Provide reasons for doing market research : Determine the primary reasons for doing market research? How are primary and secondary information used in subsequent marketing including the use of questionnaires, observations, experiments, and panels?
Create program to calculate and display number of miles : Create a program to calculate and displays the number of miles per hour over the speed limit that a speeding driver was doing. The program should ask for the speed limit and the drivers speed.
Define identify the kind of societal expectation of behavior : Explain Identify the kind of societal expectation of behavior and what standard of behavior is most appropriate
Optimal sample definitions and data collection : It is known that through optimal sample definitions and data collection, test norms are not absolute. With this they can change with time or with a different norm group.

Reviews

Write a Review

Data Structure & Algorithms Questions & Answers

  Design of sample and hold amplifiers for 100 msps by using n

The report is divided into four main parts. The introduction about sample, hold amplifier and design, bootstrap switch design followed by simulation results.

  Explain types of information systems

Question 1. Explain five types of information systems, and give an example of each. Question 2. Describe three common reasons for a systems request. Try and find one not listed in the text.

  Determine algorithm for cs curriculum consists of n courses

Determine an algorithm which works directly with this graph representation, and calculates minimum number of semesters necessary to complete the curriculum.

  Generalize 2-3 algorithms for insert and delete

Generalize the 2-3 algorithms for INSERT and DELETE to K-J trees, where non-leaf vertices have between K and J children for fixed integers K >=2, and J>= 2K-1.

  Create a binary search tree program

Creating a Binary Search Tree program - Finding the largest and smallest values in the tree Add two class methods

  Program for stack by using dynamically allocated array

Write a C++ class which implements stack by using a dynamically allocated array. Initial size of particular stack must be determined when it is created.

  Algorithm for string of numbers recognize all the substrings

Write down algorithm, using pseudocode, to perform the following task, Given a string of numbers, recognize all of the substrings that form numbers that are divisible by 3.

  Explain sorting algorithm which is optimal in cost

Explain a sorting algorithm which is optimal with respect to this cost model and uses O(n) space. That is, time used by algorithm should exactly match lower bound

  Recursive implementation of euclids algorithm

Write a recursive implementation of Euclid's algorithm for finding the greatest common divisor (GCD) of two integers

  Js code to prompt the user for integer and print result

Write JS code which prompt the user for an integer and prints the result.

  Explain compression algorithms are often used in forensics

"Compression algorithms are often used in forensics. Suppose you are involved in a case and have been asked by the lawyer to explain, in general terms.

  Explain the fifo structure of the queue

Explain the FIFO structure of the queue Explain how you would implement the queue data structure in its simplest form. Illustrate your answer fully with the necessary sample code

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