:-( بليز ساعدوني انا مو عارف احل
Q3: A palindrome is a number or a phrase that reads the same backwards as
forwards. For example, each of the following five-digit integers is a palindrome:
12321, 55555, 45554 and 11611. Write a program that reads in a five-digit integer
and determines whether it is a palindrome.
-----------------------
Q4: Write a program that reads three nonzero integers and determines and prints
whether they could be the sides of a right triangle.
----------------------
------------------------------------------
6-Write and run a program that print the following table:
Monthly Sales Income
--------------------------------------------------------------------------------------------------------------------
Greater than or equal to $50,000 $375 plus 16% of sales
Less than $50,000 but greater than or equal to $40,000 $350 plus 14% of sales
Less than $40,000 but greater than or equal to $30,000 $325 plus 12% of sales
Less than $30,000 but greater than or equal to $20,000 $300 plus 9% of sales
Less than $20,000 but greater than or equal to $10,000 $250 plus 5% of sales
Less than $10,000 $200 plus 3% of sales
Then calculates the monthly income of a computer salesperson using the following
commission schedule:
Monthly Sales Income
--------------------------------------------------------------------------------------------------------------------
Greater than or equal to $50,000 $375 plus 16% of sales
Less than $50,000 but greater than or equal to $40,000 $350 plus 14% of sales
Less than $40,000 but greater than or equal to $30,000 $325 plus 12% of sales
Less than $30,000 but greater than or equal to $20,000 $300 plus 9% of sales
Less than $20,000 but greater than or equal to $10,000 $250 plus 5% of sales
Less than $10,000 $200 plus 3% of sales
--------------------------------------------------------------------------------------------------------------------
Enter the value of monthly sales: 36243.89
The income is $4674.27
|