1. Write a c program to convert decimal number to hexadecimal number.
3. Write a c program to convert octal number to decimal number.
4. Write a c program to convert octal number to hexadecimal number.
5. Write a c program to convert hexadecimal number to decimal number.
6. Write a c program to convert hexadecimal number to octal number.
8. Write a c program to convert binary number to hexadecimal number.
9. Write a c program to convert binary number to octal number.
11. Write a c program to convert hexadecimal number to binary number.
12. Write a c program to convert octal number to binary number.
14. Write a c program to convert centigrade to fahrenheit.
8 comments:
good web site
int totalFiveFundred =1000;
You misspelled Hundred :)
int main()
{
int amt;
printf("Enter the amount to withdraw : ");
scanf("%d",&amt);
printf("\nNotes of 1000 required are %d", amt/1000);
printf("\nWhile Notes of 500 required are %d", ((amt % 1000)/500));
printf("\nAnd notes of 100 required are %d",((amt % 1000)% 500)/100);
getch();
return 0;
}
This Code is wrong.
If withdrawAmount = 7800,
thousand = 7.8.
This code is correct . Thousand is an INTEGER . NOT FLOAT
plzz make me same code with the following specifications
TEST cases for ATM Machine
1. Machine is accepting ATM card
2. Machine is rejecting expired card
3. Succesful entry of PIN number
4. Unsuccessful operation due to wrong PIN number 3 times
5. Succesful selection of language
6. Successful selection of account type.
7. Unsuccessful operation due to invalid account type
8. Succesful selection of amount to be with draw
9. Succesful withdraw
10. Expected meggage due to amount is greater than day limit
11. Unsuccesful withdraw operation due to lack of money in ATM
12. Expected message due to amount to withdraw is greater than possible balance
13. Unsuccessful withdraw operation due to click after insert card.
and mail me to annusmartguy@gmail.com
Hey Dear,
How to possible????
"if thousand = 7.8 greater than totalThousand = 1000..."
IF condition not run, because 7.8 not greater than 1000
Below your condition...
thousand = withdrawAmount / 1000; // return 7.8
"if(thousand > totalThousand)"
Post a Comment