Question

Programming language "Visual C# (C# - similar in syntax to Java," Your form accepts six inputs...

Programming language "Visual C# (C# - similar in syntax to Java,"

Your form accepts six inputs from the user, all of them being information about individual students in a class. The first input is the student’s name. The next three are homework scores, each score being out of 50. The last two are test scores, each score being out of 30. (These scores can have fractional parts; a score like 10.5 is possible)

Use textboxes to collect the inputs. The homework textboxes are grouped inside a groupbox captioned Homework, and the textboxes for test scores are grouped inside a groupbox captioned Tests.

Implement Submit and Clear buttons.

Scaled Total Score is calculated out of 100, by scaling the homework component to 60 points, and the test component to 40 points. (All homework scores are treated equally; so are all the test scores).

Clicking the Submit button displays the inputs and the calculated result in a multi-line textbox.

Displayed output should use one line for each separate item of information. For example, as below:

Name:  

Homework 1: /50

Homework 2: /50

Homework 3: /50

Test 1: /30

Test 2: /30

Scaled Total Score: /100

Clear gets ready for new inputs.

Data example:

Each homework score is out of 50. Say the three homework scores are 25, 30 and 20. That works out to half of the maximum the student could have got for homework; in turn, out of the 60 possible hw points, this yields 30 points.

Each test score is out of 30; if the student got 10 and 5 as test scores, that works out to one-fourth the maximum, yielding 10 out of the 40 possible test points in the scaled total.

So, the scaled total score out of 100 becomes 30 + 10 = 40.

(note that in your implementations it is possible you went for the percentages instead of fractions like ‘half’ or ‘one-fourth’; and in the scaled total, 60 and 40 percent instead of 60 and 40 points)

0 0
Add a comment Improve this question Transcribed image text
Answer #1

Design

Coding

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace TestScore
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}

private void btnsubmit_Click(object sender, EventArgs e)
{
double hw_total, hw_total_outscale, test_total, test_total_outscale,total_scale;//usefull varibale declare here
hw_total = (Convert.ToInt32(txthw1.Text) + Convert.ToInt32(txthw2.Text) + Convert.ToInt32(txthw3.Text))/3;//calculate total of homework
hw_total_outscale = hw_total * 6 / 5;//scale homework here
test_total = (Convert.ToDouble(txttest1.Text) + Convert.ToDouble(txttest2.Text))/2;//test homework here
test_total_outscale = test_total * 4/3;//scale of test here
total_scale = hw_total_outscale + test_total_outscale;//total outof 100
txtresult.Text = "Name:" + txtstudentname.Text+Environment.NewLine;
txtresult.Text += "Homework 1:" + txthw1.Text + "/50" + Environment.NewLine;
txtresult.Text += "Homework 2:" + txthw2.Text + "/50" + Environment.NewLine;
txtresult.Text += "Homework 3:" + txthw3.Text + "/50" + Environment.NewLine;
txtresult.Text += "Test 1:" + txttest1.Text + "/30" + Environment.NewLine;
txtresult.Text += "Test 2:" + txttest2.Text + "/30" + Environment.NewLine;
txtresult.Text += "Scaled Total Score::" + total_scale + "/100" + Environment.NewLine;
}

private void btnclear_Click(object sender, EventArgs e)
{
//clear here all
txtstudentname.Text = "";
txthw1.Text = "";
txthw2.Text = "";
txthw3.Text = "";
txtresult.Text = "";
txttest1.Text = "";
txttest2.Text = "";

}
}
}

output:

if you still have any Problem regarding this question please comment and if you like my code please appreciate me by thumbs up thank you.........

Add a comment
Know the answer?
Add Answer to:
Programming language "Visual C# (C# - similar in syntax to Java," Your form accepts six inputs...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • Need code written for a java eclipse program that will follow the skeleton code. Exams and...

    Need code written for a java eclipse program that will follow the skeleton code. Exams and assignments are weighted You will design a Java grade calculator for this assignment. A user should be able to calculate her/his letter grade in COMS/MIS 207 by inputting their scores obtained on worksheets, assignments and exams into the program. A skeleton code named GradeCompute.java containing the main method and stubs for a few other methods, is provided to you. You must not modify/make changes...

  • Please Write in C++ (10-30) @ 11:55pm 1.9 HW7 This homework assignment gives you the opportunity...

    Please Write in C++ (10-30) @ 11:55pm 1.9 HW7 This homework assignment gives you the opportunity to practice functions, functions that call other functions, reference variables, logical statements (what is meant by logical statement is a statement such as if, if/else if, switch), and input validation, HW7 (Graded out of 100) A talent competition has 5 judges, each of whom awards a score between 0 and 10 for each performer. Fractional scores, such as 8.3, are allowed. A performer's final...

  • Plz help!! The programming language is C and could you write comments as well? Problem 2....

    Plz help!! The programming language is C and could you write comments as well? Problem 2. Calculate Grades (35 points) Arrays can be used for any data type, such as int and char. But they can also be used for complex data types like structs. Structs can be simple, containing simple data types, but they can also contain more complex data types, such as another struct. So you could have a struct inside of a struct. This problem deals with...

  • a ruby program problem **************************************************************************** Ruby These short language exercises are intended to help you to...

    a ruby program problem **************************************************************************** Ruby These short language exercises are intended to help you to explore new languages with differing paradigms and syntax. In this assignment you will complete a Ruby program. I will give you help on where and what to look for in Ruby to assist you. Write a Ruby program to solve the following problem: Open a file that has a list of scores between 0 and 100. There may be as many as 100 scores...

  • C++ Programming

    PROGRAM DESCRIPTIONIn this project, you have to write a C++ program to keep track of grades of students using structures and files.You are provided a data file named student.dat. Open the file to view it. Keep a backup of this file all the time since you will be editing this file in the program and may lose the content.The file has multiple rows—each row represents a student. The data items are in order: last name, first name including any middle...

  • 1. Describe a comparison of Supplier Measurement and Evaluation systems in a tabular form. 2. Cost-based...

    1. Describe a comparison of Supplier Measurement and Evaluation systems in a tabular form. 2. Cost-based System and Supplier Performance Index Supplier Performance Report ending December 2018 Supplier: ABC Company Commodity: Integrated circuits for dishwashers A. 120 units were purchased @$79.95 per unit Nonperformance costs Event Number of Average cost occurrences per occurrence 9 $ 35 Late delivery Return to supplier 5 $ 19 Scrap labor cost $38 Testing and re-storage 11 St Compute the Supplier Performance Index (SPI) for...

  • Grading Policy In addition to three in-class tests and a final exam, the final grade will...

    Grading Policy In addition to three in-class tests and a final exam, the final grade will include assessment of homework, quiz projects/classroom activities, and classroom participation, according to the following weights 1. Homework and Worksheets 2. Three Tests 3. Final Exam 4. Quizzes and Class Participation/Classroom Citizenshi 1 5% 40% 25% 20% Total 100% Grad Ran 92 100 90-91 88-89 82-87 80-81 an 78 -79 70-77 68 -69 66 67 60- 65 Assignment Grading: Each written assignment, except the Final...

  • In C Langage Write a grading program for a class with the following grading policies:- a. There are two quizzes, each gr...

    In C Langage Write a grading program for a class with the following grading policies:- a. There are two quizzes, each graded on the basis of 10 points. b. There is one midterm exam and one final exam, each graded on the basis of 100 points. c. The final exam counts for 50 percent of the grade, the midterm counts for 25 percent and the two quizzes together count for a total of 25 percent. Grading system is as follows:-...

  • I need a simple program in C language that calculates the values of Sine, Cosine, and...

    I need a simple program in C language that calculates the values of Sine, Cosine, and Tangent of values given in degrees. It has to be a range of values between 0 and 360(integer values). The output should be a table of values showing Sin, Cos and Tan values. The complete computation and printing of the table must be done inside a function. The function also returns to the main program with 3 output arguments: It also needs to show...

  • Please use C++ as a Programming language and do the tasks specified per the Guideline above...

    Please use C++ as a Programming language and do the tasks specified per the Guideline above and include comments of your work. Please make sure that the following test cases are working: Example 1 For input D13 D60 D76 D12 A17 D98 A94 D70 D3 A23 A42 D45 A100 D50 A99 A22 A87 A4 A90 D88 A71 A20 D39 D83 A97 A56 D28 A9 D43 A19 D5 A11 A54 A73 D54 A9 A24 A58 D6 D80 A72 A47 A82 A12...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT