บทความล่าสุด

12 กันยายน 2555

ตัวอย่าง การเขียนเมธอด และเรียกใช้เมธอด


1. จงเขียนโปรแกรมหาค่า f(x)โดยสมการf(x)เป็นดังนี้
f(x) = 3x2 + 2x + 7  if x <0
     = 0            if x = 0
     = x – 2        if x >0  
กำหนดให้ส่วนที่ใช้ในการคำนวณค่าf(x)อยู่ในฟังก์ชันget_Fxกำหนดให้ส่วนที่รับค่าตัวแปร Xจากคีย์บอร์ดและส่วนที่แสดงผลลัพธ์ของค่าf(x) อยู่ในฟังก์ชัน main

โปรแกรมหาจำนวณข้อมูลทั้งหมดกรณีที่เป็นรูปสามเหลี่ยม


using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace count
{
    class Program
    {
        static void Main(string[] args)
        {
            Console.Write("Plase Input Base for glass : ");
            int numbase = int.Parse(Console.ReadLine());
            int result = 0;
            for (int i = numbase; i >= 0; i--)

โปรแกรมคำนวณหาเงินเดือน C#


using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace CalculateMoney
{
    class Program
    {
        static void Main(string[] args)
        {
            Console.Write("Please input Money : ");
            double salary = int.Parse(Console.ReadLine());
            double totalSS = 0, totalCP, totalBN;

โค้ดแปลงเลขฐาน 2 , 8 ,10 และ 16 ภาษาซีชาร์ป C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace FindBaseNumber
{
    class Program
    {
        public static void Main(string[] args)
        {
           

25 กันยายน 2554

ภาวะส่วนตัวและความมั่นคง (Privacy and Security)

ผลกระทบด้านลบ
1. การใช้เทคโนโลยีอย่างมีประสิทธิภาพ คือการใช้งานที่
- มีผลกระทบด้านบวกมากที่สุด
- มีผลกระทบด้านลบน้อยที่สุด
2. ประเด็นที่ต้องคำนึงในการใช้เทคโนโลยี …
- ภาวะส่วนตัว (Privacy)
- ความมั่นคง (Security)
- การยศาสตร์ หรือเออร์โกโนมิกส์ (Ergonomics)
- สิ่งแวดล้อม
ภาวะส่วนตัว(Privacy)
1. กฎหมายมักไม่ทันต่อเทคโนโลยี
2. จริยธรรม(ethics)
- มาตรฐาน หรือศีลธรรม
3. จริยธรรมทางคอมพิวเตอร์ (Computer ethics)
- แนวทางการใช้คอมพิวเตอร์อย่างมีศีลธรรม และบุคคลในสังคมยอมรับได้
• ภาวะส่วนตัว (Privacy)
• ความถูกต้อง(Accuracy)
• การเป็นเจ้าของ (Property)
• การเข้าถึงข้อมูล(Access)