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
Is it excusable behavior for a mentally ill person to commit murder?
belka [17]
In my opinion it’s not excusable.
7 0
3 years ago
Sofia has prepared her speech in great detail. She is practicing to deliver it from a brief set of notes, and every time she goe
blsea [12.9K]

Answer: C. Extemporaneous

Explanation:

Extemporaneous is giving a speech either offhand or without following exact preparation. This is the kind of delivery Sofia is planning.

5 0
3 years ago
N contrast to what many older generations believe about texting, discuss mcwhorter's views on the subject. what does he think an
omeli [17]
Mc Whorter believes that texting “degradates written language” because he deliberates that texting is not really a written language. He also adds that texting bear a resemblance to spoken language due to the fact that it evades punctuation and capitalization. It has a tendency to to be looser and telegraphic, as well as less reflective.
3 0
3 years ago
Read 2 more answers
I need a pargraph summarizing the effect of third parties on the United States
Sever21 [200]
Check out wikipedia. The US exepts inmigrants from any country In the world.
8 0
3 years ago
Whenever someone visits the website for The Missoulian (a local newspaper in Missoula, MT) and clicks an ad to go to the sponsor
Diano4ka-milaya [45]

The Missoulian is using the Click-Through  method of charging for advertising.

<u>Explanation: </u>

The mouse-click button method imitates the feature. That way, an item can be pressed, as if the user clicks manually.

The click-through rate (CTR) of online publicity is the proportion of people who visit a website and press a particular ad on that page. Click rating tests how effective an ad is in catching the attention of consumers.

The higher the click rate, the greater the interest generated by the ad. A high rate of clicks can help a site owner by delivering advertising money.

7 0
3 years ago
Other questions:
  • Improvements in tools during the Mesolithic Era include the use of bones.
    6·2 answers
  • A father experienced the onset of chest pain and dies suddenly. The family asks, "What caused him to die so suddenly?"
    10·1 answer
  • What is the absolute location of north Carolina​
    5·2 answers
  • What are some products that we get<br> from mineral resources?
    8·2 answers
  • What is inflation? a decrease in the overall price level an increase in the amount of money in circulation an increase in the ov
    11·1 answer
  • How did the aztecs carry fresh water across lake texcoco
    10·2 answers
  • 5. How did mercantilist policies create tension between Great Britain and the colonies? Please hurry
    6·1 answer
  • Compare and contrast five different reasons for youth unemployment with those for general unemployment. ​
    12·1 answer
  • Person-centered therapists use a variety of exercises and techniques, among them the empty-chair technique. True False
    7·1 answer
  • Each day after completing 1 hour of the treadmill, Susan allows herself a break to relax and sit down.
    15·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!