Chat with us, powered by LiveChat SPrint1 And Sprint2 C Coding Main | Writedemy

SPrint1 And Sprint2 C Coding Main

SPrint1 And Sprint2 C Coding Main

A program is required to receive this data for each mine from the keyboard.

 

  1. the number (integer) allocated to the mine
  2. the year the mine opened
  3. the year the mine closed
  4. the total ore production

 

(eg. 9 1811 1880 17430 )

 

 

It should then output

 

  1. the lifespan of each mine
  2. the average yearly ore production of each mine
  3. the total ore production of all the mines
  4. the number of the mine with the longest lifespan

 

You can assume that

 

  1. All mine lifespans are different
  2. All data will be entered correctly

 

 

Test plan

 

Devise a series of test runs to thoroughly test the program. For each test run

  1. Write down the test data explain what aspects of the program it will test,
  2. Write down the expected results. Justify the results showing calculations and results.

 

 

 

Program Design

 

  1. Using stepwise refinement produce an algorithm for the program, written in pseudo-code.
  2. Produce a data table of identifiers

 

Coding

 

From your pseudo-code, write the program in C. make sure the program is clearly laid out and includes appropriate comments and indentations.

 

Testing

 

Using your test plan, run and debug the program. Produce evidence of testing.

 

Hand in

 

You should submit your design documents, test plan and evidence of testing. You should also submit an electronic version of your program, naming this program mine.cpp.

 

Both Sprint 2 and Sprint 3 will work independently of each other. Note that Sprint 3 is expected to work with the program written for Sprint 1 – but not with the version covered in Sprint 2.

 

Sprint 2 (20% of the marks)

Specification

 

After further consultation the historian has discovered that some mines had the same lifespan and there could be two or more mines with the highest lifespan.

 

Using your first sprint change the code to save the lifespans of each mine in an array, as they are calculated. The highest lifespan should be found, as before, but the numbers of the mines with the highest lifespan/s should be found and output after all the data has been entered.

 

(hint: as the lifespan is calculated hold in an array)

 

For this program you can assume that all data will be entered correctly.

 

Test plan

 

Can you use the same test data for this program? If so, explain how this is possible. If not, make up further test data.

 

Coding

 

Write the code required, developing the program from Sprint 1 (but making sure you keep a copy of that working program).

 

Testing

 

Using your test plan, run and debug the program. Produce evidence of testing.

 

Hand in

 

 

You should submit your test plan and evidence of testing. You should also submit an electronic version of your program naming this program mine2A.cpp.

Our website has a team of professional writers who can help you write any of your homework. They will write your papers from scratch. We also have a team of editors just to make sure all papers are of HIGH QUALITY & PLAGIARISM FREE. To make an Order you only need to click Ask A Question and we will direct you to our Order Page at WriteDemy. Then fill Our Order Form with all your assignment instructions. Select your deadline and pay for your paper. You will get it few hours before your set deadline.

Fill in all the assignment paper details that are required in the order form with the standard information being the page count, deadline, academic level and type of paper. It is advisable to have this information at hand so that you can quickly fill in the necessary information needed in the form for the essay writer to be immediately assigned to your writing project. Make payment for the custom essay order to enable us to assign a suitable writer to your order. Payments are made through Paypal on a secured billing page. Finally, sit back and relax.

Do you need an answer to this or any other questions?

About Writedemy

We are a professional paper writing website. If you have searched a question and bumped into our website just know you are in the right place to get help in your coursework. We offer HIGH QUALITY & PLAGIARISM FREE Papers.

How It Works

To make an Order you only need to click on “Order Now” and we will direct you to our Order Page. Fill Our Order Form with all your assignment instructions. Select your deadline and pay for your paper. You will get it few hours before your set deadline.

Are there Discounts?

All new clients are eligible for 20% off in their first Order. Our payment method is safe and secure.

Hire a tutor today CLICK HERE to make your first order