# A-level Computing/AQA/Paper 1/Skeleton program/AS2017

This is the skeleton code for the AQA AS Paper from 2017. This code is useful for those retaking, and can also be used as a practise for those taking a newer paper.
This is where suggestions can be made about what some of the questions might be, and how they can be solved in different programming languages. If you see that a solution to a question is missing in a language you use, be bold and add it!
Please be respectful and do not vandalise or tamper with the page, as this would affect students' preparation for their exams!

## Add Wind
### C#

Answer:

### Python

Answer:

## Make Sure The Number of Years Entered Is Valid
### VB.NET

Answer:

### Fire

Answer:

### Java Solution

Answer:

### Python Solution

Answer:

### C# Solution

Answer:

### Delphi/Pascal Solution

Answer:

## Crop Virus
### C# Solution

Answer:

### Java Solution

Answer:

### Python Solution

Answer:

### Python Solution 2

Answer:

### VB.NET Solution

Answer:

### Delphi/Pascal Solution

Answer:

## Save File
### Python Solution

Answer:
ALTERNATIVE
def SaveFile(Field):
** edited simulation
def Simulation:

### VB.NET Solution

Answer:

### Delphi/Pascal Solution

Answer :
Answer:

### Java Solution

Answer :call method in simulation
Answer:
static void WriteFile(char Field) {

### Java Solution 2

Answer :call method in simulation
Answer:

### C# Solution

Answer :
Answer:

### C# Solution 2 - the better one *if you don't want to load file again*

Answer :
Answer:

### Python Solution:

Answer :
Answer:

## Adding Rocks to the Simulation

Currently the rocks are defined as a constant but not used - we can either allow the user to enter a number of rocks to be randomly placed, or add a random number of rocks to the field.

### VB.NET Solution

Answer:

### Java Solution

Answer:

### Java Solution 2

Answer:

### Python Solution

Answer:

### C# Solution

Answer:

### Delphi/Pascal Solution

Answer:

## Changing the seed position

This includes either allowing the player to set exact coordinates of the seed (which should also implement column letters), or spawn the seed in a random position.

### C# Solution

Answer :
Answer:
Answer 2 :
Answer:

### VB.Net Solution

Answer:
Within Function CreateNewField, below the code that selects the number of rocks if that is in use.
Adding a new function:

### Python Solution

Answer:
This solution will require that you add import random to the start of the program.

### Java Solution

Answer:

## Change the program so when you enter number of years it doesn't accept any character input and returns an error with another chance of input.

Change the program so when you enter number of years it doesn't accept any character input and returns an error with another chance of input.

### C# Solution

Answer :
Answer:

### Delphi/Pascal Solution

Answer :
Answer:

### Java Solution

Answer :
Answer:

### Python Solution

Answer :
Answer:

### Alternate Python solution

Answer:

### VB.NET Solution

Answer :
Answer:

## Add functionality for plants that thrive on or require frost

Add functionality for plants that thrive on or require frost

### C# Solution: Adds very frosty plants

Answer :
Answer:

### C# Solution: Adds frosty plants

Answer :
Answer:

### Delphi/Pascal Solution

Answer :
Answer:

### Java Solution

Answer :
Answer:

### Python Solution

Answer :
Answer:

### VB.NET Solution

Answer :
Answer:

## Intelligent File Opening

When the program loads a file, if the user does not include the ".txt" extension, ensure that it is automagically added.

### C# Solution

Answer :
Answer:

### Delphi/Pascal Solution

Answer :
Answer:

### Java Solution

Answer :
Answer:

### Python Solution

Answer :
Answer:

### VB.NET Solution

Answer :
Answer:

## The rows are numbered but not the columns. Fix this columns as letters.
### C# Solution

Answer :
Answer:

### C# Solution 2 (an easier on that requires less work and looks cooler!)

Answer :
Answer:

### C# Solution 3 (Solution 1 but uses vertical numbers instead of base 62 *works for field sizes larger than 62)

Answer :
Answer:

### Pascal Solution

Answer :
Answer:

### Java Solution

Answer :
Answer:

### Python Solution

Answer 1:
Answer:
Answer 2:
Answer:
Answer 3:
Answer:
Answer 4: Vertical Columns
Answer:
Answer 5:
Answer:
Answer 6:
Answer:

### VB.NET Solution

Answer:

## Every year in winter a bird (B) flies down a column and eats all seeds in it.
### C# Solution

Answer :
Answer:

### Pascal Solution

Answer :
Answer:

### Java Solution

Answer :
Answer:
static void SimulateBird(char Field)

### Python Solution

Answer :
Answer:

### VB.NET Solution

Answer :
Answer:
'Big up Newvic mandem u get me 'The Real Swifty $IBRAHIM$ THE ROADMAN69
Answer 2:
Answer:

## Implement a 1 in 40 chance of a Meteor Storm occurring, which spawns 2 meteors in the field, and sets the whole field on fire, ending the simulation.
### C# Solution

Answer :
Answer:

### Java Solution

Answer:
Answer:

### Python Solution

Answer :
Answer:
Another Answer :
Answer:

## Implement a 10% chance of Tornado in Autumn where Plants are destroyed and Seeds and Rocks are randomly rearranged in a 10x10 grid
### C# Solution

Answer :
Answer:

### Pascal Solution

Answer :
Answer:

### Java Solution

Answer :
Answer:

### Python Solution

Answer 1:
Answer:
Answer :
Answer:

### VB.NET Solution

Answer :
Answer:
'to start the tornado
'how the tornado works
~ 'Big up NewVic man dem 'The Real Swifty ~

## Implement a rock wall around the field
### Python Solution

Answer 1:
Answer:

### Python Solution

Answer 2:
Answer:

### Python Solution

Answer 3:
Answer:

### Python Solution

Answer 4:
Answer:

### Java Solution

Answer:
Answer:

### C# Solution

Answer 1:
Answer:
Answer 2:
Answer:

### VB.Net Solution

Answer 1:
Answer:

## Implement Season 0, i.e. show the state of the field when the seed is sown - at the start of Spring

[i.e. When the simulation starts, the first field shown is the state of the field at the END of Spring. If you start, for example, with the TestCase.txt file, you will not see the field as it is in the TestCase.txt file, but only once Spring has sprung. This amendment requires the simulation to show the point when Spring starts and then continues as before. Thus, any test file used as the starting point will be shown as Season 0 (to confirm that the field state is as it should be when the test file is read, and the simulation then continues. Hope this is a clearer explanation. Apologies if this has simply muddied the water.]
I've read this at least 40 times and I still have no idea what this question means.
I think this will come up - Excellent question.

### VB.NET Solution

Answer :
Answer:

### Java Solution

Answer:
Answer:

### C# Solution

Answer :
Answer:

### Python Solution

Answer :
Answer:

### Python solution

Answer: