资 源 简 介
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace Assignment_2_1
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void btnCalculate_Click(object sender, EventArgs e)
{
int GPA;
double SAT;
GPA = Convert.ToInt32(txtGPA.Text);
SAT = Convert.ToDouble(txtSAT.Text);
lblResult
txtGPA
txtSAT
btn
if (GPA > 100 || SAT > 1200)
{
MessageBox.Show("GPA > 100 or SAT > 1200 NOT ALLOW", "Input
too large", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
}
else
{
if (GPA > 50)
lblResult.Text = "Admit";
else
{
if (SAT>800)
lblResult.Text = "Co