subject

I keep getting this error CS1529: A using clause must precede all other elements defined in the namespace except extern alias declarations. On the line of code (using System;) I highlighted in bold to tell the difference. this is a c# programming course I just started. I appreciate the help.
using System;
using align;
class Grades {
public static void Main(string[] args) {
const float MIDTERM_PERCENTAGE = .25F;
const float FINALEXAM_PERCENTAGE = .25F;
const float RESEARCH_PERCENTAGE = .30F;
const float PRESENTATION_PERCENTAGE = .20F;
int midterm = 70;
int finalExamGrade = 80;
int research = 90;
int presentation = 100;
float finalNumericGrade = 0;
finalNumericGrade =
(midterm * MIDTERM_PERCENTAGE) +
(finalExamGrade * FINALEXAM_PERCENTAGE) +
(research * RESEARCH_PERCENTAGE) +
(presentation * PRESENTATION_PERCENTAGE);
align. xyz abc = new align. xyz();
abc. disp("Midterm grade is : " + midterm);
abc. disp("Final Exam grade is : " + finalExamGrade);
abc. disp("Research grade is : " + research);
abc. disp("Presentation grade is: " + presentation);
abc. disp("\nThe final grade is: " + finalNumericGrade);
}
}
using System;
namespace align
{
class xyz
{
public void disp(string str)
{
Console. WriteLine(str);
}
}
}

ansver
Answers: 1

Other questions on the subject: Computers and Technology

image
Computers and Technology, 23.06.2019 07:00, lin550
Why were most movies from the late 1890s until the early 1930s only filmed in black and white? there were only a few people who could afford the technology to produce color motion pictures back then. audiences did not want color motion pictures until later. the film used to make color motion pictures often overheated, which was a safety hazard, so it was generally not allowed. color films had to be hand-colored, frame by frame.
Answers: 3
image
Computers and Technology, 23.06.2019 07:10, anika420
If you want to import a picture into a dtp application, what must you do first? draw an image frame. import text. open the folder containing the file. select get image… from the windows menu.
Answers: 2
image
Computers and Technology, 23.06.2019 11:30, kyraj21
Which excel file extension stores automated steps for repetitive tasks?
Answers: 1
image
Computers and Technology, 23.06.2019 12:30, legend101xD
Animations and transitions are added from the
Answers: 1
You know the right answer?
I keep getting this error CS1529: A using clause must precede all other elements defined in the name...

Questions in other subjects:

Konu
Mathematics, 04.12.2020 01:20
Konu
Mathematics, 04.12.2020 01:20