السلام عليكم
ارجو منكم مساعدتي في حل نموذج الاسئله المدرجه في الموضوع
1-Write a program that prints the following patterns separately one below the other .Use for loop to generate the patterns. All (*) should be printed by a single statement of the form cout<<"*" (This causes the asterisks to print side by side).The output should look like the figure below:
********
*******
******
*****
****
***
**
*
السؤال الثاني:
Write a program that asks the user for test scores. Enter all test values as an integers to keep things simple. The program is to continue until the user enters -99 in order to obtain the average or until she enters five values, (there were only five tests this term). If the user enter- 99, it means that she took fewer than five test and is ready for the average early . As the user enters each test average, add the average to a total variable and increment a counter variable .As soon as user enters five values or -99 , compute a flouting point average and print the result . Be sure that you congratulate the user for an average of more than 90 percent!
