SlideShare a Scribd company logo
The BestTeam Leader: Brian Byrd	Team Members: Heather Garn, Diane JoynerNatara Fonseca, Derek RicksDavid Au
IntroductionReason for the programProcess  to make the programEach  team members partLimitations of the program
First Functioninteasyadd(int a, int b);// prototype for easy add if (easyadd(num1, num2)== answer)// function callprintf("Wrong! The correct answer is %d\n", easyadd(num1, num2));// function call to tell the right answerinteasyadd(int a, int b)// easyadd function definition{int sum1=0;//declare and intilize sum1    sum1= a+ b;// equation to add two numbers    return sum1;// return the sum1}//end function
Second Functioninthardadd(int c, int d);// prototype for hard add if (hardadd(num3, num4)== answer)// call function  to check their answerprintf("Wrong! The correct answer is %d\n", hardadd(num3, num4));// call function for correct answerinthardadd(int c, int d )// hardadd function definition{int sum2=0;//declare and intilize sum2    sum2= c+ d;// equation to add two numbers    return sum2;// return the sum2}// end function
Third Functioninteasysub(int e, int f);// prototype for easy subtractif (easysub(num5, num6)== answer)// call function to check their answer printf("Wrong! The correct answer is %d\n", easysub(num5, num6));// call function to give correct answerinteasysub(int e, int f)//easy subtract function definition{int sum3=0;//declare and intilize sum3    sum3= e-f;// equation to subtract two numbers    return sum3;// return the sum3}// end function
Fourth Functioninthardsub(int g, int h);// prototype for hard subtract if (hardsub(num7, num8)== answer)// call function to check their answer printf("Wrong! The correct answer is %d\n", hardsub(num7, num8));// call function to output the correct answer inthardsub(int g, int h)//hard subtract function definition{int sum4=0;//declare and intilize sum4    sum4= g-h;// equation to subtract two numbers    return sum4;// return sum4}// end function
Fifth Functionint grade(int number);// prototype for number gradeprintf("You got %d percent correct\n", grade(correct));// call function for the number gradeint grade(int number)// grade number function definition{int grade;// declare variable grade    grade=number*10;// equation to turn the number of correct answers to a number grade    return grade;// return grade}// end function
Sixth Functionchar lgrade(int number);// prototype for letter gradeprintf("You got an %c", lgrade(correct));// call letter grade function to tell what their grade is
Sixth Function- Continuechar lgrade(int number)//letter grade function definition{int grade;// declare variable grade    grade=number*10;// equation to turn the number of correct answers to a number grade    if(grade>=90)//if grade is 100-90        return 'A';// return an A grade letter    else if (grade>=80)// if grade is 89-80        return 'B';// return an B grade letter    else if (grade>=70)// if grade is 79-70        return 'C';// return an C grade letter    else if (grade>=60)// if grade is 69-60        return 'D';// return an D grade letter    else// if grade is 59 or lower        return 'F';// return an F grade letter}// end of function
ConclusionHelpful to Elementary School StudentsWhat we could include in the futureAny Questions?

More Related Content

PPTX
C language basics
PPT
C language programming
PDF
Introduction to c language
PPT
Getting Started with C++
PPTX
What is c
PDF
C language
C language basics
C language programming
Introduction to c language
Getting Started with C++
What is c
C language

What's hot (19)

PPT
C language basics
PPTX
C Programming basics
PPTX
C Programming Unit-2
PPT
Variables in C Programming
PDF
12 computer science_notes_ch01_overview_of_cpp
PPT
C program compiler presentation
PDF
Unit ii chapter 2 Decision making and Branching in C
PPT
Basic concept of c++
PPTX
Overview of c++ language
PPT
Basics of c++ Programming Language
PPT
C++ for beginners
PPT
Cbasic
PPT
Ch2 introduction to c
PPTX
C Programming Unit-1
PPT
Declaration of variables
PPTX
Claguage 110226222227-phpapp02
PDF
C Programming
PDF
Constants Variables Datatypes by Mrs. Sowmya Jyothi
PPTX
Overview of C Mrs Sowmya Jyothi
C language basics
C Programming basics
C Programming Unit-2
Variables in C Programming
12 computer science_notes_ch01_overview_of_cpp
C program compiler presentation
Unit ii chapter 2 Decision making and Branching in C
Basic concept of c++
Overview of c++ language
Basics of c++ Programming Language
C++ for beginners
Cbasic
Ch2 introduction to c
C Programming Unit-1
Declaration of variables
Claguage 110226222227-phpapp02
C Programming
Constants Variables Datatypes by Mrs. Sowmya Jyothi
Overview of C Mrs Sowmya Jyothi
Ad

Viewers also liked (7)

PPT
C language
PPS
Clanguage
ODP
OpenGurukul : Language : C Programming
PDF
Top C Language Interview Questions and Answer
PDF
C notes.pdf
PPTX
Array in c language
PPTX
C language ppt
C language
Clanguage
OpenGurukul : Language : C Programming
Top C Language Interview Questions and Answer
C notes.pdf
Array in c language
C language ppt
Ad

Similar to Programming C Language (20)

PDF
Function lecture
PPTX
Dti2143 chapter 5
PPTX
ฟังก์ชั่นย่อยและโปรแกรมมาตรฐาน ม. 6 1
PPTX
luckfuckfunctioneekefkfejewnfiwnfnenf.pptx
PDF
7 functions
PPT
An imperative study of c
PPT
Unit2 jwfiles
PPTX
Function in C program
PPT
RECURSION IN C
PPT
Recursion in C
PPT
C-Language Unit-2
DOCX
C lab manaual
DOCX
Chapter 1 Programming Fundamentals Assignment.docx
PPT
Unit 5 Foc
DOCX
PDF
Functions
PDF
The solution manual of programming in ansi by Robin
PDF
5 c control statements looping
PPTX
Function in c
PPT
Fucntions & Pointers in C
Function lecture
Dti2143 chapter 5
ฟังก์ชั่นย่อยและโปรแกรมมาตรฐาน ม. 6 1
luckfuckfunctioneekefkfejewnfiwnfnenf.pptx
7 functions
An imperative study of c
Unit2 jwfiles
Function in C program
RECURSION IN C
Recursion in C
C-Language Unit-2
C lab manaual
Chapter 1 Programming Fundamentals Assignment.docx
Unit 5 Foc
Functions
The solution manual of programming in ansi by Robin
5 c control statements looping
Function in c
Fucntions & Pointers in C

Programming C Language

  • 1. The BestTeam Leader: Brian Byrd Team Members: Heather Garn, Diane JoynerNatara Fonseca, Derek RicksDavid Au
  • 2. IntroductionReason for the programProcess to make the programEach team members partLimitations of the program
  • 3. First Functioninteasyadd(int a, int b);// prototype for easy add if (easyadd(num1, num2)== answer)// function callprintf("Wrong! The correct answer is %d\n", easyadd(num1, num2));// function call to tell the right answerinteasyadd(int a, int b)// easyadd function definition{int sum1=0;//declare and intilize sum1 sum1= a+ b;// equation to add two numbers return sum1;// return the sum1}//end function
  • 4. Second Functioninthardadd(int c, int d);// prototype for hard add if (hardadd(num3, num4)== answer)// call function to check their answerprintf("Wrong! The correct answer is %d\n", hardadd(num3, num4));// call function for correct answerinthardadd(int c, int d )// hardadd function definition{int sum2=0;//declare and intilize sum2 sum2= c+ d;// equation to add two numbers return sum2;// return the sum2}// end function
  • 5. Third Functioninteasysub(int e, int f);// prototype for easy subtractif (easysub(num5, num6)== answer)// call function to check their answer printf("Wrong! The correct answer is %d\n", easysub(num5, num6));// call function to give correct answerinteasysub(int e, int f)//easy subtract function definition{int sum3=0;//declare and intilize sum3 sum3= e-f;// equation to subtract two numbers return sum3;// return the sum3}// end function
  • 6. Fourth Functioninthardsub(int g, int h);// prototype for hard subtract if (hardsub(num7, num8)== answer)// call function to check their answer printf("Wrong! The correct answer is %d\n", hardsub(num7, num8));// call function to output the correct answer inthardsub(int g, int h)//hard subtract function definition{int sum4=0;//declare and intilize sum4 sum4= g-h;// equation to subtract two numbers return sum4;// return sum4}// end function
  • 7. Fifth Functionint grade(int number);// prototype for number gradeprintf("You got %d percent correct\n", grade(correct));// call function for the number gradeint grade(int number)// grade number function definition{int grade;// declare variable grade grade=number*10;// equation to turn the number of correct answers to a number grade return grade;// return grade}// end function
  • 8. Sixth Functionchar lgrade(int number);// prototype for letter gradeprintf("You got an %c", lgrade(correct));// call letter grade function to tell what their grade is
  • 9. Sixth Function- Continuechar lgrade(int number)//letter grade function definition{int grade;// declare variable grade grade=number*10;// equation to turn the number of correct answers to a number grade if(grade>=90)//if grade is 100-90 return 'A';// return an A grade letter else if (grade>=80)// if grade is 89-80 return 'B';// return an B grade letter else if (grade>=70)// if grade is 79-70 return 'C';// return an C grade letter else if (grade>=60)// if grade is 69-60 return 'D';// return an D grade letter else// if grade is 59 or lower return 'F';// return an F grade letter}// end of function
  • 10. ConclusionHelpful to Elementary School StudentsWhat we could include in the futureAny Questions?