หน้าแรก
 การบ้าน
  C/C++ new
  Java new
  Windows Phone
  แจ้งเรื่องที่ต้องการ
 บทความ
  .NET
  Android
  Blackberry
  C++Builder
  Delphi
  Java
  Mobile
  Open Source
  Pocket PC
  Visual Basic
  Web
  Windows Phone
  Others
 แบบเรียนฟรี
  ASP
  ASP.NET Webmatrix
  C++
  eVB
  J2ME
  Java
  PHP
 ซอร์สโค้ด
  Android
  ASP
  C++
  VC++
  CGI-Perl
  Delphi
  Java
  jQuery
  PHP
  Visual Basic
  .NET
 บริการจากเรา
  เปิดท้าย... ขายโค้ด
  Freeware
  อัตราค่าโฆษณา
  รายชื่อลูกค้า
  สถิติผู้เข้าเว็บ
 ดาว์นโหลด
 ค้นหาข้อมูล
 กระดานสนทนา
  .NET
  C/C++
  Delphi
  Java
  Palm/PocketPC
  Visual Basic
  Web
  อื่นๆ
 กระดานงาน
 ลิงค์เว็บ
 เกี่ยวกับผม
 อัตราค่าโฆษณา
Social Network

Facebook  Twitter  YouTube
 New Article
 Webboard
 Freelanceboard
Freeware
โปรแกรมเบอร์ดี (BerDee)
โปรแกรมเบอร์ดี (Android)
เกมส์เป่ายิ้งฉุบ
เกมส์เป่ายิ้งฉุบ(Android)
WebcamMonitor
WebcamMonitor(Windows)
scSendMail
scSendMail(Windows)
MSN Caption
MSN Caption(Windows)
  Freelance comment
  ติดต่อสอบถามมาได้ตลอดนะ...
2015-07-29 13:35:58
  ถ้าผมต้องการเว็บที่พัฒน...
2015-01-18 15:33:54
  ถ้าผมต้องการเว็บที่พัฒน...
2015-01-18 15:32:51
  ติดต่อสอบถามเข้ามาได้นะ...
2014-01-06 12:47:38
  ถ้ายังหาคนสอนไม่ได้ ก็ลอ...
2013-07-06 01:04:37
  สนใจส่งขอบเขตมาคุยราคาก...
2013-03-24 18:54:20
  ถ้ายังไม่มีคนรับงานติดต...
2012-12-16 19:18:14
  สนใจคะ ติดต่อ 0905076277...
2012-11-12 11:07:46
  รับทำโปรเจ็คนักศึกษาหรื...
2012-10-29 03:10:46
  sukit_te34@hotmail.com...
2012-10-29 03:09:36
  Webboard comment
  เขียนโปรแกรมภาษาจาวา
1.โ...

2023-09-12 11:40:28
  ต้องลอง debug ดูเองครับ
ไล่...

2023-06-08 18:03:06
  ร้านค้าแห่งหนึ่ง จะต้องน...
2021-09-21 08:47:08
  จงเขียนโปรแกรมดำเนินการ...
2021-05-07 15:06:11
  จงเขียนโปรแกรมสำหรับคำน...
2021-03-09 14:21:45
  ขอดู...
2021-01-04 23:56:45
  ขอโค้ดเพื่อทำการเรียนกา...
2020-12-09 23:02:09
  แล้ว ?...
2020-12-09 10:56:34
  จ้า...
2020-10-18 16:53:21
  พอดีผมเหลื่อแค่ตัดสต๊อก...
2020-05-31 21:49:43
  Homework comment
  เขียนโปรแกรมเพื่อรับค่า...
2022-02-24 10:45:17
  จากโค้ดนี้อะครับ พอดีลอง...
2021-03-22 01:22:39
  จากโค้ดนี้อะครับ พอดีลอง...
2021-03-22 01:22:39
  โจทย์การบ้าน c++ เขียนรูปแ...
2020-04-06 11:01:33
  แบบนี้ขอเป็น ภาษา php หน่อย...
2019-09-18 14:36:34
  ผมไม่อยากให้คุณได้คะแนน...
2019-04-27 01:29:07
  อาจารย์เขาบอกแนวข้อสอบม...
2019-04-27 00:44:29
  ขอสอบถามการเขียน c++ ครับ เ...
2018-04-02 12:19:21
  โค้ดตัวอย่างศึกษาให้เข้...
2017-11-26 14:50:05
  คำนวณค่าน้ำโดยรับค่ามิเ...
2017-11-20 23:15:26
  Article comment
  เท่าที่อ่าน error คือพื้นที่...
2022-03-23 13:56:48
  เรียน สอบถามปัญหา กับ อ.คร...
2022-01-24 17:39:49
  ต้องการ ให้เขียน โปรแกรม ...
2019-12-09 11:39:58
  รับเขียน arx จาก vc++ 2017 ล็อคโปร...
2019-09-19 09:48:09
  ทำการ register ไฟล์ที่ชื่อ mswinsck.oc...
2019-09-17 14:05:56
  ใน vb 6 ไม่มี component winsock เลยค่ะ ส...
2019-09-03 10:31:02
  รบกวนขอสอบถามหน่อยนะครั...
2019-03-04 05:31:04
  สามารถนำตัวหนังสือจากภา...
2018-12-25 08:54:32
  มีcode ของ VB ไหมค่ะ ถ้ามีรบกว...
2017-09-28 16:50:02
  น่าจะได้ครับ ไม่เคยลอง
...

2017-07-11 09:59:35
  9Mcode comment

Link Exchange

อัตราค่าโฆษณา
 
 Webboard

- - - - - - - - - - - - - - ผู้ให้การสนับสนุน- - - - - - - - - - - - - -

กระทู้ #3386 [C] (จาก IP: 180.183.179.49)

ช่วยเขียนโปรแกรมภาษาซี หน่อยครับ

เป็นโปรแกรม คำนวนเกรด และก็คำนวน เกรดเฉลี่ย ที่ได้รับ
1.ให้รับค่าคะแนน 5 วิชา ได้แก่ ไทย อังกฤษ การจัดการ คอมโปร บัญชี และ คณิต
2.ให้แสดงเกรดที่ได้ในแต่ละวิชา
3.กำหนดให้ หน่วยกิตรวมเท่ากับ 18 หน่วยกิต
4.ให้แสดง เกรดเฉลี่ยที่ได้
5.แสดงเงื่อนไข ที่ว่า
ถ้าเกรดเฉลี่ย มากกว่า หรือเท่ากับ 3.50 ให้แสดงว่า First Class Honor
ถ้าเกรดเฉี่ย มากกว่าหรือ เท่ากับ 3.00 ให้แสดงว่า Second Class Honor
ถ้าเกรดเฉลี่ย มากกว่า 2.00 ให้แสดงว่า Commencement
และ เกรดเฉลี่ย <2.00 ให้แสดงว่า retire

ตัวหย่าง หน้าโปรแกรมครับ ตอนรัน

Input Score Thai : ..... (ให้ผู้ใช้ใส่คะแนน)

Input Score Eng : ..... (ให้ผู้ใช้ใส่คะแนน)

Input Score Mange : ..... (ให้ผู้ใช้ใส่คะแนน)

Input Score Com Pro : ..... (ให้ผู้ใช้ใส่คะแนน)

Input Score Math : ..... (ให้ผู้ใช้ใส่คะแนน)

Input Score Accoun : ..... (ให้ผู้ใช้ใส่คะแนน)

Your grade Thai is A,B+,B,C+ (แสดงผล)
.
.
.
your grade Accou is A,B+,B,C+


Your GPA is 3.50 (โปรแกรมแสดงผล)
First Class Honor (โปรแกรมแสดงผล)


จบ โปรแกรม

ช่วยผมทีครับ ไอ่ตอนทำเกรดอ่ะ พอได้ แต่มาคำนาณ เกรดเฉลี่ย รันยังไงมันก็ผิด ช่วยทีครับ งานที่ สังวันที่ 9 มกราคม 2556 ครับ
จากคุณ : ธนชิต / jay_pp112@hotmail.com [2012-12-26 14:00:42]  

58.8.240.45 ความคิดเห็น #28740 (จาก IP: 58.8.240.45)
ผิดยังไงครับ เช่น ค่าไม่ตรงแต่มีความใกล้เคียงหรือเปล่า ผมเดาว่าน่าจะเป็นเรื่องการการหารและปัดเศษ ลองดูเรื่องตัวแปร และ function ที่ใช้คำนวนครับ ว่าต้องแก้ไขอย่างไร
จากคุณ : maddog [2012-12-27 10:52:20]

180.183.178.118 ความคิดเห็น #28741 (จาก IP: 180.183.178.118)
ก็ลองดูแล้วอ่ะคับ มันงง หรือผม งง ไม่รู้ไง ผู้รู้ ลองช่วยเขียนแบบ เสร็จเรยได้ป่าวครับ ช่วยหน่อยนะคับ ของคุณล่วงหน้าครับ.
จากคุณ : ธนชิต / jay_pp112@hotmail.com [2012-12-27 19:58:47]

115.67.38.135 ความคิดเห็น #28748 (จาก IP: 115.67.38.135)
ผมก็ไม่รู้มากครับ แต่ถ้าคุณเขียนเองแล้วติดปัญหาแล้วผมก็อยากช่วยแนะนำ แต่หากคุณมองหาโค้ดสำเร็จผมก็คงไม่สามารถช่วยอะไรได้ ท่านใดอย่ากช่วยเชิญได้ครับ
จากคุณ : maddog [2012-12-31 22:46:13]

180.183.177.38 ความคิดเห็น #28755 (จาก IP: 180.183.177.38)
#include<stdio.h>
#include<conio.h>
void main ()
{
int math,eng,com,manage,thai,unit1;
float comgrade,enggrade,comprograde,managegrade,thaigrade,GPA;
printf("Score Mathematic is : "); scanf("%d",&math);
if (math> 100)
{printf("Error \n\n",math);}
else if (math>= 80)
{printf("Your Grade A \n\n",math);
comgrade=4.0;}
else if (math>= 75)
{printf("Your Grade B+\n\n",math);
comgrade=3.5;}
else if (math>= 70)
{printf("Your Grate B \n\n",math);
comgrade=3.0;}
else if (math>= 65)
{printf("Your Grate C+\n\n",math);
comgrade=2.5;}
else if (math>= 60 )
{printf("Your Great C \n\n",math);
comgrade=2.0;}
else if (math>= 55)
{printf("Your Grate D+\n\n",math);
comgrade=1.5;}
else if (math>= 50)
{printf("Your Grate D \n\n",math);
comgrade=1.0;}
else if (math<=49)
{printf("Your Grate F \n\n",math);
comgrade=0.0;}


printf("Score English is : "); scanf("%d",&eng);
if (eng> 100)
{printf("Error \n",eng);}
else if (eng>= 80)
{printf("Your Grate A \n\n",eng);
enggrade=4.0;}
else if (eng>= 75)
{printf("Your Grate B+\n\n",eng);
enggrade=3.5;}
else if (eng>= 70)
{printf("Your Grate B \n\n",eng);
enggrade=3.0;}
else if (eng>= 65)
{printf("Your Grate C+\n\n",eng);
enggrade=2.5;}
else if (eng>= 60 )
{printf("Your Great C \n\n",eng);
enggrade=2.0;}
else if (eng>= 55)
{printf("Your Grate D+\n\n",eng);
enggrade=1.5;}
else if (eng>= 50)
{printf("Your Grate D \n\n",eng);
enggrade=1.0;}
else if (eng<=49)
{printf("Your Grate F \n\n",eng);
enggrade=0.0;}

printf("Score Computer Programming is : "); scanf("%d",&com);
if (com> 100)
{printf("Error \n",com);}
else if (com>= 80)
{printf("Your Grate A \n\n",com);
comgrade=4.0;}
else if (com>= 75)
{printf("Your Grate B+\n\n",com);
comgrade=3.5;}
else if (com>= 70)
{printf("Your Grate B \n\n",com);
comgrade=3.0;}
else if (com>= 65)
{printf("Your Grate C+\n\n",com);
comgrade=2.5;}
else if (com>= 60 )
{printf("Your Great C \n\n",com);
comgrade=2.0;}
else if (com>= 55)
{printf("Your Grate D+\n\n",com);
comgrade=1.5;}
else if (com>= 50)
{printf("Your Grate D \n\n",com);
comgrade=1.0;}
else if (com<=49)
{printf("Your Grate F \n\n",com);
comgrade=0.0;}

printf("Score Management is : "); scanf("%d",&manage);
if (manage> 100)
{printf("Error \n",manage);}
else if (manage>= 80)
{printf("Your Grate A \n\n",manage);
managegrade=4.0;}
else if (manage>= 75)
{printf("Your Grate B+\n\n",manage);
managegrade=3.5;}
else if (manage>= 70)
{printf("Your Grate B \n\n",manage);
managegrade=3.0;}
else if (manage>= 65)
{printf("Your Grate C+\n\n",manage);
managegrade=2.5;}
else if (manage>= 60 )
{printf("Your Great C \n\n",manage);
managegrade=2.0;}
else if (manage>= 55)
{printf("Your Grate D+\n\n",manage);
managegrade=1.5;}
else if (manage>= 50)
{printf("Your Grate D \n\n",manage);
managegrade=1.0;}
else if (manage<=49)
{printf("Your Grate F \n\n",manage);
managegrade=0.0;}

printf("Score Thai is : "); scanf("%d",&thai);
if (thai> 100)
{printf("Error \n",thai);}
else if (thai>= 80)
{printf("Your Grate A \n\n",thai);
thaigrade=4.0;}
else if (thai>= 75)
{printf("Your Grate B+\n\n",thai);
thaigrade=3.5;}
else if (thai>= 70)
{printf("Your Grate B \n\n",thai);
thaigrade=3.0;}
else if (thai>= 65)
{printf("Your Grate C+\n\n",thai);
thaigrade=2.5;}
else if (thai>= 60 )
{printf("Your Great C \n\n",thai);
thaigrade=2.0;}
else if (thai>= 55)
{printf("Your Grate D+\n\n",thai);
thaigrade=1.5;}
else if (thai>= 50)
{printf("Your Grate D \n\n",thai);
thaigrade=1.0;}
else if (thai<=49)
{printf("Your Grate F \n\n",thai);
thaigrade=0.0;}

GPA=((comgrade+enggrade+comprograde+managegrade+thaigrade)*5)/15;
printf("GPA is %.1f\n",GPA);

if(GPA>=3.5)
printf("First Class Honor");
else if(GPA>=3.0)
printf("Second Class Honor");
else if(GPA>=2.00)
printf("Commencement");
else if (GPA<=1.99)
printf("Retire ");



getch();
clrscr();

}
จากคุณ : ธนชิต / jay_pp112@hotmail.com [2013-01-05 23:34:14]

180.183.177.38 ความคิดเห็น #28756 (จาก IP: 180.183.177.38)
ผล GPA ยังผิดอ่ะคับ ช่วยหน่อย
จากคุณ : ธนชิต / jay_pp112@hotmail.com [2013-01-05 23:35:51]

49.0.96.212 ความคิดเห็น #28767 (จาก IP: 49.0.96.212)
โปรแกรมรับค่าเป็น อาเรย์ 2 มิติ ขนาด3*3และแสดงผลดังนี้
รับค่า แสดงผล
1 1 1 0 1 1
3 3 3 3 0 3
5 5 5 5 5 0

โปรแกรมรับค่าลงStackแล้วPopค่าแสดงผลดังนี้
รับค่า 1-9
แสดงผล 1 2 3
4 5 6
7 8 9

โปรแกรมเพื่อรับค่าเก็บQและรับค่าอีกนำค่าออกมาจากQเพื่อแสดงผลดังนี้
รับค่า 1- 9
แสดงผล
1
2 3 4
5 6 7 8 9
ช่วยหน่อยนะค่ะจะสอบแล้วพุ่งนี้อ่ะค่ะ
จากคุณ : เตย / nuchwarin.tey34@gmail.com [2013-02-01 08:11:34]
ตอบกระทู้
  • ห้ามการโฆษณา หากต้องการติดต่อหาลูกค้า ติดต่อโฆษณาโดยตรงได้ที่ webmaster@sourcecode.in.th
  • ห้ามใช้คำหยาบและคำพูดที่ไม่เหมาะสม
  • ขอสงวนสิทธิหากตรวจพบ ข้อความที่ไม่เหมาะสม ข้อความนั้นจะถูกลบทันที
ชื่อ
อีเมล์
รายละเอียด

- - - - - - - - - - - - - - ผู้ให้การสนับสนุน- - - - - - - - - - - - - -

 
 
คลิปสอนเขียนโปรแกรม
เรียนเขียนโปรแกรมดอทเน็ต
เรียนเขียนโปรแกรมแอนดรอยด์
เรียนเขียนโปรแกรมเบล็คเบอร์รี่
เรียนเขียนโปรแกรมซี ซีพลัสพลัส
เรียนเขียนโปรแกรมจาวา
เรียนการใช้งานลินุกส์
เรียนการเขียนโปรแกรมวินโดว์โฟน
เรียนการเขียนโปรแกรมพีเฮชพี มายเอสคิวเอล
อัตราค่าโฆษณา
 
Tutorial
eVB Tutorial
ASP.NET Webmatrix Tutorial
J2ME Tutorial
C++  Tutorial
Java  Tutorial
PHP Tutorial
ASP Tutorial
 
แบบสำรวจ

Home - Article - Tutorial - Sourcecode - Dev Handbook - Search - WebBoard - Links - About Us

สงวนลิขสิทธิ์ ห้ามคัดลอก ทำซ้ำ แก้ไข ดัดแปลง ไม่ว่าในรูปแบบใด โดยไม่ได้รับอนุญาตเป็นลายลักษณ์อักษร
เลขทะเบียนพาณิชย์อิเล็กทรอนิกส์จากกระทรวงพาณิชย์: 7100503002000
Copyright 2001 SourceCode.in.th