2023 A program is required to receive this data for each mine from the keyboard the number | Assignment Collections

Computer Science 2023 SPrint1 and Sprint2 C Coding

2023 A program is required to receive this data for each mine from the keyboard the number | Assignment Collections

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.

 

We give our students 100% satisfaction with their assignments, which is one of the most important reasons students prefer us to other helpers. Our professional group and planners have more than ten years of rich experience. The only reason is that we have successfully helped more than 100000 students with their assignments on our inception days. Our expert group has more than 2200 professionals in different topics, and that is not all; we get more than 300 jobs every day more than 90% of the assignment get the conversion for payment.

Place Order Now

#write essay #research paper #blog writing #article writing #academic writer #reflective paper #essay pro #types of essays #write my essay #reflective essay #paper writer #essay writing service #essay writer free #essay helper #write my paper #assignment writer #write my essay for me #write an essay for me #uk essay #thesis writer #dissertation writing services #writing a research paper #academic essay #dissertation help #easy essay #do my essay #paper writing service #buy essay #essay writing help #essay service #dissertation writing #online essay writer #write my paper for me #types of essay writing #essay writing website #write my essay for free #reflective report #type my essay #thesis writing services #write paper for me #research paper writing service #essay paper #professional essay writers #write my essay online #essay help online #write my research paper #dissertation writing help #websites that write papers for you for free #write my essay for me cheap #pay someone to write my paper #pay someone to write my research paper #Essaywriting #Academicwriting #Assignmenthelp #Nursingassignment #Nursinghomework #Psychologyassignment #Physicsassignment #Philosophyassignment #Religionassignment #History #Writing #writingtips #Students #universityassignment #onlinewriting #savvyessaywriters #onlineprowriters #assignmentcollection #excelsiorwriters #writinghub #study #exclusivewritings #myassignmentgeek #expertwriters #art #transcription #grammer #college #highschool #StudentsHelpingStudents #studentshirt #StudentShoe #StudentShoes #studentshoponline #studentshopping #studentshouse #StudentShoutout #studentshowcase2017 #StudentsHub #studentsieuczy #StudentsIn #studentsinberlin #studentsinbusiness #StudentsInDubai #studentsininternational