بسم الله الرحمن الرحيم
السلام عليكم ورحمة الله وبركاته
اولا احب ارحب بالجميع في هذا المنتدى الطيب ..... واتمنى قبولي في منتدكم .
واحب انكم تساعدوني في حل هذا البرنامج وابغى تعطوني طريقه سهله لحل اي برنامج لاني بصراحه اواجه صعوبه شديده.
Write a program that prompts for and reads the initial balance of a bank customer. The program must reject an initial balance that is less than 500 Riyals. In this case the user must be prompted to enter another value.
If the initial balance is valid, the program should prompt for and read a transaction code (1for deposit, 2 for withdrawal) and an amount to be deposited or withdrawn until a sentinel of -1 -1 is read. After each successful transaction, the current balance of the customer should be displayed
Note your program must display an appropriate error message for each of the following cases:
a) An invalid transaction code.
B) A negative deposit or withdrawal amount.
c) An attempt to withdraw more than the current balance.
