1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
FrozenT [24]
3 years ago
6

Personalize your code by adding statements that print your name, course, and assignment title to the console.

Social Studies
1 answer:
Arisa [49]3 years ago
7 0

Solution :

class MainClass {

public static void Main(string[] args){

// Declaring variables here

// Change the name , course name and assignment name

String name = "Your name here"; //Stores name of the student

String courseName = "Course Name here"; //Stores course name

String assignmentName = "Assignment name here";//Stores assignment name

int answer; //Stores answer

// Dispaying the name , course and assignment name

Console.WriteLine("Name: "+ name);

Console.WriteLine("Course Name: "+ courseName);

Console.WriteLine("Assignment Name: "+ assignmentName);

// Displaying Question 1

Console.WriteLine("\nQuestion 1: Is the Carbon or Graphite Fiber is lighter than that of Aluminum or the steel?");

// Displaying options

Console.WriteLine("Answer $.1=$Yes\nAnswer 2.= No");

// Prompting user to choose the correct answer

Console.WriteLine("Choose the correct answer");

// Taking input from the user and cnverting into int

answer = Convert.ToInt32(Console.ReadLine());

// Checking for the correct or wrong answer

String correct_or_wrong = 1 == answer ? "Correct": "Wrong";

// Displaying the result

Console.WriteLine(correct_or_wrong);

// Displaying Question 1

Console.WriteLine("\nQuestion 2: The $F/A-EF$ Super Hornet max speed is?");

// Displaying options

Console.WriteLine("Answer 1. = 890 MPH\nAnswer 2. = Mach 1.7\nAnswer 3. = Mach 2.9\nAnswer 4. = 967.3 MPH");

// Prompting user to choose the correct answer

Console.WriteLine("Choose the correct answer");

// Taking input from the user and cnverting into int

answer = Convert.ToInt32(Console.ReadLine());

// Checking for the correct or wrong answer

correct_or_wrong = 2 == answer ? "Correct": "Wrong";

// Displaying the result

Console.WriteLine(correct_or_wrong);

}

}

You might be interested in
What did Ireland trade in 1900's?
11Alexandr11 [23.1K]

Answer:

beef, butter, pork, herring, and linen

7 0
3 years ago
Read 2 more answers
Which of the following is not a physical property?​
Alisiya [41]

Answer:

Malleability, Solubility

Explanation:

Hope This Helps✌

7 0
3 years ago
Read 2 more answers
The most effective way to provide children with safety messages is to
natima [27]

Have hidden safety messages in their electronics, around the house, etc.

7 0
4 years ago
How did the inventor find out technology
Viefleur [7K]
Bro this is a deep question


7 0
3 years ago
Which method offers the most reliable way of assessing whether athletic performance is boosted by drinking soda with caffeine in
shusha [124]
The correct answer is the experiment. 

An experiment or experimental design in research studies refers to when a researcher manipulates and controls a variable (known as an independent variable) in order to determine its effect on other variables. In this instance, a researcher could assess whether athletic performance is boosted by drinking soda with caffeine in it by providing some athletes in the research study with a caffeinated soda and the remaining athletes with non-caffeinated soda. After this, the researcher can then find out whether the athletes who consumed the caffeinated soda had an improved performance compared to the participants who consumed non-caffeinated soda. 
5 0
3 years ago
Other questions:
  • What unique aeronautical design allowed the Saturn V rocket to reach outer space on its way to the moon?
    15·1 answer
  • The company you keep influences your behaviour true or false why
    13·1 answer
  • Mnnnnnnnnnnnnnnnnnnn
    12·1 answer
  • What coordinates is Bloemfontein South Africa approximately located
    9·1 answer
  • What did england depended on exported from the colony,such as timber and?
    14·2 answers
  • What is true regarding the impact of environmental experiences on brain development? plasticity is just an ideal, not a proven f
    9·1 answer
  • How are the indigenous people of Australia New Zealand working to revive the traditional cultures? Choose all that are correct.
    5·2 answers
  • Ashley and Jessica, sisters born two years apart, grew up in an impoverished, violent neighborhood. As adults, Ashley is chronic
    10·1 answer
  • COMPARE AND CONTRAST: How was the impact from World War 1 on Americans different from the impact of the previous wars, such as t
    10·1 answer
  • Identify the common themes that cut across the codes of ethics for different social science disciplines.
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!