Docsity
Docsity

Prepare for your exams
Prepare for your exams

Study with the several resources on Docsity


Earn points to download
Earn points to download

Earn points by helping other students or get them with a premium plan


Guidelines and tips
Guidelines and tips

PSEUDECODE MODULAR PROGRAMMING WITH C++ LANGUAGE FOR FRESHMAN EASY, Assignments of Information Technology

PSEUDECODE MODULAR PROGRAMMING WITH C++ LANGUAGE FOR FRESHMAN EASY

Typology: Assignments

2020/2021

Available from 01/17/2023

elisaafebr
elisaafebr 🇮🇩

5 documents

1 / 4

Toggle sidebar

Related documents


Partial preview of the text

Download PSEUDECODE MODULAR PROGRAMMING WITH C++ LANGUAGE FOR FRESHMAN EASY and more Assignments Information Technology in PDF only on Docsity! ELLIZA (TEKNIK INFORMATIKA) *5 A. (NILAI MINIMUM)  PSEUDECODE MODULAR 1. Function Main 2. Declare Integer a, b 3. Output "Masukkan Nilai a" 4. Input a 5. Output "masukkan Nilai b" 6. Input b 7. Call minimum(a,b) 8. End 9. Function minimum (Integer a, Integer b) 10. If a<b 11. Output "Nilai Terkecilnya adalah : "&a 12. Else 13. If a>b 14. Output "Nilai Terkecilnya adalah : "&b 15. Else 16. Output "Nilai Keduanya Sama" 17. End 18. End 19. End B. (LUAS SEGITIGA)  PSEUDECODE MODULAR 1. Function Main 2. Declare Integer alas, tinggi 3. Output "Masukkan nilai alas" 4. Input alas 5. Output "Masukkan nilai tinggi" 6. Input tinggi 7. Call luasSegitiga (alas, tinggi) 8. End 9. Function luasSegitiga (Integer alas, Integer tinggi) 10. Declare Real luas 11. Assign luas = alas*tinggi/2 12. Output "Luas segitiga adalah "&luas 13. End C. (BILANGAN GENAP)  PSEUDECODE MODULAR 1. Function Main 2. Declare Integer a 3. Output "Masukkan angka" 4. Input a 5. Call genap(a) 6. End 7. Function genap (Integer a) 8. If a%2=0
Docsity logo



Copyright © 2024 Ladybird Srl - Via Leonardo da Vinci 16, 10126, Torino, Italy - VAT 10816460017 - All rights reserved