Hello, The available solution to problem 19PC is missing a step. Asthe problem r
ID: 3618123 • Letter: H
Question
Hello, The available solution to problem 19PC is missing a step. Asthe problem requires, the amount of the check must be displayed innumeric format ($1920.85), as well as in alphabetical format (Onethousand nine hundred twenty and 85 cents). The solution suggested here is only taking care of the firstpart and there are no statements to convert the input to stringvalues, and this is the only part in the whole program that I haveno idea how to code and can use some help. Thanks, Hello, The available solution to problem 19PC is missing a step. Asthe problem requires, the amount of the check must be displayed innumeric format ($1920.85), as well as in alphabetical format (Onethousand nine hundred twenty and 85 cents). The solution suggested here is only taking care of the firstpart and there are no statements to convert the input to stringvalues, and this is the only part in the whole program that I haveno idea how to code and can use some help. Thanks,Explanation / Answer
please rate - thanks use this to get started #include #include #include int main() {charnumbers[20][10]={"zero","One","Two","Three","Four","Five","Six","Seven","Eight", "Nine","Ten","Eleven","Twelve","Thirteen","Fourteen","Fifteen", "Sixteen","Seventeen","Eighteen","Nineteen"}; char tens[9][9]={"Twenty ","Thirty ","Forty ","Fifty ","Sixty","Seventy ","Eighty ","Ninty "}; char amount[11]; char stars[7][7]={"","*","**","***","****","*****","******"}; int dot, i,cents,digits,number,decimal,temp,pow[6]={1,10,100,1000,1000,100000}; printf("How much is the check for? "); scanf("%s",&amount); //get the amount for(i=0;i1) {printf("%s",tens[number-2]); if(decimal==0) //last digit 0 done i--; break; } else {printf("%s",numbers[number*10+decimal]); i--; //done break; } case1:printf("%s",numbers[number]); break; } } } printf(" and "); for(i=dot+1;iRelated Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.