Click here to Skip to main content
15,910,009 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionHelp me please Pin
Ev3nflow30-Oct-09 4:40
Ev3nflow30-Oct-09 4:40 
AnswerRe: Help me please Pin
Cedric Moonen30-Oct-09 4:46
Cedric Moonen30-Oct-09 4:46 
GeneralRe: Help me please Pin
Ev3nflow30-Oct-09 5:47
Ev3nflow30-Oct-09 5:47 
AnswerRe: Help me please Pin
jeron130-Oct-09 4:47
jeron130-Oct-09 4:47 
QuestionRe: Help me please Pin
David Crow30-Oct-09 5:34
David Crow30-Oct-09 5:34 
AnswerRe: Help me please Pin
Tim Craig30-Oct-09 9:01
Tim Craig30-Oct-09 9:01 
AnswerRe: Help me please Pin
Tim Craig30-Oct-09 9:05
Tim Craig30-Oct-09 9:05 
GeneralRe: Help me please Pin
Ev3nflow30-Oct-09 10:02
Ev3nflow30-Oct-09 10:02 
Hi thanks to all who have help me. I have changed my code, and it seems to compile but I still get a warning 14 [Warning] converting to `int' from `float' I have pasted my code below

#include <stdio.h>;

const float lowrate=2;
const float highrate=5;
const float taxrate=20;

int balance,threshold,total,interest,tax,taxed,Y,is;
main()
{
printf("\n\n\t\tInput account balance ");
scanf("%d",&balance);
if (balance<threshold)
interest=balance*lowrate/100;
else
interest=balance*highrate/100;
total=balance+interest;
if (taxed) is; 'Y';
tax=interest*taxrate/100;
total=total-tax;
getchar();
printf("\n\n\t\tInterest rate %20d", taxrate);
printf("\n\n\t\tInterest added %20d",interest);
printf("\n\n\t\tTax deducted %20d", tax);
printf("\n\n\t\tTotal account balance %17d",total);
getchar();
}
GeneralRe: Help me please Pin
David Crow30-Oct-09 10:28
David Crow30-Oct-09 10:28 
Questionexternal or global function problem Pin
moh.hijjawi30-Oct-09 4:40
moh.hijjawi30-Oct-09 4:40 
AnswerRe: external or global function problem Pin
josda100030-Oct-09 5:11
josda100030-Oct-09 5:11 
AnswerRe: external or global function problem Pin
transoft30-Oct-09 8:16
transoft30-Oct-09 8:16 
AnswerRe: external or global function problem Pin
CPallini30-Oct-09 11:11
mveCPallini30-Oct-09 11:11 
GeneralRe: external or global function problem Pin
moh.hijjawi31-Oct-09 1:28
moh.hijjawi31-Oct-09 1:28 
AnswerReRE: external or global function problem Pin
moh.hijjawi31-Oct-09 1:30
moh.hijjawi31-Oct-09 1:30 
QuestionHow to use Msi API to uninstall an application by its "Product Code" ? Pin
cuiqimeng200030-Oct-09 4:01
cuiqimeng200030-Oct-09 4:01 
Questionexcel data base error Pin
trioum30-Oct-09 3:23
trioum30-Oct-09 3:23 
AnswerRe: excel data base error Pin
Rajesh R Subramanian30-Oct-09 3:30
professionalRajesh R Subramanian30-Oct-09 3:30 
GeneralRe: excel data base error Pin
trioum30-Oct-09 19:08
trioum30-Oct-09 19:08 
GeneralRe: excel data base error Pin
Rajesh R Subramanian30-Oct-09 19:18
professionalRajesh R Subramanian30-Oct-09 19:18 
Questionvariables Pin
khomeyni30-Oct-09 2:40
khomeyni30-Oct-09 2:40 
AnswerRe: variables Pin
Maximilien30-Oct-09 2:48
Maximilien30-Oct-09 2:48 
GeneralRe: variables Pin
khomeyni30-Oct-09 2:51
khomeyni30-Oct-09 2:51 
GeneralRe: variables Pin
Maximilien30-Oct-09 3:04
Maximilien30-Oct-09 3:04 
GeneralRe: variables Pin
khomeyni30-Oct-09 5:59
khomeyni30-Oct-09 5:59 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.