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

  The program will read integers values

Write a C++ program to do the following. The program will read integers values one at a time from standard input (cin) until you read the value 150. assume that the number of values read in is at least 1 and less than or equal to 100

  Write a program to convert between rectangular

Write a program to convert between rectangular and cylindrical coordinates, based upon user input. For example, if the user wants to convert cylindrical to rectangular coordinates, the user would input r, ?, z values and the program would output x, y..

  Determine an appropriate functional decomposition

Create structure charts for a problem and determine an appropriate functional decomposition or top-down design from a structure chart

  Write a c program that reads in five numbers

Q1. (Bar Chart /Histogram printing) Write a C program that reads in five numbers (each between 1 and 30). For each number read, your program should print a line containing that number of adjacent asterisks. For example, if your program reads the numb..

  Write program to input series of hourly temperatures

Create and write a c++ program which inputs series of 24 hourly temperatures from file, and outputs bar chart (using stars) of temperatures for the day.

  Model-view-controller

Explain Model-View-Controller paradigm

  Write a function that accepts an int array

Element 0 of the argument arrayshould be copied to element 1 of the new array, element 1 of the argument array should be copied to element 2 of the new array, and so forth. The function shouldreturn a pointer to the new array.

  Distinguish syntax and purpose of while-loop and for-loop

Distinguish the syntax and purpose of while-loop and syntax of a for-loop. Give C++ code examples of both loops and descriibe the main differences.

  Execute tests and repetitions

Read data from standard input and store them in an array, Execute tests and repetitions

  Initialize an array and fill the array with the gpa values.

Write a program in java that asks user input (using a loop) for name of 10 student and the corresponding grade point averages (GPAs). Initialize an array and fill the array with the GPA values.

  Your program should include two functions

Your program should include two functions. Function celsius_at_depth should compute and return the Celsius temperature at a depth given in kilometers. Function fahrenheit should convert a Celsius temperature to Fahrenheit.

  Implement recursive algorithms using a stack

Show the difficulties of the added complexity and which of the two sorts is easier to implement nonrecursively? Why?

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