12312312

Xây Dựng Phần Mềm Tính Điểm Sinh Viên Theo Hệ Tín Chỉ

Xây Dựng Phần Mềm Tính Điểm Sinh Viên Theo Hệ Tín Chỉ

Hôm nay mình sẽ xây dựng phần mềm tính điểm Sinh Viên theo tính chỉ bậc đại học sử dụng C#
Trong Đó : cách tính điểm
Điểm Trung Bình Môn = Điểm Thường Kỳ* 20% + Điểm Thi Giữa Kỳ *20% + Điểm Thi Cuối Kỳ *60%

Giao Diện Phần Mềm :
cách xây dựng phần mềm
Bước 1 : Tạo 1 class : tên tinhdiem.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace TinhDiemSV
{
    class TinhDiem
    {
        private double DiemTK, DiemGK, DiemCK;
        public TinhDiem()
        {
            DiemTK = DiemGK = DiemCK = 10;
        }
        public TinhDiem(double diemtk, double diemgk, double diemck)
        {
            DiemTK = diemtk;
            DiemGK = diemgk;
            DiemCK = diemck;
        }
        public double TinhDiemTrungBinh()
        {
            return (DiemTK * 0.2 + DiemGK * 0.2 + DiemCK * 0.6);
        }
        public string XepLoaiSinhVien()
        {
            double Dtb = TinhDiemTrungBinh();
            if (Dtb <= 4)
            {
                return "F";

            }
            if (Dtb >= 4.0 && Dtb <= 4.9)
            {
                return "D";

            }
            if (Dtb >= 5 && Dtb <= 5.4)
            {
                return "D+";
            }
            if (Dtb >= 5.5 && Dtb <= 6.4)
            {
                return "C";
            }
            if (Dtb >= 6.5 && Dtb <= 6.9)
            {
                return "C+";
            }
            if (Dtb >= 7 && Dtb <= 7.9)
            {
                return "B";
            }
            if (Dtb > 8 && Dtb <= 8.4)
            {
                return "B+ ";
            }
            return "A ";


        }
        public string danhgiasinhvien()
        {
            double Dtb = TinhDiemTrungBinh();
            if (Dtb < 4)
            {
                return "Học Lại";
            }
            if (Dtb >= 5 && Dtb <= 5.4)
            {
                return "Trung bình yếu";
            }
            if (Dtb >= 5.5 && Dtb <= 6.4)
            {
                return "Trung Bình";
            }
            if (Dtb >= 6.5 && Dtb <= 6.9)
            {
                return "Trung bình khá";
            }
            if (Dtb >= 7 && Dtb <= 7.9)
            {
                return "Khá";
            }
            if (Dtb > 8 && Dtb <= 8.4)
            {
                return "Khá +";
            }
            return "giỏi";

        }
        public string XepLoaisinhvien()
        {
            double Dtb = TinhDiemTrungBinh();
            if (Dtb <= 4)
            {
                return "0";

            }
            if (Dtb >= 4.0 && Dtb <= 4.9)
            {
                return "1";

            }
            if (Dtb >= 5 && Dtb <= 5.4)
            {
                return "1.5";
            }
            if (Dtb >= 5.5 && Dtb <= 6.4)
            {
                return "2";
            }
            if (Dtb >= 6.5 && Dtb <= 6.9)
            {
                return "2.5";
            }
            if (Dtb >= 7 && Dtb <= 7.9)
            {
                return "3";
            }
            if (Dtb > 8 && Dtb <= 8.4)
            {
                return "3.5";
            }
            return "4";
        }
    }
    

}
Hàm Main
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 TinhDiemSV
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void btnTinh_Click(object sender, EventArgs e)
        {
            double diemtk = double.Parse(txtdiemtk.Text);
            double diemgk = double.Parse(txtdiemgk.Text);
            double diemck = double.Parse(txtdiemck.Text);
            TinhDiem sv = new TinhDiem (diemtk,diemgk,diemck);
            txtDiemTrungBinh.Text = sv.TinhDiemTrungBinh().ToString();
            txtXepLoai.Text = "" + sv.XepLoaiSinhVien();
            txtdiem4.Text = sv.XepLoaisinhvien();
            txtghichu.Text = "Xếp Loại :" + sv.danhgiasinhvien();
            txtdiemtk.Text = "";
            txtdiemgk.Text = "";
            txtdiemck.Text = "";


        }

        private void Form1_Load(object sender, EventArgs e)
        {

        }

        private void label7_Click(object sender, EventArgs e)
        {

        }

        private void label8_Click(object sender, EventArgs e)
        {

        }

        private void lblXepLoai_Click(object sender, EventArgs e)
        {

        }
    }
}

COMMENTS

quang cao1 Free website traffic to your site!
quang cao 2
quang cao 3
Tên

39 người việt nam chết tại anh,4,Ảnh Đẹp,1,C#,1,Chia Sẻ,34,ĐÀM ĐẠO LỊCH SỬ,2,Game Lậu,66,Game Mod,2,Game Sắp Ra Mắt,9,Giải Trí,6,Hồi Chuông Lạ,10,Hướng Dẫn Hack,1,Kĩ Thuật Youtube,3,Mu Online,6,Phần Mềm Free,3,Phim,2,Review Phim,111,ShareCode,2,SQL,1,Tiếng Anh Chuẩn Đầu Ra,1,Tips and Tricks,1,Trải Nghiệm Game,2,Túy Tây Du H5,1,Webgame Lậu,1,Youtube,10,
ltr
item
Chia Sẻ Hay: Xây Dựng Phần Mềm Tính Điểm Sinh Viên Theo Hệ Tín Chỉ
Xây Dựng Phần Mềm Tính Điểm Sinh Viên Theo Hệ Tín Chỉ
Xây Dựng Phần Mềm Tính Điểm Sinh Viên Theo Hệ Tín Chỉ
https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj3TLU9O_rZCmJXGddY8PqrvVEdhGV_Iud4BFeXBZVsVZZA0IqiDR-Lm5VKr7rFDXuG9HYmsSkK1BQr6qmsvt8IxJvCbV5d86LHgrkCSNC0hQzSN-HJC5FKai2xAwej3nej_H7cx1OAgrw/s640/tinh+diem+sinh+vien.PNG
https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj3TLU9O_rZCmJXGddY8PqrvVEdhGV_Iud4BFeXBZVsVZZA0IqiDR-Lm5VKr7rFDXuG9HYmsSkK1BQr6qmsvt8IxJvCbV5d86LHgrkCSNC0hQzSN-HJC5FKai2xAwej3nej_H7cx1OAgrw/s72-c/tinh+diem+sinh+vien.PNG
Chia Sẻ Hay
https://tapchicode.blogspot.com/2019/11/xay-dung-phan-mem-tinh-iem-sinh-vien.html
https://tapchicode.blogspot.com/
https://tapchicode.blogspot.com/
https://tapchicode.blogspot.com/2019/11/xay-dung-phan-mem-tinh-iem-sinh-vien.html
true
8654321755521810318
UTF-8
Loaded All Posts Not found any posts VIEW ALL Readmore Reply Cancel reply Delete By Home PAGES POSTS View All RECOMMENDED FOR YOU LABEL ARCHIVE SEARCH ALL POSTS Not found any post match with your request Back Home Sunday Monday Tuesday Wednesday Thursday Friday Saturday Sun Mon Tue Wed Thu Fri Sat January February March April May June July August September October November December Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec just now 1 minute ago $$1$$ minutes ago 1 hour ago $$1$$ hours ago Yesterday $$1$$ days ago $$1$$ weeks ago more than 5 weeks ago Followers Follow THIS CONTENT IS PREMIUM Please share to unlock Copy All Code Select All Code All codes were copied to your clipboard Can not copy the codes / texts, please press [CTRL]+[C] (or CMD+C with Mac) to copy