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

  Algorithm to divide sixteen digit value by six digit integer

Divide 16 digit value N by six digit integer D obtaining quotient Q and remainder (or sign of the remainder) R by division algorithms.

  Dynamic-programming algorithm for rod-cutting problem

Consider a modification of the rod-cutting problem in which, in addition to a price pi for each rod, each cut incurs a fixed cost of c. Give a dynamic-programming algorithm to solve this modified problem.

  Finding equation has no solutions mod m

Let the equation ax = b mod m, where x is unknown and a, b and m are given. Illustrate that this equation has either no solutions mod m, or d solutions mod m.

  Contents of registers for independent memory-reference

Find out the contents of registers PC, AR, DR, AC, and IR for two independent memory-reference instructions below. Each instruction starts with given Initial values.

  Method singleparent returns number of nodes in binary tree

Write a method singleParent, which returns number of nodes in a binary tree that have only one child.

  Primitives-remove ambiguities in algorithm-s representation

Describe how the use of primitives helps remove ambiguities in an algorithm's representation.

  Algorithm to minimize average difference between height

The problem is to assign each skier a ski to minimize the average difference between height of a skier and his/her ski. Give pseudocode and write its asymptotic running time.

  Describe sorting algorithm to be parsimonious

Describe a sorting algorithm to be parsimonious if it never compares same pair of input values twice. (Supose that all the values being sorted are distinct.).

  Determine computational complexity of algorithm

Describe the algorithm in psuedo-code. You should give thought to what data structures(s) make sense for e client implementation. Determine computational complexity of your algorithm.

  Creating algorithm broken into sequence of words

Katt wishes you to create an algorithm that, given a string X, determines efficiently how many ways X can be broken up into sequence of words.

  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.

  Users and it organizations arm against phishing attacks

How users and IT organizations must arm themselves against these attacks?

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