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

  Discuss the different kinds of storage devices

Discuss the different kinds of storage devices that you have used or that are available in the market.

  Estimating the average memory access time

Every data reference which misses in L1 has the 60% chance of hitting in L2. A miss in L1 followed by the hit in L2 has a latency of 10 cycles. Explain the average memory access time for the load data reference within this new con?guration?

  What are the atomic building blocks

How the production of metal contributes to computer engineering designing? What are the atomic building blocks

  Explain what the most challenging aspect of apa formatting

explain what you believe to be the most challenging aspect of APA formatting. Suggest one strategy to overcome the challenge in question.

  Design a 3 bit uniform quantizer

Design a 3-bit uniform quantizer (specify the decision boundaries and representation levels) for a source with a Laplacian pdf with a mean of 3 and a variance of 4.

  Is it okay for you to borrow the software

Is it okay for you to borrow this software? Would it be okay if you uninstalled the application after you were finished using it? Would it be okay if the software was on the school's network and you could copy it from there?

  The calling statement should then print out

Using conditional operator and the cal_days_in_month (CAL_GREGORIAN, int month, int year) function, find out  the number of days in the current month and output to the browser whether it is a normal month or a leap month (29 days).

  Prepare a non-gui-based java application which computes

create a non-gui-based java application that calculates weekly pay for an employee. the application should display text

  The combat identification server cids technology

the combat identification server cids technology demonstrator project tdp has been delivered on time with quality and

  Calculate the development of the velocity profile

Consider steady, laminar, constant-property flow in a duct formed by two parallel planes. Let the velocity be uniform at the duct entrance.

  Plot the local nusselt number as a function

Consider laminar flow in a circular tube with a fully developed velocity profile. Let the tube surface be alternately heated at a constant rate per unit.

  What are important considerations for an organization

Different types of storage devices are optimal for different situations. Explain what situations are appropriate for the following devices and explain.

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