I wanted to start programming and know how it works in both pseudocode and c#
String carName;
String carName;
String carPlate;
int i, j;
for (i = 0;i < size of carPark; i = i+1
for int b = 0;i < 2; b = b+1
carPark[i][b] = "empty";
// When guest comes
carName = Userinputs name;
carPlate = User inputs plate;
for int i = 0, i< size of carPark; i = i+1
for int b = 0; b<2; b= b+1
if carPark[i][b] ==/equals to "empty"
carPark[i][b] = carName;
carPlate[i][b+1] = carPlate;
return "Car has bee placed at space " + i
return "No empty spaces left"
// When guest leaves
for int i = 0, i< size of carPark; i = i+1
for int b = 0; b<2; b= b+1
if carPark[i][b] ==/equals to carName
carPark[i][b] = "empty"
carPark[i][b+1] = "empty"
return "Car has bee placed at space " + i
return "Car not found"

Rahat YasirRank #232 · 10.7K reputationPosted Nov 3, 2014, 10:27 AM EST
then you will be able to easily convert this peace of code.
you can take help from Microsoft Virtual Academy and Microsoft Press Books
Jagbir Saini8 reputationPosted Nov 3, 2014, 10:47 AM EST
Subramanyam RajuRank #650 · 3.7K reputationPosted Nov 28, 2014, 12:35 AM EST