No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
**Requirements** Write the following function: void splitDate(int dayOfYear, int year, int *month, int *day); dayOfYear is an integer between 1 and 366, specifying a particular day within the year designated by year. month and day point to variables in which the function will store the equivalent month (1-12) and day … |
|
Hi, I'm working on some questions for homework and I have a small idea what the answers may be. Can anyone look my answers over and help me out maybe explaining why they may be wrong or right? Question 1: answer "b" Here is a diagram of memory: Which declaration … |
|
I'm trying to read from a text file and have any multiple whitespaces between characters become one whitespace. If this how I do it using an array, #include <stdio.h> //Function prototype void modifyspace(char *dest, char *src); int main() { /* Initialize an array of 2000 characters */ char src[2000] = … |
|
Hi, I'm trying to find out why my code won't run. I passed my years variable to the function to multiplied by 365 and stored in my time variable which should be printed out. Should "toDays(21)" be declared in my function instead? <!DOCTYPE html> <html> <head> <script> var years; toDays(21); … |
|
Hi I'm writing a shell script and I'm trying to get a starting number and an ending number from the user. So if the users starting number is 3 and the ending number is 4, my program should print out 4 5 6 7 as the consecutive numbers. My problem … |