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...
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...
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...
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...
C++ PROGRAM Using the attached C++ code (Visual Studio project), 1) implement a CoffeeMakerFactory class that...
C++ PROGRAM Using the attached C++ code (Visual Studio project), 1) implement a CoffeeMakerFactory class that prompts the user to select a type of coffee she likes and 2) returns the object of what she selected to the console. #include "stdafx.h" #include <iostream> using namespace std; // Product from which the concrete products will inherit from class Coffee { protected:    char _type[15]; public:    Coffee()    {    }    char *getType()    {        return _type;   ...
CIS247C WEEK 2 LAB The following problem should be created as a project in Visual Studio,...
CIS247C WEEK 2 LAB The following problem should be created as a project in Visual Studio, compiled and debugged. Copy your code into a Word document named with your last name included such as: CIS247_Lab2_Smith. Also include screen prints of your test runs. Be sure to run enough tests to show the full operation of your code. Submit this Word document and the project file (zipped). The Zoo Class This class describes a zoo including some general visitor information. We...
**please make sure this is original work** Project 1 The goals are: Project 1 - classes,...
**please make sure this is original work** Project 1 The goals are: Project 1 - classes, text data file, GUI, searching  Define and implement appropriate classes, including: o instance and class variables, o constructors, o toString methods, and o other appropriate methods.  Read data from a text file: o specified at run time,  JFileChooser jfc = new JFileChooser ("."); // start at dot, the current directory o using that data to create instances of the classes, o...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT