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

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 17:00
Which of the following is not contained on the slide show toolbar? a. next button b. slide button c. close button d. pen tool
Answers: 1
question
Computers and Technology, 24.06.2019 13:50
Write a program that performs a simple n-body simulation, called "jumping leprechauns." this simulation involves n leprechauns, numberd 1 to n. it maintains a gold value g_i for each leprechaun i, which begins with each leprechaun starting out with a million dollars worth of gold, that is, g_i = 1000000 for each i = 1,. in addition, the simulation also maintains, for each leprachaun,i, a place on the horizon, which is represented as a double-precision floating point number, x_i. in each iteration of the simulation, the simulation processes the leprachauns in order. processing a leprachaun i during its iteration begins by computing a new place on the horizon for i, which is determined by the assignment:
Answers: 3
question
Computers and Technology, 24.06.2019 22:50
Which of these might be an example of an advertiser's target group? a.people who have no access to media b.people the advertisers know nothing about c. people who watch a variety of tv shows d. people who live in the same region of the country
Answers: 2
question
Computers and Technology, 24.06.2019 23:00
Systolic pressure is a measure of blood pressure when the ventricles relax and fil with blood ture or false
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
question
Mathematics, 05.05.2020 03:46
question
History, 05.05.2020 03:46
question
Physics, 05.05.2020 03:46
Questions on the website: 13722367