Please follow the detailed instructions for c programming , note that struct type is not allowed :




If you find this helpful, then please leave a like.
CODE:
#include <stdio.h>
#include <stdlib.h>
int main()
{
float temperature[12][31],dailytemp; //I am using a 2d array to
keep track of the daily temperature readings
int count[12][31]; //This array keeps a count of the number of
reading taken on a particular month/day. This is needed in the
final calculation of average temperature
int i,month,day,hour,minute,station_number;
for(i=0;i<12;i++) //Initializing both the arrays
{
int j;
for(j=0;j<31;j++)
{
temperature[i][j]=0;
count[i][j]=0;
}
}
FILE *fin;
fin=fopen("input_data.txt","r"); //Opening the input file
FILE *fout;
fout=fopen("daily_averages_summary.txt","w"); //Opening the output
file
while(fscanf(fin,"%d %d %d %d %d
%f",&month,&day,&hour,&minute,&station_number,&dailytemp)!=EOF)
//Reading the input file line by line until end of file
{
temperature[month-1][day-1]+=dailytemp; //Updating the daily
temperature sum
count[month-1][day-1]++; //Incrementing the number of readings
taken on that day
}
for(i=0;i<12;i++)
{
int j;
for(j=0;j<31;j++)
{
if(count[i][j]!=0) //If a reading is present on that particular
month/day
{
float k=temperature[i][j]/count[i][j]; //Calculating the average
temperature of month/day
fprintf(fout,"%d %d %.2f\n",i+1,j+1,k); //Outputting it to the
file
}
}
}
fclose(fin); //Closing files
fclose(fout);
return 0;
}
OUTPUT:


Please follow the detailed instructions for c programming , note that struct type is not allowed...
I need help with this assignment in C++,
please!
*** The instructions and programming style details
are crucial for this assignment!
Goal: Your assignment is to write a C+ program to read in a list of phone call records from a file, and output them in a more user-friendly format to the standard output (cout). In so doing, you will practice using the ifstream class, I'O manipulators, and the string class. File format: Here is an example of a file...
Write a C++ program for the instructions below. Please
read the instructions carefully and make sure they are followed
correctly.
please put comment with code! and please do not just
copy other solutions.
Instructions 1. Read instructions carefully! 2. Use C++ syntax only, C syntax will not be accepted. 3. Always use braces to define blocks. 4. Indent all lines within a block. Each block requires one more tab. 5. Organize your code well with proper formatting and a single...
Please help with this Intro to programming in C
assignment!
Intro to Programming in C-Large Program 3 - Hangman Game Assignment purpose: User defined functions, character arrays, c style string member functions Write an interactive program that will allow a user to play the game of Hangman. You will need to: e You will use four character arrays: o one for the word to be guessed (solution) o one for the word in progress (starword) o one for all of...
Question: C Programming Problem: Pointer and Struct Description: The purpose of this assignment is to prov... C Programming Problem: Pointer and Struct Description: The purpose of this assignment is to provide practice programming using structs and pointers. Your program will accept user input and store it in a dynamic array of structs. First, you will define a structure to describe a item to be bought. Your program will prompt the user for the initial size of the array. It will...
Submissions are accepted in program codes in C
PROGRAMMING LANGUAGES COURSE ASSIGNMENT Design your own general purpose programming language which will be completely in english Your language design must include the following A general skeleton of a program State diagrams for the following (35 pts) . Identifier Unsigned integer Unsigned constant Constant Variable Factor and term rules similar to the ones given in your textbook Simple expression Compound expression . Parameter list Simple type 1D Array type Statement Block Loop...
Python 2.7.14 Programming Assignment Shape Drawing With
Notepad++(PLEASE READ AND FOLLOW THESE INSTRUCTIONS THOROUGLY AS
THIS ASSIGNMENT IS FOR PYTHON 2.7.14. ONLY AND I REALLY NEED THIS
TO WORK!!! ALSO PLEASE HAVE THE CODE PROPERLY INDENTED, WITH
WHATEVER VARIABLES DEFINED, WHATEVER IT TAKES TO WORK FOR PYTHON
2.7.14. I feel like nothing I do is working and I'm trying
everything I can think of. ):
In this assignment, the student will create a Python script that
implements a series of...
write programs with detailed instructions on how to
execute.
code is java
What you need to turn in: You will need to include an electronic copy of your report (standalone) and source code (zipped) of your programs. All programming files (source code) must be put in a zipped folder named "labl-name," where "name" is your last name. Submit the zipped folder on the assignment page in Canvas; submit the report separately (not inside the zipped folder) as a Microsoft Word...
Help write down below program with C++ language!!! Please... The Cipher Program Requirements An interactive program is required that allows a user to encode text using any of three possible ciphers. The three ciphers you are to offer are: Caesar, Playfair and Columnar Transposition. • The program needs to loop, repeating to ask the user if they wish to play with Caesar, Playfair or Columnar Transposition until the user wishes to stop the program. •For encoding, the program needs to...
ELEC 1520 Homework - Integer Operations, Selection Statements Instructions Write C++ programs to solve the following two problems. Upload your source code files to Canvas. The file names must be of the form coins_your_name.cpp and bonus_your_name.cpp for problems 1 and 2, respectively. Substitute your first and last name for "your_name" in the file name. Problem Statements 1. Given a value V in cents, you need to make change using a minimum number of coins. Assume you have an infinite supply...