107 449
Assignments Done
96%
Successfully Done
In May 2023

# Answer to Question #210142 in C# for Ali

Question #210142

Create a windows form app for percentage calculation:

Form 1:

1.enter course name

2.mention each course marks

3.enter obtained marks for each course

5.apply formula for percentage

Form 2:

1.show all course names

2.show each course individual marks

4.show a greeting message according to grade [hint: if grade A message would be “1st POSITION”]

1
2021-06-25T05:20:50-0400
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

public class Exercise12
{
static void Main(string[] args)
{
double rl,phy,che,ca,total;
double per;
string nm,div;

Console.Write("\n\n");
Console.Write("Calculate the total, percentage and division to take marks of three subjects:\n");
Console.Write("-------------------------------------------------------------------------------");
Console.Write("\n\n");

Console.Write("Input the Roll Number of the student :");

Console.Write("Input the Name of the Student :");

Console.Write("Input  the marks of Physics : ");
Console.Write("Input  the marks of  Chemistry : ");
Console.Write("Input  the marks of Computer Application : ");

total = phy+che+ca;
per = total/3.0;
if (per>=60)
div="First";
else
if (per<60&&per>=48)
div="Second";
else
if (per<48&&per>=36)
div="Pass";
else
div="Fail";

Console.Write("\nRoll No : {0}\nName of Student : {1}\n",rl,nm);
Console.Write("Marks in Physics : {0}\nMarks in Chemistry : {1}\nMarks in Computer Application : {2}\n",phy,che,ca);
Console.Write("Total Marks = {0}\nPercentage = {1}\nDivision = {2}\n",total,per,div);
}
}

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!