อัลกอริธึม  1.เริ่มต้นทำงาน  2.กำหนดค่า จำนวนเงินที่ชำระ(Price) เท่ากั การแปล - อัลกอริธึม  1.เริ่มต้นทำงาน  2.กำหนดค่า จำนวนเงินที่ชำระ(Price) เท่ากั อังกฤษ วิธีการพูด

อัลกอริธึม 1.เริ่มต้นทำงาน 2.กำหน

อัลกอริธึม
1.เริ่มต้นทำงาน
2.กำหนดค่า จำนวนเงินที่ชำระ(Price) เท่ากับศูนย์
3.รับข้อมูล จำนวนสินค้า (Amt) และ ราคา (Cost)
4.คำนวณจำนวนเงินที่ชำระ จาก Price = Amt x Cost
5.แสดงผล จำนวนที่ต้องชำระ
6.จบการทำงาน

รหัสเทียม (Pseudo Code)

Begin
Price = 0
Read Amt, Cost
Price = Amt x Cost
Write Price
End


โครงสร้างแบบเลือก (Selection Structure)
คือมีเงื่อนไขที่ต้องตัดสินใจเลือกการทำงานผลลัพธ์ของเงื่อนไขคือ จริง หรือ เท็จ เท่านั้น

ประเภทของโครงสร้างแบบเลือก

1.เลือกทำงานเฉพาะเมื่อเงื่อนไขเป็นจริง

รหัสเทียม
IF……………
THEN …(คำสั่งA)…


ตัวอย่าง โปรแกรมแสดงผลการสอบทางหน้าจอ

อัลกอริธึม

1.เริ่มต้นทำงาน
2.รับค่า คะแนนสอบ(Score)
3.ถ้าคะแนนสอบตั้งแต่ 50 คะแนนขึ้นไป ให้พิมพ์ทางหน้าจอว่า ‘You pass’
4.จบการทำงาน

รหัสเทียม (Pseudo Code)

Begin
Read Score
IF Score >= 50
THEN Write ‘You pass’
End

2.เลือกทำงานอย่างใดอย่างหนึ่งระหว่างเงื่อนไขจริงและเท็จ

รหัสเทียม
THEN …..(คำสั่งB)…..
ELSE ..…(คำสั่งA)...

3.คำสั่งเลือกแบบซ้อนกัน

อัลกอริธึม

1.เริ่มต้นทำงาน
2.รับค่า คะแนนสอบ (Score)
3.เปรียบเทียบคะแนนสอบ>=80 ถ้าเป็นจริง ให้ทำนิพจน์ Grade=‘A’ ถ้าเป็นเท็จ ให้เปรียบเทียบคะแนนสอบ >=70 ถ้าเป็นจริง ให้ทำนิพจน์ Grade=‘B’ ถ้าเป็นเท็จ ให้เปรียบเทียบคะแนนสอบ >=60 ถ้าเป็นจริง ให้ทำนิพจน์ Grade=‘C’ ถ้าเป็นเท็จ ให้เปรียบเทียบคะแนนสอบ >=50 ถ้าเป็นจริง ให้ทำนิพจน์ Grade=‘D’ ถ้าเป็นเท็จ ให้ให้ทำนิพจน์ Grade=‘F’
4.แสดงผล เกรด (Grade)
5.จบการทำงาน
0/5000
จาก: -
เป็น: -
ผลลัพธ์ (อังกฤษ) 1: [สำเนา]
คัดลอก!
Algorithm 1. start. 2. configure the payment amount (Price) is equal to zero. 3. stock information (Amt) and the price (Cost). 4. calculate the amount paid from the Amt Cost Price = x. 5. display. The amount that must be paid. 6. exit. Pseudocode (Pseudo Code). Begin Price = 0 Read Amt, Cost Price = Amt x Cost Write Price End Structure of the selection (Selection Structure). The conditions that must be decided is the work results of the condition is true or false only. The type of the selected structure 1. Select the run only when a condition is true. Pseudocode IF............... THEN (A command) ... For example, the program displays the result on the screen. Algorithm 1. start. 2. pick up test scores (Score) 3. If the exam score 50 points or more, print screen ' You pass '. 4. exit. Pseudocode (Pseudo Code). Begin Read Score IF Score >= 50 THEN Write 'You pass' End 2. Select one of the real and the false condition during. Pseudocode (Instruction B) ..... THEN ..... ELSE (commands A) ..... ... 3. Select the nested command. Algorithm 1. start. 2. pick up test scores (Score) 3. compare the test scores > = 80 If true, do A ' Grade = ' expression. If false, compare test scores > = 70, if true, make the Grade B = ' expression '. If false, compare test scores > = 60, if true, make the Grade = ' C ' expression. If false, compare test scores > = 50, if true, make the Grade D = ' expression '. If the expression is false, to make Grade = ' F ' 4. the display of grades (Grade) 5. exit.
การแปล กรุณารอสักครู่..
ผลลัพธ์ (อังกฤษ) 2:[สำเนา]
คัดลอก!
The algorithm
starts working 1.
2. Configure. The amount paid (Price) equal to zero
3. Product Information (Amt) and price (Cost)
4. Calculate the amount paid by the Amt = Price x Cost
5. display the amount due
6. Exit code. Implant (Pseudo Code) Begin Price = 0 Read Amt, Cost Price = Amt x Cost Write Price End Structure Selection (Selection Structure) is a condition that must decide the result of the condition is true or false, only the type of structure selected. 1. Select function only when the conditions are fulfilled pseudo code ............... IF THEN. ... (Order A) ... examples. The program displays the screen of the algorithms at work: 1. Start 2. values. TOEFL (Score) 3. If the test scores of 50 points or more to print the screen that says 'You Pass' 4. Exit pseudo code (Pseudo Code) Begin Read Score Score IF> = 50 THEN Write 'You Pass'. End 2. Choose either working conditions between true and false pseudo code THEN. ... .. (Statement B) ... .. ELSE. .. ... (Order A) ... 3. Select statement stacked algorithms at work: 1. Start 2. Get the score (Score) 3. compare scores> = 80 if a real offer. Do expressions Grade = 'A' if it is false to compare scores> = 70 If this is true, do the expressions Grade = 'B' if it is false to compare scores> = 60 If this is true, do the expressions Grade = 'C' if. It is false to compare scores> = 50 If this is true, do the expressions Grade = 'D' if it is to make false expressions. = Grade 'F' grade 4. Display (Grade) 5. Exit.























































การแปล กรุณารอสักครู่..
 
ภาษาอื่น ๆ
การสนับสนุนเครื่องมือแปลภาษา: กรีก, กันนาดา, กาลิเชียน, คลิงออน, คอร์สิกา, คาซัค, คาตาลัน, คินยารวันดา, คีร์กิซ, คุชราต, จอร์เจีย, จีน, จีนดั้งเดิม, ชวา, ชิเชวา, ซามัว, ซีบัวโน, ซุนดา, ซูลู, ญี่ปุ่น, ดัตช์, ตรวจหาภาษา, ตุรกี, ทมิฬ, ทาจิก, ทาทาร์, นอร์เวย์, บอสเนีย, บัลแกเรีย, บาสก์, ปัญจาป, ฝรั่งเศส, พาชตู, ฟริเชียน, ฟินแลนด์, ฟิลิปปินส์, ภาษาอินโดนีเซี, มองโกเลีย, มัลทีส, มาซีโดเนีย, มาราฐี, มาลากาซี, มาลายาลัม, มาเลย์, ม้ง, ยิดดิช, ยูเครน, รัสเซีย, ละติน, ลักเซมเบิร์ก, ลัตเวีย, ลาว, ลิทัวเนีย, สวาฮิลี, สวีเดน, สิงหล, สินธี, สเปน, สโลวัก, สโลวีเนีย, อังกฤษ, อัมฮาริก, อาร์เซอร์ไบจัน, อาร์เมเนีย, อาหรับ, อิกโบ, อิตาลี, อุยกูร์, อุสเบกิสถาน, อูรดู, ฮังการี, ฮัวซา, ฮาวาย, ฮินดี, ฮีบรู, เกลิกสกอต, เกาหลี, เขมร, เคิร์ด, เช็ก, เซอร์เบียน, เซโซโท, เดนมาร์ก, เตลูกู, เติร์กเมน, เนปาล, เบงกอล, เบลารุส, เปอร์เซีย, เมารี, เมียนมา (พม่า), เยอรมัน, เวลส์, เวียดนาม, เอสเปอแรนโต, เอสโทเนีย, เฮติครีโอล, แอฟริกา, แอลเบเนีย, โคซา, โครเอเชีย, โชนา, โซมาลี, โปรตุเกส, โปแลนด์, โยรูบา, โรมาเนีย, โอเดีย (โอริยา), ไทย, ไอซ์แลนด์, ไอร์แลนด์, การแปลภาษา.

Copyright ©2026 I Love Translation. All reserved.

E-mail: