رد: واجب البرمجــه ؟؟
يا جمااعه وانا كمان عندي واجب اليوم تسليمو اللي عرف من البنات كيف اتحل هادا السؤال يجااوب عليا بليييييييييييييييييييز لانو اليوم تسليم الواجب خصوصا طالبات ا.منى الشهريWrite a program that accepts time in Grenache then display the corresponding time in the chosen city
Note:
• The time entered is a number between (1-24).
• Bounce:If the user enter number not between(1-24),Appear message error and try again.
• The corresponding time should be showed in a.m. Or p.m.
فرق التوقيت code City
+3 J Jeddah
+3 M Makkah
+2 C Cairo
Output screen:
City Code
Jeddah J
Makkah M
Cairo C
Enter your choice : j
Enter the time in Grenache: 4
The time in Jeddah is 7 a.m.
Output screen:
City Code
Jeddah J
Makkah M
Cairo C
Enter your choice : m
Enter the time in Grenache: 12
The time in Makkah is 15 p.m.
|