A series of files have been sent to your program with different memory sizes. The sizes are all in whole numbers of Megabytes (MB) but the number of files are unknown. You have been asked to create a program that will find the file with the largest memory size.
Your solution must incorporate good programming practice (indentation, white space, comments, naming conventions).
Task 2 — Find how many files sent, total memory size and average file size
Scenario
A series of files have been sent to your program with different memory sizes. The sizes are all in whole numbers of Megabytes (MB) but the number of files is unknown. You have been asked to create a program that will count how many files there are, the total memory used and the average size of these files.
Your solution must incorporate good programming practice (indentation, white space, comments, naming conventions).
Create a word document with a front page, your documented program code and your testing screen shots. Zip your project folder with all the code. Upload both the word document and the zipped project folder to the VLE.
Task 2 — Find how many files sent, total memory size and average file size
Scenario
A series of files have been sent to your program with different memory sizes. The sizes are all in whole numbers of Megabytes (MB) but the number of files is unknown. You have been asked to create a program that will count how many files there are, the total memory used and the average size of these files.
Your solution must incorporate good programming practice (indentation, white space, comments, naming conventions).
Submitting your work
Create a word document with a front page, your documented program code and your testing screen shots. Zip your project folder with all the code. Upload both the word document and the zipped project folder to the VLE.
Task 3 — Create user name
Scenario
A user enters their first name and surname. You have been asked to create a program which creates a username from the first letter of their first name and the whole of their surname.
Example — john Smith would become jSmith
Your solution must incorporate good programming practice (indentation, white space, comments, naming conventions).
Submitting your work
Create a word document with a front page, your documented program code and your testing screen shots. Zip your project folder with all the code. Upload both the word document and the zipped project folder to the VLE.
Scenario
A number of complex calculations are performed on a computer. The time taken for each calculation is kept in milliseconds. You are asked to order the resultant times from fastest to slowest.
Your solution must incorporate good programming practice (indentation, white space, comments, naming conventions).
Create a word document with a front page, your documented program code and your testing screen shots. Zip your project folder with all the code. Upload both the word document and the zipped project folder to the VLE.
Task 5 — Report
In relation to task 4, write a report to describe features and explain the importance of Good Programming Practice with:
·a brief overview of the problem scenario
·a description of the type of language used and why it was chosen
·this should include advantages and disadvantages of that particular language
·the key differences between an Object Oriented and Non Object Oriented language
·the importance of good programming practice and how this was demonstrated within this program