subject

Complete the function ConvertToFeetAndInches to convert totalInches to feet and inches. Return feet and inches using the HeightFtIn struct. Ex: 14 inches is 2 feet and 2 inches.

#include

typedef struct HeightFtIn_struct {

int feet;

int inches;

} HeightFtIn;

HeightFtIn ConvertToFeetAndInches(int totalInches) {

HeightFtIn tempVal;

/* Your solution goes here */

}

int main(void) {

HeightFtIn studentHeight;

int totalInches;

scanf("%d", &totalInches);

studentHeight = ConvertToFeetAndInches(totalInches) ;

printf("%d feet and %d inches\n", studentHeight. feet, studentHeight. inches);

return 0;

}

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 19:30
Once the data center routes to the destination server that hosts the website, what's the next step in the internet process? user’s browser renders html code from destination server into web page request goes through router/model and isp request routed to nameserver and datacenter
Answers: 2
question
Computers and Technology, 23.06.2019 01:30
Which tab is used to change the theme of a photo album slide show? a. design b. view c. transitions d. home
Answers: 1
question
Computers and Technology, 23.06.2019 18:00
Which is a possible benefit of having a good credit history? having a checking account low interest rate on a car loan high interest rate on a credit card offer bankruptcy
Answers: 1
question
Computers and Technology, 23.06.2019 18:30
List 3 items that were on kens resume that should have been excluded
Answers: 1
You know the right answer?
Complete the function ConvertToFeetAndInches to convert totalInches to feet and inches. Return feet...
Questions
question
English, 10.07.2021 19:00
question
Advanced Placement (AP), 10.07.2021 19:20
question
Engineering, 10.07.2021 19:20
Questions on the website: 13722367