Topshiriq hisobotida masala sharti, dastur kodi va natijasini joylashtiring. Faylni pdf formatida yuklang. Topshiriqni bajarish muddati


Download 12.59 Kb.
Sana22.01.2023
Hajmi12.59 Kb.
#1111112
Bog'liq
5-topshiriq (1)


Dasturlash uslublari va paradigmalari fanidan 5- topshiriq
Topshiriq hisobotida masala sharti, dastur kodi va natijasini joylashtiring. Faylni .pdf formatida yuklang. Topshiriqni bajarish muddati 22.01.2023y kunigacha.
Masala.
2. “kasr” sinfini yarating. Unda kasr sonlar ustida amallar bajarish dasturini tuzing
UML diagramma

kasr

int surat1, maxraj1;
int surat2, maxraj2;

qisqartir(int surat1, int maxraj1)
qoshish(int surat1, int maxraj1, int surat2, int maxraj2)
kopaytirish(int surat1, int maxraj1, int surat2, int maxraj2)
ayirish(int surat1, int maxraj1, int surat2, int maxraj2)
bulish(int surat1, int maxraj1, int surat2, int maxraj2)

Misol uchun:


Kiruvchi malumotlar: 3 4 2 4
Son.qoshish(3, 4, 2, 4)
Chiquvchi ma’lumot: 5/4
Download 12.59 Kb.

Do'stlaringiz bilan baham:




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©fayllar.org 2024
ma'muriyatiga murojaat qiling