18-02-17, 11:34 PM
السلام عليكم عندي مشكله في كتابة الكود لانه الموضوع معقد
ممكن شرح مبسط عن طريقة حل السؤالين ؟
وشكرا
Question#1
Write an algorithm and draw the flowchart to get marks of 4 subjects from a student and
calculate its final marks which is the average of marks in all 4 subjects. Print “Pass” or “Fail” on screen depending upon the calculated final marks whereas minimum passing marks are 50.
Question#2
Write a program that converts AED (UAE Dirhams) to a different currency. The currencies and exchange rates are listed in below. The user should be allowed to choose the currency. (Hint: Designate a code for each currency and use cout statements to display the code and corresponding currency.) The number of AED should always be an integer that is greater
than or equal to zero.
Currency Exchange rate
US Dollar 0.27229
Eurozone Euro 0.25585
India Rupee 18.19251
Japan Yen 30.82505
Hong Kong Dollar 2.11202
Russian Rouble 15.79766
United Kingdom Pound 0.21804