السلام عليكم ،،،
حبيت انكم تساعدوني اذا ماعليكم امر
عندي مساائل حق ITCS101
وطبعا مااعرف احلهم
طلبتكم في حلها ..
(1)
Develop a C++ program that will determine if a department-store customer has exceeded the credit limit on a charge account. For each customer, the following information is available :
a) account number (an integer);
balance at the beginning of the month ;
c) total of all items charged by the customer this month;
d) total of all credits applied to the customer's account this month;
e) allowed credit limit.
The program should input this information , calculate the new balance (= beginning balance + charges – credits) and determine if the new balance exceeds the customer's credit limit. For those customers whose credit limit is exceede, the program should display the customer's account number , credit limit, new balance and the message "Credit limit exceede"
In this lab,you will practice the top-down. Stepwise refinement methodology discussed in the text. You should formulate the algorithm by using psedudocode and top-down ,stepwise refinement before you begin coding.
(2)
Fibonacci (Italian mathematician) discovered the following series :
1,1,2,3,5,8,13,21,34,55,89,…..
As you see each next number is the sum of previous two numbers (except the first two numbers). Write a complete C++ program to compute the first 88 numbers of this series,and print them 5 numbers per line.
(3)
Write a program that reads from the keyboard a positive integer M and generates a triangle of numbers (as shown below). You must make sure the number is entered is positive before making the triangle.
For example, if the input for M is 6, the output triangle should be
6 5 4 3 2 1
5 4 3 2 1
4 3 2 1
3 2 1
2 1
1
اذا ماعليكم امر ابيه بسرعه