Не знаю, чего мне не хватает
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApp1 { class Program { static void Main(string[] args) { } } }
// средний класс с автоматическими свойствами для score1, score2 и score3.
using System; public class average { // auto-implemented property Score1 implicitly creates an // instance variable for the score1 public int Score1 { get; set; } // auto-implemented property Score2 implicitly creates an // instance variable for the score2 public int Score2 { get; set; } // auto-implemented property Score3 implicitly creates an // instance variable for the score3 public int Score3 { get; set; } //declare the remainder and avg variables int remainder; int avg; // constructor shell accepting three values, public average(int score1Value, int score2Value, int score3Value) { score1 = score1Value; score2 = score2Value; score3 = score3Value; } // calculate the average of the three scores public void computeAverage() { avg(score1 + score2 + score3) / 3; remainder(score1 + score2 + score3) % 3; } // display the average, you fill in the rest of the code public void DisplayAverage() } public class averageTest { public static void Main(string[] args) { //instantiate a new average object here, passing the //the score1, score2 and score3 values respectively //call myaverage.computeAverage //call myaverage.DisplayAverage() Console.WriteLine($"The average of { score1} , { score2} , { score3} is {average} with a remainder of { remainder}");// output a new line } // end Main
Что я уже пробовал:
я пробовал двигать скобки, добавляя скобки, двигаясь ;
ошибки возникают из-за использования системы;
а затем говорит using предложение должно предшествовать всем другим элементам определенным в пространстве имен кроме объявления extern alias