Page 1 of 1

CHALLENGE 6.10.2: Pass by pointer ACTIVITY Jump to level 1 Define a function ConvertValue() that takes one integer param

Posted: Tue Jul 05, 2022 10:34 am
by answerhappygod
Challenge 6 10 2 Pass By Pointer Activity Jump To Level 1 Define A Function Convertvalue That Takes One Integer Param 1
Challenge 6 10 2 Pass By Pointer Activity Jump To Level 1 Define A Function Convertvalue That Takes One Integer Param 1 (23.83 KiB) Viewed 17 times
Challenge 6 10 2 Pass By Pointer Activity Jump To Level 1 Define A Function Convertvalue That Takes One Integer Param 2
Challenge 6 10 2 Pass By Pointer Activity Jump To Level 1 Define A Function Convertvalue That Takes One Integer Param 2 (25.37 KiB) Viewed 17 times
CHALLENGE 6.10.2: Pass by pointer ACTIVITY Jump to level 1 Define a function ConvertValue() that takes one integer parameter as totalCents, and two integer parameters passed by pointer as dollars and cents. The function converts totalCents to dollars and cents. The function does not return any value Ex if the input is 510, then the output is 5 dollars and 10 cents Note: totalCents/100 computes the number of dollars, and totliCents % 100 computes the remaining cents 1 #include 2 3 4 Your code goes here / 5 int main(void) { 6 7 8 9 10 11 12 13 14 15 int usrDollars; int usrCents; int totalCents; scanf("%d", &totalCents); Feedback! ConvertValue(totalCents, susrDollars, SusrCents); printf("%d dollars and %d cents\n", usrDollars, usrCents); D-D-D- Having my stacks Buffee wa W1 INTRO TO Intro to I signment adt kamay schedule alex many sely warris a many system ment
CHALLENGE 6.10.2: Pass by pointer. ACTIVITY Jump to level 1 Define a function ConvertValue() that takes one integer parameter as totalCents, and two integer parameters passed by pointer as dollars and cents. The function converts totalCents to dollars and cents. The function does not return any value i Ex: If the input is 510, then the output is 5 dollars and 10 cents Note: totalCents/100 computes the number of dollars, and totalCents % 100 computes the remaining cents 3* Your code goes here / 5 int main(void) { 6 7 8 9 10 11 12 13 14 15 16 17) int usrDollars; int useCents: int total Cents; scanf("%d", &totalCents); ConvertValue(totalCents, BuseDollars, SusrCents); printf("%d dollars and %d cents\n", usrDollars, usrCents); return 0; S DD-D aving my stacka Buffel W1 INTRO TO Intre tot ignment2.pdf kermany schedule a kermany sely warris af many system assignment