The following program has several syntax errors as well as style inconsistencies. Identify a minimum of five
Question:
The following program has several syntax errors as well as style inconsistencies.
Identify a minimum of five syntax errors and three style violations. For an added challenge, correct all errors.
/****************************************
using System;
namespace ErrorExample
{
class ErrorExample
{
static void Main( )
{
int VAL1;
string aValue;
val1 = GETVal1(aValue);
WriteLine("value entered, plus one is {0}",
++val1);
Readkey( );
}
static GETVal1( )
{
Write("Enter a value: ");
aValue = readline( );
val1 = int.Parse(aValue);
return int VAL1;
}
}
}
Fantastic news! We've Found the answer you've been seeking!
Step by Step Answer:
Related Book For
C# Programming From Problem Analysis To Program Design
ISBN: 9781285856872
5th Edition
Authors: Barbara Doyle
Question Posted: