Student Course TimeTable Exam Project Notes Log Out User ID : 2017081031 Password : *******s First Name : Devon Last Name: Dickson Email Address : devon@gmail.com Contact Number: 475-8894 MYPAG: USC Student Course TimeTable Exam Project Notes Log Out My Course Notes CPTR321: Assignment 3/ Project 1 CPTR312: WireShark/ Lab 2 Public Course Notes ENGL215 : Book report CPTR312: Assignment 5 II
PLEASE EXPLAIN THE FOLLOWING C# code for the project shown in the images given here
using System;
public class
{
public static void Main()
{
Console.WriteLine("USC (PAG) Personal Academic Guide");
Console.WriteLine("Enter project course-1: markes");
int course1 = Convert.ToInt32(Console.ReadLine());
Console.WriteLine("Write some note about course-1:");
string note1 = Console.ReadLine();
Console.WriteLine("Enter project course-2: markes");
int course2 = Convert.ToInt32(Console.ReadLine());
Console.WriteLine("Write some note about course-2:");
string note2 = Console.ReadLine();
int grade = course1 + course2;
Console.WriteLine("\n");
Console.WriteLine("Your course-1 is: " + course1);
Console.WriteLine("Note-1 is: " + note1);
Console.WriteLine("Your course-2 is: " + course2);
Console.WriteLine("Note-2 is: " + note2);
Console.WriteLine("\n");
Console.WriteLine("Total grade is: " + grade);
}
}
output:
USC (PAG) Personal Academic Guide
Enter project course-1: markes
88
Write some note about course-1:
outstanding
Enter project course-2: markes
30
Write some note about course-2:
failed
Your course-1 is: 88
Note-1 is: outstanding
Your course-2 is: 30
Note-2 is: failed
Total grade is: 118
==================================================================
using System;
public class Program
{
public static void Main()
{
Console.WriteLine("USC Student Notes");
Console.WriteLine("Write any historical electronic record");
string record = Console.ReadLine();
Console.WriteLine("\n");
Console.WriteLine("record is: " + record);
}
}
Output:
USC Student Notes
Write any historical electronic record
test
record is: test
Trending now
This is a popular solution!
Step by step
Solved in 4 steps with 2 images