Implement the programming techniques

Assignment Help Computer Engineering
Reference no: EM131724276

This assignment is designed to give you a chance to implement the programming techniques we have covered.

It includes the following main techniques which you should explore or even master:

- Looping (two variations: Do While, andFor)
- Nested loops
- Catching errors
- Commenting source code
- Methods (that share data)
- Constants
- Placeholders in Print Strings

Turn in your a single .cs file (no other project files)and the required test example text file in the assignment_2\code folder. I recommend that you put that code in a test folder and try making a new project using that code- test it. Consider the criteria listed at the bottom of this page; your grade will be based on that rubric.

Here are the program requirements:
Dresses ForSuccess, a non-profit organization, wants a program to project inventory levels for their one and only product. Last year they produced 1074dresses and sold 1023 and had 217dresses on hand at the end of the year. They want to see how inventory and cash-based net income will be affected if they grow over several years. Production and sales are not the same each month and may grow at different rates:

- They close their workshop in February and June to allow for vacations.
- Sales are also seasonal. "Dresses ForSuccess"wants to model their sales in this system as follows:
o Most months' sales are equal to 7% of annual sales
o but September (back-to-school) and December (Christmas) will each have 15%.
- Each dress sells for $99.99.
- Variable costs are estimated to be $56.25 per unit.
- Fixed costs (rent and other infrastructure costs) are estimated to be$52,500 per year.
- Cash based profit is computed by multiplying unit sales * the unit price and then subtracting (variablecost * units produced) and finally subtracting fixed costs.

Inputs:
- Annual Sales Growth (as a percentage of the prior year) from -50% to +500%
- Annual Production Capacity Growth (as a percentage of the prior year) from -50% to +500%
- The number of years to project from 1 to 10
Output:
- Resultsfor each month including units produced and sold, inventory balance, revenue, cost, and profit
- Annual Totals for Production, Sales, Revenue, Cost, and Profit

Two sets of example output are provided here to help you understand what results are expected. You will need to make your own test examples.

A few VERY useful hints:
- Hint: Using the Placeholder method for displaying values automatically takes care of rounding.
- Hint: Rounding differently can result in slightly different yet still acceptable answers. Just be sure you can confirm that you understand how yours were computed. The numbers shown here assume the annual production and sales figures should be "correct" while monthly figures and inventory balances are approximate and subject to rounding error.

Requirements:
- Briefly describe the input, output, and processing of your program in a comment block. (This time you don't have to display this on the screen.)
- Create a test example text file listing correct computations for at least two possible sets of inputs. You should calculate these results in a spreadsheet or with a calculator so you are sure your program works correctly. Include this file with your code in the solution folder in the assignment_2/code folder.
- Include at least one method in your program that computes a value (as a return, or byref, or with an out variable) to accomplish a meaningful task. Hint: a method for accepting values from the console would be one good option since you need to do that for three different values.
- Store hardcoded input values in constants.
- Use try/catch or tryparse to keep the program from failing when non-numeric inputs are entered.
- Use Placeholder formatting somewhere in your program.
- Use nested For loops to process for each month in each year.
- Use Do While to accept input from the console.

Verified Expert

The solution file is prepared in c # which implemented inventory details of company... It will maintain number of years inventory which includes sales,production,inventory balance,cost, profit and annual sale and annual production... finally program will calculate all of above and print result year by year. This program implemented basic concept of c# such as for loop, while loop and array etc... the screen shot of the program attached in the solution file Inventory.cs.

Reference no: EM131724276

Questions Cloud

What is the forward premium or discount on an annual basis : If the spot rate of the Malaysian ringgit is $ 0.35 and the six month forward rate of the ringgit is $ 0.33, what is the forward premium or discount
Operations chart to perform a methods analysis : You will use a process chart, activity chart, or operations chart to perform a methods analysis to perform a methods analysis
Write a memorandum to a decision maker : The Portfolio Project requires you to write a memorandum to a decision maker. Compare and contrast with the policy it replaces.
Describe your plan for designating time : What have you learned about factors related to success in online education from reading the articles by Waschull (2005) and Roper (2007)?
Implement the programming techniques : BA272 - Briefly describe the input, output, and processing of your program in a comment block and Create a test example text file listing correct computations
Analyze relationship between treatment method and outcome : Taking Example into consideration, describe how the researchers might control for the effect of the initial severity of patient depression when they analyze.
Achieving a sustainable competitive advantage : frequently used strategic approach to setting a company apart from rivals and achieving a sustainable competitive advantage?
Are these two bonds selling at a discount : Describe what it means if a bond sells at a discount, a premium, and at its par value. Are these two bonds selling at a discount, premium, or par?
The problem solving process used in spreadsheet : Explain in your own words and with an example, the problem solving process used in spreadsheet.

Reviews

inf1724276

4/4/2018 5:26:12 AM

perfect... This is what I call ! Created the solution according to the requirements provided. Most of all, the task is complicated one earlier than specified. completely satisfied. Thanks you soooo much.

len1724276

11/15/2017 5:20:00 AM

- Although this program explores some interesting programming techniques in a business context, it has a number of obvious shortcomings. List some of them. You can think a bit about the overly simple modeling done, but mostly consider how the inputs and parameters are gathered, how the results are presented, and what could go wrong.

len1724276

11/15/2017 5:18:41 AM

Evaluation Criteria (out of 100): - Documentation: (25) o (10) Test datafile is included, lists at least 2 input sets and corresponding expected results. o (10) Coded comment clearly describe the input, output, and processing for the program. o (5) Variable names indicate the type of variable and are meaningful. - Components: (55) About half each for including the component and half if the component does what it should o (10) A method is defined and used in the program to give back a value. o (5) Appropriate “hard coded” values are stored in constants. o (10) Nested For loops process each month within each year. o (10) DoWhile looping is used to accept values from the console. o (10) Placeholder formatting is used in the program. o (10) The program effectively uses try/catch or tryparse to handle invalid input.

len1724276

11/15/2017 5:18:05 AM

Make sure you understand these issues: - How is a DoWhile loop as used here, different from While and For loops? - What is the difference between a constant and a regular variable? Can you think of a way that using a constant in this program affects program maintenance in this application? - What are several ways a method might give back or change a value when it is called (understand return, ref, and out)? Actually: this case is loosely based on a cool non-profit called Her Worth which employs and trains Haitian women to make dresses. They learn a trade, support the economy, and make school uniforms for kids too. As I understand it, they make one single dress pattern but sell it in different sizes and accessorize it different ways. I may not have the details quite right google “Her Worth” for details. None of the details of this assignment are based on real information from the organization, it just seemed like a cool basis for a fictitious example. I sincerely hope you all go on to care for others and try, in your way, to make the world a better place.

Write a Review

Computer Engineering Questions & Answers

  Mathematics in computing

Binary search tree, and postorder and preorder traversal Determine the shortest path in Graph

  Ict governance

ICT is defined as the term of Information and communication technologies, it is diverse set of technical tools and resources used by the government agencies to communicate and produce, circulate, store, and manage all information.

  Implementation of memory management

Assignment covers the following eight topics and explore the implementation of memory management, processes and threads.

  Realize business and organizational data storage

Realize business and organizational data storage and fast access times are much more important than they have ever been. Compare and contrast magnetic tapes, magnetic disks, optical discs

  What is the protocol overhead

What are the advantages of using a compiled language over an interpreted one? Under what circumstances would you select to use an interpreted language?

  Implementation of memory management

Paper describes about memory management. How memory is used in executing programs and its critical support for applications.

  Define open and closed loop control systems

Define open and closed loop cotrol systems.Explain difference between time varying and time invariant control system wth suitable example.

  Prepare a proposal to deploy windows server

Prepare a proposal to deploy Windows Server onto an existing network based on the provided scenario.

  Security policy document project

Analyze security requirements and develop a security policy

  Write a procedure that produces independent stack objects

Write a procedure (make-stack) that produces independent stack objects, using a message-passing style, e.g.

  Define a suitable functional unit

Define a suitable functional unit for a comparative study between two different types of paint.

  Calculate yield to maturity and bond prices

Calculate yield to maturity (YTM) and bond prices

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