Question

In: Computer Science

1. Start a new Visual Studio project and name it GradeAppa. Make sure your project...

1. Start a new Visual Studio project and name it GradeApp

a. Make sure your project is a web project

b. Make sure it is using C#

2. Add a new folder and name it Grades_Logic

3. Inside this new folder create a new web form called “Grades”

4. Add a label to hold text “Enter Grade”

5. Add a text field in front of the label to receive the grade

6. Add another label in a new line to display the text “Participation”

7. Place a drop-down list in front of this label containing the following:

a. Excellent Participant

b. Very Good participant

c. Good participant

d. Fair participant

e. Poor participant

f. Did not participate

8. Add a button in a new line called submit labeled “Submit Evaluation”

9. In a new line below the button add a label to display the output with no text in it

10. Create a code behind to display the final evaluation based on the score entered in the text box and the participation selected from the drop-down list.

11. Final evaluation should be “Excellent”, “Very Good”, “Good”, “Fair”, or “Poor”

12. The logic should work as the following:

a. The grade should present 90% of the total evaluation

b. The participation should be 10% of the total evaluation

i. Excellent Participant = 100% of participation weight

ii. Very Good participant = 90% of participation weight

iii. Good participant = 80% of participation weight

iv. Fair participant = 70% of participation weight

v. Poor participant = 50% of participation weight

vi. Did not participate = 0% of participation weight


13. The final evaluation will be as the following:

a. Excellent = 91% - 100% of total grade

b. Very Good = 81% - 90% of total grade

c. Good = 71% - 80% of total grade

d. Fair = 60% - 70% of total grade

e. Poor is anything below 60% of total grade

Solutions

Expert Solution

Hey, I am pasting the two files here, one is frontend, another is backend. I do not have enough options to send you the Visual Studio project.

Grades.aspx //this file is frontend

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Grades.aspx.cs" Inherits="GradeApp.Grades_Logic.Grades" %>








%




Please Select
Excellent Participant
Very Good participant
Good participant
Fair participant
Poor participant
Did not participate










Grades.aspx.cs //this is backend logic file

using System;

namespace GradeApp.Grades_Logic
{
public partial class Grades : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{

}

protected void Evaluate(object sender, EventArgs e)
{
var grades = float.Parse(gradebox.Text);
//90% weight
grades = grades * 0.9f;

var sel = ddlParticipation.Items[ddlParticipation.SelectedIndex].Value;
float part = 0;
//10% weight
switch(sel)
{
case "Excellent Participant":
part = 10;
break;
case "Very Good participant":
part = 9;
break;
case "Good participant":
part = 8;
break;
case "Fair participant":
part = 7;
break;
case "Poor participant":
part = 5;
break;
case "Did not participate":
part = 0;
break;
}
var finVal = grades + part;
if (finVal >= 91)
final.Text = "Excellent";
else if (finVal >= 81)
final.Text = "Very Good";
else if (finVal >= 71)
final.Text = "Good";
else if (finVal >= 60)
final.Text = "Fair";
else
final.Text = "Poor";
}
}
}


Related Solutions

1. Make a Console App (.NET Core) in Visual Studio and name it as A1YourFirstnameLastname. 2....
1. Make a Console App (.NET Core) in Visual Studio and name it as A1YourFirstnameLastname. 2. Implement a vehicle rental management system which is capable of doing the following: • View all, available and reserved vehicles. • Reserve vehicle or cancel a reservation. 3. The application must be menu-based app: 1 - View all vehicles 2 - View available vehicles 3 - View reserved vehicles 4 - Reserve a vehicle 5 - Cancel reservation 6 - Exit 4. NOTE: At...
Create a new “Area” project. Create a new Visual Studio Project and call it “Area”. This...
Create a new “Area” project. Create a new Visual Studio Project and call it “Area”. This project will be used to calculate the area of certain figures, like circles, squares and rectangles. So add a title to the Form. The Form Title should say “Area”. Also add 3 labels, 3 Buttons, 3 Textboxes and 3 RadioButtons. The 3 Buttons should be near the bottom of the Form and say “Calc Area”, “Clear” and “Exit”. Make sure to give all your...
Start by creating a new Visual Studio solution, but chose a “class library .Net Core” as...
Start by creating a new Visual Studio solution, but chose a “class library .Net Core” as the project type. It will create a file and a class definition in that file.  Rename the file to be ToDo.cs  and accept the suggestion which will also rename that class to be Class Todo { } In that class, create             - a string property called Title             - an int property called  Priority             - a bool property called Complete Also, define one Constructor that takes in one...
Create a Visual Studio console project named exercise101. The main() function should prompt for the name...
Create a Visual Studio console project named exercise101. The main() function should prompt for the name of a text file located in the same directory as exercise101.cpp, and search for a word in the text file as follows: Enter text file name: Enter search word: The program should print the number of occurrences of the word in the file: occurrences of were found in If the file could not be opened then display: File not found Use Stream file I/O...
Write a C program The Visual Studio project itself must make its output to the Console...
Write a C program The Visual Studio project itself must make its output to the Console (i.e. the Command Prompt using printf) and it must exhibit the following features as a minimum: 3%: Looping Menu with 3 main actions: View Cars, Sell Car, View Sales Note: A Car is defined by its price and model 3%: Must contain at least three arrays to record sales figures (maximum of 10 Car models) Two for recording the price and model of one...
Write a C program of car sale: The Visual Studio project itself must make its output...
Write a C program of car sale: The Visual Studio project itself must make its output to the Console (i.e. the Command Prompt using printf) and it must exhibit the following features as a minimum: 10%: Looping Menu with 2 main actions: Sell Car, View Sales Note: A Car is defined only by its price 10% Must contain at least one array containing sales figures (each entry represents the price of one vehicle) for a maximum of 10 Cars 5%:...
Create a new Visual Studio console project named assignment042, and translate the algorithm you developed in...
Create a new Visual Studio console project named assignment042, and translate the algorithm you developed in Assignment 04.1 to C++ code inside the main() function. Your program should prompt for a single 9-digit routing number without spaces between digits as follows: Enter a 9-digit routing number without any spaces: The program should output one of: Routing number is valid Routing number is invalid A C++ loop and integer array could be used to extract the routing number's 9 digits. However...
Make a Program in Visual Studio / Console App (.NET Framework) # language Visual Basic You...
Make a Program in Visual Studio / Console App (.NET Framework) # language Visual Basic You will be simulating an ATM machine as much as possible Pretend you have an initial deposit of 1000.00. You will Prompt the user with a Main menu: Enter 1 to deposit Enter 2 to Withdraw Enter 3 to Print Balance Enter 4 to quit When the user enters 1 in the main menu, your program will prompt the user to enter the deposit amount....
Create a C++ project in visual studio. You can use the C++ project that I uploaded...
Create a C++ project in visual studio. You can use the C++ project that I uploaded to complete this project. 1. Write a function that will accept two integer matrices A and B by reference parameters, and two integers i and j as a value parameter. The function will return an integer m, which is the (i,j)-th coefficient of matrix denoted by A*B (multiplication of A and B). For example, if M = A*B, the function will return m, which...
Create a C# .NET Core Console project in Visual Studio. (This is the same kind of...
Create a C# .NET Core Console project in Visual Studio. (This is the same kind of project we have been doing all semester.) Do all of the following in the Program class. You do not need to add any other classes to this project. 2. If it exists, remove the Console.WriteLine(“Hello World!”); line that Visual Studio created in the Program class. 3. At the very top of the Program.cs page you should see using System; On the empty line below...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT