Back to Freecodecamp

Guided Project - Calculate and Print Student Grades

curriculum/challenges/english/blocks/write-your-first-code-using-c-sharp/647e235a8acb466c97ccbf00.md

latest1.3 KB
Original Source

--description--

This challenge will be partially completed on the Microsoft Learn platform. Follow these instructions to complete the challenge:

  1. Go to <a href="https://learn.microsoft.com/training/modules/guided-project-calculate-print-student-grades/" target="_blank" rel="noreferrer">https://learn.microsoft.com/training/modules/guided-project-calculate-print-student-grades/</a> and complete all the tasks for the "Guided Project - Calculate and Print Student Grades" module. This is required to earn the "Write Your First Code Using C#" trophy on Microsoft Learn, and qualify for the certification exam.
  2. When you are finished, come back and correctly answer the question below.

--assignment--

Complete the <a href="https://learn.microsoft.com/training/modules/guided-project-calculate-print-student-grades/" target="_blank" rel="noreferrer">Calculate and Print Student Grades</a> guided project on Microsoft Learn. Then, answer the question below.

--questions--

--text--

What is wrong with the following code?

csharp
int sophiaSum;
Console.WriteLine("Sophia: " + sophiaSum);

--answers--

sophiaSum is not initialized before use


sophiaSum is not implicitly typed to a string


sophiaSum should use the var keyword

--video-solution--

1