Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Assignment 2
//gcc 5.4.0 #include <stdio.h> int main(void) { char studentName[40]; char courseName[50]; char professor[50]; int room; char semester[40]; int year; float score; float progrAs; float projects; float midTerm; float final; printf("Please enter student name: \n"); printf("Please enter name of the course: \n"); printf("Please enter professor teaching name of the course: \n"); printf("Please enter room:\n"); printf("Please enter semester:\n"); printf("Please enter year:\n"); printf("Please enter scores for \n Programming Assignments: \n Projects: \n Mid Term: \n Final Exam:\n"); printf("Student name:"); scanf("%s\n", &studentName); printf("Course name:"); scanf("%s\n", &courseName); printf("Professor's name:"); scanf("%s\n", &professor); printf("Room:"); scanf("%d\n", &room); printf("Semester:"); scanf("%s\n", &semester); printf("Year:"); scanf("%d\n", &year); scanf("%f", progAs); scanf("%f", projects); scanf("%f", midTerm); scanf("%f", final); score=((progAs*.15)+(projects*.2)+(midTerm*.3)+(final*.35))*100 printf("Final score: %f", score); return 0; }
run
|
edit
|
history
|
help
0
FloatFahrenheitToCelcius
Building squares using smallest amount of matches
18BCE2182 ASSESS_3 Q3
fgets and basic string manipulation
use_of_bool_in_loop
Función quicksort para strings
A_141128_MatricesProducto
2.1.2 Sum of all the elements in a one dimensional array A using reduction.
funcion dar vuelta numero
Assignment 8