C code christmas assignment

Assignment Help C/C++ Programming
Reference no: EM13649354

C code Christmas assignment. We are supposed to create a record generating programme that will accept user information and output student information (student grade, highest and lowest grade, pass or fail status). Must be done in modular form, have a struct and a file.

#include <stdio.h>
#include <stdlib.h>
#include <conio.h>

//This programe calculates the grades for a student in ecah form and produces a report.
/*The programe also calculates the maxinimum and minimum grades scored by the student
in each individual subject. The rank of the student would also be calculated. */

struct grades
{

char fname[30],lname[30];
float course[1], subject[10],grade[10];
int age[1],gender[1];
};

int main ()
{
char tname [30];
int choice


printf("Welcome to the St.James Institute Report Systemn");
printf("Enter teacher's name: n");
scanf("%c", tname []);
system ("CLS");

printf("Which report do you want to view?n");
printf("1: General Reportn");
printf("2: Individual Reportn");

switch (choice)
{
case 1:
printf("General Reportn");
case 2:
printf("Individual Reportn");
default:
printf("ERROR");

}

getch();

return 0;

}
void class_info ()
{
int year, semester, class, amt_students;

printf ("Enter the current yearn");
scanf("%d", & year);
printf("Enter Semester (1, 2 or 3)n");
scanf("%d", & semester);
printf ("Enter class (1, 2, 3, 4, 5n");
scanf("%d", & class);
printf("How many students are in the clas?");
scanf("%d", & amt_students);

return
}

int srecord()
{
struct grades student;
char tname [30],info,info_s;
int choice,i;
int year, semester, clas,csize,i;

printf("Enter the class size");
scanf("%d",&scsize);

if (i[csize]!=0 ;i--)
{
printf ("Enter student's first name:");
scanf ("%s", &student.fname);

printf ("Enter student's surname name:");
scanf ("%s", &student.lname);

printf ("Enter student's age: ");
scanf ("%d", &student.age);

printf ("nEnter the student's gender 1 For Male, 0 For Female:");
scanf ("%d", student.gender);

printf ("Enter the number or cources: ");
scanf ("%d", student.cource);

if (i[student.course]=! 0; i--)
{
pirntf("Enter subject: ");
scanf("%f", student.subject[]);

pirntf("Enter subject's grade: ");
scanf("%f", student.grade[]);
}
else
{

}

}
else
{
printf("Class is full");
}


}
int calcgrade(float student.grade; int csize;float student.course)
{
struct grades student;
int i,totgrade=0;
float avg;

if (i[csize]!=0;i[csize]--)
{
if (i[student.course]=! 0; i--)
{
totgrade=totgrade+student.grade[i];

}
else
{
}

}
else
{

}
}

}

int status( int csize; float avg)
{
struct grades student;
int i,;
float avg;

if (i[csize]!=0;i[csize]--)
{
if (avg=>49)
{
printf("Student has passed")
}
else
{
printf("Student has failed and will repeat this grade")
}
}

}

Reference no: EM13649354

Questions Cloud

Define how many grams of cl2 are produced : If a 45.6-g sample that is 98.5% K2Cr2O7 by mass is allowed to react with 305 ml of HCl with a density of 1.15 g/ml and 30.1 % by mass, how many grams of Cl2 are produced
How a risk-based audit may address these concerns : What is your understanding of how a risk-based audit may address these concerns?
Magnitude anddirection of the impulse imparted to the ball : A baseball player hits a baseball (m=.14kg) the ball is initiallytraveling horizontally with a speed of 40 m/s. The batter hits afly ball with speed vf=55m/s. What is the magnitude anddirection of the impulse imparted to the ball?
Define what is the overall bond order of the molecule : If the total number of electrons in a homonuclear diatomic molecule is 13, what is the overall bond order of the molecule
C code christmas assignment : C code Christmas assignment. We are supposed to create a record generating programme that will accept user information and output student information (student grade, highest and lowest grade, pass or fail status). Must be done in modular form,..
New values of the length andthe new cross sectional area : A potential difference V is applied to a wire ofcross-section area of 1 unit, length 1 unit, and conductivityσ. You want to change the applied potential differenceand draw out the wire so the power dissipated is increased bya factor of 30 and the ..
Draw a state diagram mealy and check for redundancies : Draw a State Diagram Mealy and check for redundancies and then assign binary State Identifiers.
What angular distance does the jogger cover in radians : A jogger on a circular track that has a radius of 0.250 km runs adistance of 1.00 km. What angular distance does the jogger cover in radians
Calculate the force of the board on cement block : A wooden board is 2.0 m long and has a mass of 10 kg. Thisboard is supported at each end by cement blocks A and B. Calculate the force of the board on cement block A and on cement block B

Reviews

Write a Review

C/C++ Programming Questions & Answers

  Create program that uses functions and reference parameters

Create program that uses functions and reference parameters, and asks user for the outside temperature.

  Write a program using vectors and iterators

Write a program using vectors and iterators that allows a user to maintain a personal list of DVD titles

  Write the code required to analyse and display the data

Calculate and store the average for each row and column. Determine and store the values for the Average Map.

  Write a webservices application

Write a webservices application that does a simple four function calculator

  Iimplement a client-server of the game

Iimplement a client-server version of the rock-paper-scissors-lizard-Spock game.

  Model-view-controller

Explain Model-View-Controller paradigm

  Design a nested program

How many levels of nesting are there in this design?

  Convert celsius temperatures to fahrenheit temperatures

Write a C++ program that converts Celsius Temperatures to Fahrenheit Temperatures.

  Evaluate and output the value in the given base

Write C program that will input two values from the user that are a Value and a Base with which you will evaluate and output the Value in the given Base.

  Design a base class shape with virtual functions

Design a base class shape with virtual functions

  Implementation of classes

Implementation of classes Chart and BarChart. Class barChart chould display a simple textual representation of the data

  Technical paper: memory management

Technical Paper: Memory Management, The intent of this paper is to provide you with an in depth knowledge of how memory is used in executing, your programs and its critical support for applications.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd