CSC 208 PROGRAMMING IN PYTHON AND C CA 2024
À propos de ce sujet
CA 2024 de CSC208 (CSC 208) PROGRAMMING IN PYTHON AND C (Niveau 200, Second semestre), Faculty of Science - FS, University of Buea : ancien sujet disponible sur Shoracy. Corrigé proposé inclus.
Ouvre ce sujet dans l'appli sur votre téléphone.
University of Buea
Faculty of Science - FS
Computer Science - CSC
PROGRAMMING IN PYTHON AND C
CA · Second semestre · Niveau 200
Extrait du sujet
- 2.
Write a C program which gets two integer numbers from the user, and displays all numbers in the range, excluding the numbers themselves. If the second number entered is bigger than the first, the numbers are swapped first. For example, if 10 and 4 are entered, the output will be: 5,6,7,8,9. If 2 and 8 are entered, the output will be: 3,4,5,6,7.
- 2.
Next, Karel should accomplish the task of painting a single rectangle. Think about how you can use the functionality of the previous subtask to help you accomplish this goal. You may need to write a small amount of code to reposition Karel in between painting individual walls of a building.
En bref
- Code du cours
- CSC208 (CSC 208)
- Type
- CA
- Année
- 2024
- Niveau
- Niveau 200
- Semestre
- Second semestre
- Corrigé proposé
- Inclus
Provenance
Université
University of BueaFaculté
Faculty of Science - FSDépartement
Computer Science - CSCMathematics - MATPhysics - PHY
Lisez CSC208 2024 dans Shoracy.
- Chaque page, avec un zoom pour les schémas et les petits caractères
- Le corrigé proposé, à portée de doigt
- Reste sur votre téléphone après la première ouverture, même hors ligne
Vous n'avez pas encore l'appli ?