Need someone do homework, due other exams not time for this. C language homework

This is sent by the teacher:



Assume that you are given the structure below


typedef struct StudentMark {

      char name[20];

      char surname[20];

      int midterm;

      int final;



1-) Write down a program which contains

a-    A function to get the user entered name, surname, and exam marks into dynamically allocated STUDENT_MARK structure (your function MUST check input validity i.e entered marks must between [0..100]).

b-   A function to write down the entered VALID structures into a file named

as marks_YOUR_STUDENT_ID.txt. In this filename YOUR_STUDENT_ID part will be

the programmer's (1.e yours :) student ID.


2-) Write a program which contains

a-    A function to read a file named as marks_YOUR_STUDENT_ID.txt which contains STUDENT_MARK structures' data.

b-   A function to calculate the average of each student's exam marks and writes the result onto screen as


“The student NAME SURNAME's midterm mark is MIDTERM, final mark is FINAL and his/her average is AVERAGE”


NAME, SURNAME, MIDTERM, FINAL parts are the values read from file and the AVERAGE is the value calculated according to the formula (midterm * 0.4 + final * 0.6).


3-) Write down an informal design document (as an MS Word file) to describe your program design, coding decisions/altematives you preferred in details. For example, you should describe “Your file format design (i.e how you wrote the data into file), how you read data from file, how you allocated memory for the data, what you returned each function and why?" in details in addition to other decisions you made for the code. Your designs and decisions will also be the part of evaluation/marking!

Get Help With a similar task to - Need someone do homework, due other exams not time for this. C language homework

Login to view and/or buy answers.. or post an answer

Related Questions

Similar orders to Need someone do homework, due other exams not time for this. C language homework
TCP and Attacks on TCP
Consider these attacks on TCP: SYN Flooding, NULL Flooding, Information Covert channel, Timing Covert channel and DDoS. From the perspective of the attacker, which do you think is the easiest to launch? Which is the most difficult? From the perspective...
Laravel Rating System
admins can: Update admin info Insert user account Update user account Delete user account Update book attribute...
Database Design
Please put it in a Microsoft Word document....
LAB Assignment Network Management using Wireshark tool
Hello I have a LAB Assignment in Network Management using Wireshark Tool. just want an explanation of the steps mentioned in the attached file if possible. Please find the detail in the attached file...