Answer:
#include <stdio.h>
typedef struct TimeHrMin_struct //struct
{
int hours;
int minutes;
} TimeHrMin;
struct TimeHrMin_struct SetTime(int hoursVal,int minutesVal) //SetTime function
{
struct TimeHrMin_struct str;
str.hours=hoursVal; //assigning the values
str.minutes=minutesVal;
return str; //returning the struct
}
int main(void)
{
TimeHrMin studentLateness;
int hours;
int minutes;
scanf("%d %d", &hours, &minutes);
studentLateness = SetTime(hours, minutes); //calling the function
printf("The student is %d hours and %d minutes late.\n", studentLateness.hours, studentLateness.minutes);
return 0;
}
Explanation:
It is a good programming practice to explain your functions by writing comments that describe what they do.
The correct answer for this question is this one: "She can rename the 2 worksheet by right clicking the sheet tab. After right clicking the mouse, select Rename Sheet and type the preferred name of the sheet." Hope this helps answer your question and have a nice day ahead.
Answer:
function timesTen (number):
return number * 10
n = int(input("Enter an integer: "))
print(str(n) +"x10 is equal to: " + str(timesTen(n)))
Explanation:
Pseudocode is the representation of an algorithm. It shows the steps of the algorithm combination of the English and programming language.
In the pseudocode, we said we will be defining a function called timesTen that takes one parameter and returns the value of its parameter multiplied times 10.
In the main, we asked the user to enter a number. Then, we called the function with that number, and print the result.