11 Replies - 7863 Views - Last Post: 28 February 2010 - 08:13 AM Rate Topic: *---- 1 Votes

#1 jhobs_3526  Icon User is offline

  • New D.I.C Head

Reputation: -7
  • View blog
  • Posts: 14
  • Joined: 27-February 10

grading system in c

Posted 28 February 2010 - 05:53 AM

can you please give me an example of a grading system in turbo c program!or a payroll or billing statement program guide!
Is This A Good Question/Topic? -3
  • +

Replies To: grading system in c

#2 no2pencil  Icon User is offline

  • Admiral Fancy Pants
  • member icon

Reputation: 5382
  • View blog
  • Posts: 27,350
  • Joined: 10-May 07

Re: grading system in c

Posted 28 February 2010 - 06:03 AM

Sorry, but we don't just hand out code on request. We'll be more than happy to help you, but you must show some effort 1st.
Was This Post Helpful? 1
  • +
  • -

#3 jhobs_3526  Icon User is offline

  • New D.I.C Head

Reputation: -7
  • View blog
  • Posts: 14
  • Joined: 27-February 10

Re: grading system in c

Posted 28 February 2010 - 06:05 AM

View Postno2pencil, on 28 February 2010 - 05:03 AM, said:

Sorry, but we don't just hand out code on request. We'll be more than happy to help you, but you must show some effort 1st.



what kind of effort?
Was This Post Helpful? -1
  • +
  • -

#4 no2pencil  Icon User is offline

  • Admiral Fancy Pants
  • member icon

Reputation: 5382
  • View blog
  • Posts: 27,350
  • Joined: 10-May 07

Re: grading system in c

Posted 28 February 2010 - 06:06 AM

It's your assignment, we are not going to do it for you. You need to try to complete your assignment. What have you done? Have you tried to write any code?
Was This Post Helpful? 0
  • +
  • -

#5 jhobs_3526  Icon User is offline

  • New D.I.C Head

Reputation: -7
  • View blog
  • Posts: 14
  • Joined: 27-February 10

Re: grading system in c

Posted 28 February 2010 - 06:07 AM

View Postno2pencil, on 28 February 2010 - 05:03 AM, said:

Sorry, but we don't just hand out code on request. We'll be more than happy to help you, but you must show some effort 1st.


what should i do to this codes to make it correct:

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

int z,m,x,done,done1;
char q,keyhit,hitkey;

main()
{
clrscr();
TM();
q=getch();
operate();
}

operate()
{
 normvideo();
 clrscr();
 format();
 m=1;
 keyhit=getch();
 do
 {
  gotoxy(1,1);
  if (keyhit==toascii (80))
      m=m+1;
      else
	{
		if (keyhit==toascii (72))
		    m=m-1;
		else
		    {
		    if (keyhit==toascii(13))
			done=1;
		    else;
		    }
		}
		switch (m)
		{
		case 5:m=1;
		}
		switch (m)
		{
		case 0:m=4;
		}
      if (m==1)
      {
      textcolor (0);textbackground (15);
      gotoxy(4,5);cputs(" Select Program ");
      textcolor(15);textbackground(0);
      gotoxy(4,6);cputs(" Copyright      ");
      gotoxy(4,7);cputs(" Dedication     ");
      gotoxy(4,8);cputs(" Quit           ");
      textcolor(15);textbackground(1);
      gotoxy(1,24);cputs("Select program to run                                       ");
      }
	else

	   if (m==2)
	   {
      textcolor (0);textbackground (15);
      gotoxy(4,6);cputs(" Copyright      ");
      textcolor(15);textbackground(0);
      gotoxy(4,5);cputs(" Select Program ");
      gotoxy(4,7);cputs(" Dedication     ");
      gotoxy(4,8);cputs(" Quit           ");
      textcolor(15);textbackground(1);
      gotoxy(1,24);cputs("Software Copyright and Trade Marks                          ");
      }
	else
	  if (m==3)
	  {
      textcolor(0);textbackground(15);
       gotoxy(4,7);cputs(" Dedication     ");
       textcolor(15);textbackground(0);
       gotoxy(4,5);cputs(" Select Program ");
       gotoxy(4,6);cputs(" Copyright      ");
       gotoxy(4,8);cputs(" Quit           ");
       textcolor(15);textbackground(1);
       gotoxy(1,24);cputs("  Message from the programmer                               ");
       }
	else
	  if (m==4)
	{
	textcolor(0);textbackground(15);
      gotoxy(4,8);cputs(" Quit           ");
      textcolor(15);textbackground(0);
      gotoxy(4,5);cputs(" Select Program ");
      gotoxy(4,6);cputs(" Copyright      ");
      gotoxy(4,7);cputs(" Dedication     ");
      textcolor(15);textbackground(1);
      gotoxy(1,24);cputs(" Exit and return to D0S                                     ");
	}
      normvideo();
      keyhit=getch();
      }
      while (keyhit!=toascii(13));
      if (m==1)
       {
	selectpro();
       }
       else
	if (m==2)
	{
	clrscr();
	Copyrightrmation();
	q=getch();
	operate();
	}
	else
	   if (m==3)
	   {
	   Help();
	   q=getch();
	   operate();
	   }
	   else
	      if (m==4)
	      {
		 clrscr();
		 gotoxy (1,1);
		 textcolor (15);textbackground(1);
	cputs("TC Pro V. 0.01 : Copyright(c) 2010 by Fetalvo V. Robin, All rights reserved:#RVF");
		 getch();
		  exit();
	       }
	  }
	       Help()
	       {
		 format();
		textcolor(14);textbackground(1);
		gotoxy(32,2);cputs("                                                  ");
		gotoxy(32,3);cputs("    ------------------------------------------    ");
		gotoxy(32,4);cputs("   :                                          :   ");
		gotoxy(32,5);cputs("   :                                          :   ");
		gotoxy(32,6);cputs("   :                                          :   ");
		gotoxy(32,7);cputs("   :       This piece of work was created for :   ");
		gotoxy(32,8);cputs("   : the purpose of demonstrating how to use  :   ");
		gotoxy(32,9);cputs("   : Pop-up Menu in C language.               :   ");
	       gotoxy(32,10);cputs("   :                                          :   ");
	       gotoxy(32,11);cputs("   :                                          :   ");
	       gotoxy(32,12);cputs("   :                                          :   ");
	       gotoxy(32,13);cputs("   :                                          :   ");
	       gotoxy(32,14);cputs("   :                                          :   ");
	       gotoxy(32,15);cputs("   :                                          :   ");
	       gotoxy(32,16);cputs("   :                                          :   ");
	       gotoxy(32,27);cputs("    ------------------------------------------    ");
	       gotoxy(32,23);cputs("                                                  ");
	       textcolor(0);textbackground(15);
		gotoxy(4,7);cputs(" Dedication      ");
		textcolor(15);textbackground(0);
		gotoxy(4,5);cputs(" Select Program");
		gotoxy(4,6);cputs(" Copyright     ");
		gotoxy(4,8);cputs(" Quit          ");
		textcolor(15);textbackground(1);
		gotoxy(1,24);cputs("  Message from the programmer                         ");
	       normvideo();
	       }

	       Copyrightrmation()
	       {
	       format();
	       textcolor(14);textbackground(1);
		gotoxy(10,8);cputs("                                                                  ");
		gotoxy(10,9);cputs("    ------------------------------------------------------------  ");
	       gotoxy(10,10);cputs("   :  TC PRO v. 0.01                                             : ");
	       gotoxy(10,11);cputs("   :  Copyright  (c) 2010 by Robin V. Fetalvo,                  : ");
	       gotoxy(10,12);cputs("   :  All rights reserved.                                      : ");
	       gotoxy(10,13);cputs("   :  Compiled in KLL IT DEPARTMENT                             : ");
	       gotoxy(10,14);cputs("   :                                                            : ");
	       gotoxy(10,15);cputs("   :  No part of this program maybe reproduced or distributed   : ");
	       gotoxy(10,16);cputs("   :  in any form or by any means, or stored in a data disk     : ");
	       gotoxy(10,17);cputs("   :  or retrieval system without the prior written permission  : ");
	       gotoxy(10,18);cputs("   :  of the programmer.                                        : ");
	       gotoxy(10,19);cputs("    ------------------------------------------------------------  ");
	       gotoxy(10,20);cputs("                                                                  ");
	       textcolor(0);textbackground(15);
	       gotoxy(4,6);cputs(" Copyright      ");
	       textcolor(15);textbackground(0);
	       gotoxy(4,5);cputs(" Select Program ");
	       gotoxy(4,7);cputs(" Dedication     ");
	       gotoxy(4,8);cputs(" Quit           ");
	       textcolor(15);textbackground(1);
	      gotoxy(1,24);cputs("Software Copyrights and Trade Marks                                      ");
	     normvideo();
	     }

	     format()
	     {
	     gotoxy(1,1);cputs("------------------------------------------------------------------------------ ");
	     textcolor(BLUE), textbackground(RED);
	     gotoxy(1,2);cputs("                                TC Pro V. 0.01                                 ");
	     normvideo();
	     gotoxy(1,3);cputs("------------------------------------------------------------------------------ ");
	     gotoxy(1,5);cputs("   Select Program   ");
	     gotoxy(1,6);cputs("   Copyright	    ");
	     gotoxy(1,7);cputs("   Dedication       ");
	     gotoxy(1,8);cputs("   Quit	            ");
	     gotoxy(1,9);cputs("                    ");
	     gotoxy(1,11);cputs("------------------------------------------------------------------------------:");
	     gotoxy(1,12);cputs("----------------------------- Output -----------------------------------------:");
	     gotoxy(1,13);cputs(":                                                                             :");
	     gotoxy(1,14);cputs(":                                                                             :");
	     gotoxy(1,15);cputs(":                                                                             :");
	     gotoxy(1,16);cputs(":                                                                             :");
	     gotoxy(1,17);cputs(":                                                                             :");
	     gotoxy(1,18);cputs(":                                                                             :");
	     gotoxy(1,19);cputs(":                                                                             :");
	     gotoxy(1,20);cputs(":                                                                             :");
	     gotoxy(1,21);cputs(":                                                                             :");
	     gotoxy(1,22);cputs(":                                                                             :");
	     gotoxy(1,23);cputs(" ----------------------------------------------------------------------------- ");
	     textcolor(15);textbackground(1);
	     gotoxy(1,24);cputs(" Select program to run                                                         ");
	     textcolor(0);textbackground(15);
	     gotoxy(4,5);cputs(" Select Program ");
	     textcolor(0);textbackground(1);
	     gotoxy(2,10);cputs("Press     to Select");
	     gotoxy(8,10);putchar(toascii (24));
	     gotoxy(10,10);putchar(toascii (25));
	     textcolor(15);textbackground(0);
	     gotoxy(4,6);cputs(" Copyright     ");
	     gotoxy(4,7);cputs(" Dedication    ");
	     gotoxy(4,8);cputs(" Quit          ");
	     textcolor(RED);textbackground(7);
	     gotoxy(2,4);cputs("     M E N U        ");
	     normvideo();
	      }


TM()
{
textcolor(1);
gotoxy(10,9);cputs("  ------------------------------------------------------------  ");
gotoxy(10,10);cputs(":                                                              :");
gotoxy(10,11);cputs(":                                                              :");
gotoxy(10,12);cputs(":                                                              :");
gotoxy(10,13);cputs(":                                                              :");
gotoxy(10,14);cputs(":                                                              :");
gotoxy(10,15);cputs(":                                                              :");
gotoxy(10,16);cputs(":                                                              :");
gotoxy(10,17);cputs(":                                                              :");
gotoxy(10,18);cputs(":                                                              :");
gotoxy(10,19);cputs(":                                                              :");
gotoxy(10,20);cputs(" -------------------------------------------------------------");
textcolor(15);textbackground(1);
gotoxy(12,10);cputs("                                                            ");
gotoxy(12,11);cputs("           ²²²²²² ²²²²²     °°°°°°  °°°°°°  °°°°°°  TM      ");
gotoxy(12,12);cputs("             ²²   ²²        °°  °°  °°  °°  °°  °°          ");
gotoxy(12,13);cputs("             ²²   ²²        °°°°°°  °°°°°   °°  °°          ");
gotoxy(12,14);cputs("             ²²   ²²²²²     °°      °°  °°  °°°°°°          ");
gotoxy(12,15);cputs("                            v. 0.01                         ");
gotoxy(12,16);cputs("             KLL INFORMATION TECHNOLOGY DEPARTMENT          ");
gotoxy(12,17);cputs("                   Copyright (c) 2010                       ");
gotoxy(12,18);cputs("                     Robin V. Fetalvo                       ");
gotoxy(12,19);cputs("                    All right reserved                      ");

gotoxy(1,24);
normvideo();
}

selectpro()
{
format();
textcolor(0);textbackground(15);
gotoxy(2,13);cputs(" 1   |   S-#01       |    Print Age      | 1983 bytes ");
textcolor(15);textbackground(0);
gotoxy(2,14);cputs("     |               |    String lenght  |            ");
gotoxy(2,15);cputs("     |               |    Shift letter   |            ");
gotoxy(2,16);cputs("     |               |    Area           |            ");
gotoxy(2,17);cputs("     |               |    Feet to Meter  |            ");
gotoxy(2,18);cputs("     |               |    Exponential    |            ");
gotoxy(2,19);cputs("     |               |    Password       |            ");
gotoxy(2,20);cputs("     |               |    Sum & Ave      |            ");
gotoxy(2,20);cputs("     |               |    DIvision       |            ");
gotoxy(2,20);cputs("     |               |    Seconds        |            ");
textcolor(15);textbackground(1);
gotoxy(1,24);cputs("Display the value of age which is declared as a constant from the program  ");
 x=1;
 hitkey=getch();
 do
 {
 if (keyhit==toascii(80))
  x=x+1;
 else
    {
    if (keyhit==toascii(72))
	x=x-1;
    else
       {
       if (keyhit==toascii(27))
	   operate();
       else
	  {
       if (keyhit==toascii(13))
	   done1=1;
       else;
	   }
       }
    }
 switch  (x)
 {
 case 11:x=1;
 }
 switch  (x)
 {
 case 0:x=10;
 }
if  (x==1)
{
textcolor(0);textbackground(15);
gotoxy(2,13);cputs(" 1   |   S-#01       |    Print Age      | 1983 bytes ");
textcolor(15);textbackground(0);
gotoxy(2,14);cputs("     |               |    String lenght  |            ");
gotoxy(2,15);cputs("     |               |    Shift letters  |            ");
gotoxy(2,16);cputs("     |               |    Area           |            ");
gotoxy(2,17);cputs("     |               |    Feet to Meter  |            ");
gotoxy(2,18);cputs("     |               |    Exponential    |            ");
gotoxy(2,19);cputs("     |               |    Password       |            ");
gotoxy(2,20);cputs("     |               |    Sum & Average  |            ");
gotoxy(2,21);cputs("     |               |    Division       |            ");
gotoxy(2,22);cputs("     |               |    Seconds        |            ");
textcolor(15);textbackground(1);
gotoxy(1,24);cputs("Display the Value of age which declares as a constant from the program ");
 }
  else
     if  (x==2)
  {
   textcolor(0);textbackground(15);
gotoxy(2,14);cputs(" 2   |  S-#05        |    String lenght  |  1983 bytes");
textcolor(15);textbackground(0);
gotoxy(2,13);cputs("     |               |    Print Age      |            ");
gotoxy(2,15);cputs("     |               |    Shift letters  |            ");
gotoxy(2,16);cputs("     |               |    Area           |            ");
gotoxy(2,17);cputs("     |               |    Feet to Meter  |            ");
gotoxy(2,18);cputs("     |               |    Exponential    |            ");
gotoxy(2,19);cputs("     |               |    Password       |            ");
gotoxy(2,20);cputs("     |               |    Sum & Average  |            ");
gotoxy(2,21);cputs("     |               |    Division       |            ");
gotoxy(2,22);cputs("     |               |    Seconds        |            ");
textcolor(15);textbackground(0);
gotoxy(1,24);cputs("Display  the String lenght of a given word                             ");
}
  else
     if (x==3)
     {
      textcolor(0);textbackground(15);
gotoxy(2,15);cputs(" 3   |   S-#10       |    Shift letter   | 1983 bytes ");
textcolor(15);textbackground(0);
gotoxy(2,13);cputs("     |               |    Print Age      |            ");
gotoxy(2,14);cputs("     |               |    String lenght  |            ");
gotoxy(2,16);cputs("     |               |    Area           |            ");
gotoxy(2,17);cputs("     |               |    Feet to Meter  |            ");
gotoxy(2,18);cputs("     |               |    Exponential    |            ");
gotoxy(2,19);cputs("     |               |    Password       |            ");
gotoxy(2,20);cputs("     |               |    Sum & Average  |            ");
gotoxy(2,21);cputs("     |               |    Division       |            ");
gotoxy(2,22);cputs("     |               |    Seconds        |            ");
textcolor(15);textbackground(1);
gotoxy(1,24);cputs("Display  the translation of letters from lowercase to uppercase          ");
}
  else
     if  (x==4)
  {
   textcolor(0);textbackground(15);
gotoxy(2,16);cputs(" 4   |    S-#03      |    Area           | 1983 bytes ");
textcolor(15);textbackground(0);
gotoxy(2,13);cputs("     |               |    Print Age      |            ");
gotoxy(2,14);cputs("     |               |    String lenght  |            ");
gotoxy(2,15);cputs("     |               |    Shift letters  |            ");
gotoxy(2,17);cputs("     |               |    Feet to Meter  |            ");
gotoxy(2,18);cputs("     |               |    Exponential    |            ");
gotoxy(2,19);cputs("     |               |    Password       |            ");
gotoxy(2,20);cputs("     |               |    Sum & Average  |            ");
gotoxy(2,21);cputs("     |               |    Division       |            ");
gotoxy(2,22);cputs("     |               |    Seconds        |            ");

textcolor(15);textbackground(1);
gotoxy(1,24);cputs("Display  the area of the given lenght of the side of a square case         ");
  }
     else
     if  (x==5)
  {
   textcolor(0);textbackground(15);
gotoxy(2,17);cputs(" 5   |   S-#06       |    Feet to Meter  | 1983 bytes ");
textcolor(15);textbackground(0);
gotoxy(2,13);cputs("     |               |    Print Age      |            ");
gotoxy(2,14);cputs("     |               |    String lenght  |            ");
gotoxy(2,15);cputs("     |               |    Shift letters  |            ");
gotoxy(2,16);cputs("     |               |    Area           |            ");
gotoxy(2,18);cputs("     |               |    Exponential    |            ");
gotoxy(2,19);cputs("     |               |    Password       |            ");
gotoxy(2,20);cputs("     |               |    Sum & Average  |            ");
gotoxy(2,21);cputs("     |               |    Division       |            ");
gotoxy(2,22);cputs("     |               |    Seconds        |            ");
textcolor(15);textbackground(1);
gotoxy(1,24);cputs("Display  the equivalent value of feet into meter                            ");
  }
   else
     if  (x==6)
  {
   textcolor(0);textbackground(15);
gotoxy(2,18);cputs(" 6   |   S-#08       |    Exponential    | 1983 bytes ");
 textcolor(15);textbackground(0);
gotoxy(2,13);cputs("     |               |    Print Age      |            ");
gotoxy(2,14);cputs("     |               |    String lenght  |            ");
gotoxy(2,15);cputs("     |               |    Shift letters  |            ");
gotoxy(2,16);cputs("     |               |    Area           |            ");
gotoxy(2,17);cputs("     |               |    Feet to Meter  |            ");
gotoxy(2,19);cputs("     |               |    Password       |            ");
gotoxy(2,20);cputs("     |               |    Sum & Average  |            ");
gotoxy(2,21);cputs("     |               |    Division       |            ");
gotoxy(2,22);cputs("     |               |    Seconds        |            ");
textcolor(15);textbackground(1);
gotoxy(1,24);cputs("Display the value of a given number raised to the second, third, fourth power ");
  }
   else
     if  (x==7)
  {
    textcolor(0);textbackground(15);
 gotoxy(2,19);cputs(" 7   |    S-#02      |    Password      | 1983 bytes ");
 textcolor(15);textbackground(0);
 gotoxy(2,13);cputs("     |               |    Print Age     |            ");
 gotoxy(2,14);cputs("     |               |    String lenght |            ");
 gotoxy(2,15);cputs("     |               |    Shift letters |            ");
 gotoxy(2,16);cputs("     |               |    Area          |            ");
 gotoxy(2,17);cputs("     |               |    Feet to Meter |            ");
 gotoxy(2,18);cputs("     |               |    Exponential   |            ");
 gotoxy(2,20);cputs("     |               |    Sum & Average |            ");
 gotoxy(2,21);cputs("     |               |    Division      |            ");
 gotoxy(2,22);cputs("     |               |    Seconds       |            ");
 textcolor(15);textbackground(1);
gotoxy(1,24);cputs("Asks the true password                                                        ");
  }
   else
     if  (x==8)
  {
   textcolor(0);textbackground(15);
 gotoxy(2,20);cputs(" 8   |   S-#29       |    Sum & Average | 1983 bytes ");
 textcolor(15);textbackground(0);
 gotoxy(2,13);cputs("     |               |    Print Age     |            ");
 gotoxy(2,14);cputs("     |               |    String lenght |            ");
 gotoxy(2,14);cputs("     |               |    String lenght |            ");
 gotoxy(2,15);cputs("     |               |    Shift Letters |            ");
 gotoxy(2,16);cputs("     |               |    Area          |            ");
 gotoxy(2,17);cputs("     |               |    Feet to Meter |            ");
 gotoxy(2,18);cputs("     |               |    Exponential   |            ");
 gotoxy(2,19);cputs("     |               |    Password      |            ");
 gotoxy(2,21);cputs("     |               |    Division      |            ");
 gotoxy(2,22);cputs("     |               |    Seconds       |            ");
 textcolor(15);textbackground(1);
gotoxy(1,24);cputs("Display the sum and the average of a given three numbers                      ");
  }
   else
     if  (x==9)
  {
   textcolor(0);textbackground(15);
 gotoxy(2,21);cputs(" 9   |   S-#15       |    Division      |  1983 bytes");
 textcolor(15);textbackground(0);
 gotoxy(2,13);cputs("     |               |     Print Age    |            ");
 gotoxy(2,14);cputs("     |               |     String lenght|            ");
 gotoxy(2,15);cputs("     |               |    Shift letters |            ");
 gotoxy(2,16);cputs("     |               |    Area          |            ");
 gotoxy(2,17);cputs("     |               |    Feet to Meter |            ");
 gotoxy(2,18);cputs("     |	          |    Exponential   |            ");
 gotoxy(2,19);cputs("     |               |    Password      |            ");
 gotoxy(2,20);cputs("     |               |    Sum & Average |            ");
 gotoxy(2,22);cputs("     |               |    Seconds       |            ");
 textcolor(15);textbackground(1);
gotoxy(1,24);cputs("Display the qoutient of a given two numbers                               ");
  }
   else
     if  (x==10)
  {
   textcolor(0);textbackground(15);
 gotoxy(2,22);cputs(" 10  |   S-#12       |   Seconds        |  1983 bytes");
 textcolor(15);textbackground(0);
 gotoxy(2,13);cputs("     |               |   Print Age      |            ");
 gotoxy(2,14);cputs("     |               |   String lenght  |            ");
 gotoxy(2,15);cputs("     |               |   Shift letters  |            ");
 gotoxy(2,16);cputs("     |               |   Area           |            ");
 gotoxy(2,17);cputs("     |               |   Feet to Meter  |            ");
 gotoxy(2,18);cputs("     |               |   Exponential    |            ");
 gotoxy(2,19);cputs("     |               |   Password       |            ");
 gotoxy(2,20);cputs("     |               |   Sum & Average  |            ");
 gotoxy(2,21);cputs("     |               |   Division       |            ");
 textcolor(15);textbackground(1);
gotoxy(1,24);cputs("Display the equivalent hours, minutes and seconds of a given number of second ");
  }

normvideo();
keyhit=getch();
}
while  (keyhit!=toascii(13));
if (x==1)
{
clrscr();
age();
selectpro();
}
if  (x==2)
{
clrscr();
stringlength();
selectpro();
}
if  (x==3)
{
clrscr();
lowercasetouppercase();
selectpro();
}
if  (x==4)
{
clrscr();
area();
selectpro();
}
if  (x==5)
{
clrscr();
feettometer();
selectpro();
}
if  (x==6)
{
clrscr();
scf();
selectpro();
}
if  (x==7)
{
clrscr();
password();
selectpro();
}
if  (x==8)
{
clrscr();
sumave();
selectpro();
}
if  (x==9)
{
clrscr();
division();
selectpro();
}
if  (x==10)
{
clrscr();
seconds();
selectpro();
}
}


      feettometer()
      {
      int feet;
      float meters;
      gotoxy(30,12);printf("Enter number of feet:");
      scanf("%d",&feet);
      meters = feet * 0.3048;
      gotoxy(30,12);printf("%d feet is %f meter                     ",feet,meters);
      textcolor(143);textbackground(1);
      gotoxy(1,24);
cputs("   Press any key to go back to SELECT MENU                             ");
     normvideo();
     getche();
    }

    age()
    {
     int age;
     age = 36;
     gotoxy(30,12); printf("My age is %d ", age);
     textcolor(143);textbackground(1);
     gotoxy(1,24);
cputs("   Press any key to go back to SELECT MENU                              ");
     normvideo();
     getch();
    }

    lowercasetouppercase()
    {
     char str[80];
     int i;
     gotoxy(30,12);
     strcpy (str,"this is a test                       ");
     for (i = 0; str[i]; i++) str[i] = toupper(str[i]);
     printf("%s\n", str);\
     textcolor(143);textbackground (1);
     gotoxy(1,24);
cputs("   Press any key to go back to SELECT MENU                               ");
     normvideo();
     getch();
    }

    password()
    {
     char pw[80];
     for (; ;)/> {
     gotoxy(30,12); printf("Enter password:");
      gets(pw);
     if  (! strcmp (pw, "runcode"))
      break;
    }
    textcolor(143);textbackground(1);
    gotoxy(1,24);
cputs("   Press any key to go back to SELECT MENU                                 ");
     normvideo();
     getch();
    }

    seconds()
    {
     int n, h, rh, m, rm,s;
     gotoxy(30,12);
     printf("Enter number of second:");
     scanf("%d", &n);
     h = n/3600;
     rh = n%3600;
     m = rh/60;
     rm = rh%60;
     s = rm%60;
     gotoxy(30,13);
     printf("%d seconds is %.02d:%.02d:%.02d ", n, h, m, s);
     textcolor(143);textbackground(1);
     gotoxy(1,24);
cputs("  Press any key to go back to SELECT MENU                                 ");
     normvideo();
     getch();
    }

    division()
    {
     int a, b;
     gotoxy(30,12);printf("Enter two numbers:");
     scanf("%d%d",&a,&B)/>;
     if (B)/>   printf("                      The qoutient of the two numbers is %d           ",a/B)/>;
     else   printf("                 cannot divide by zero                       ");
     textcolor(143);textbackground(1);
     gotoxy(1,24);
     cputs("  Press any key to go back to SELECT MENU                                 ");
      normvideo();
      getch();
      }

      scf()
      {
       int a, square, cube, four;
       gotoxy(30,8);
       printf("Enter a number:");
       scanf("%d",&a);
       square = a * a;
       cube = a * a * a;
       four = a * a * a * a;
       gotoxy(30,10);printf("The square of %d is %d", a, square);
       gotoxy(30,12);printf("The cube of %d is %d", a, cube);
       gotoxy(30,14);printf("The fourth power of %d is %d", a, four);
       textcolor(143);textbackground(1);
       gotoxy(1,24);
cputs("  Press any key to go back to SELECT MENU                                  ");
      normvideo();
      getch();
     }

     stringlength()
     {
     char str[80];
     gotoxy(10,8);cputs("Enter a string : ");
     gotoxy(26,8);gets(str);
     gotoxy(7,10);printf("The string lenght is %d", strlen(str));
	textcolor(143);textbackground(1);
      gotoxy(1,24);
cputs("  Press any key to go back to SELECT MENU                                  ");
      normvideo();
       getch();
     }

     area()
     {
      int side, area;
      gotoxy(30,11); printf("Give me a number that will                    ");
      gotoxy(30,13); printf("stand for the side of a square:");
      scanf("%d", &side);
      area = side * 4;
      gotoxy(30,15);
      printf("Area of the square is %d", area);
      textcolor(143);textbackground(1);
      gotoxy(1,24);
cputs("  Press any key to go back to SELECT MENU                                   ");
      normvideo();
      getch();
     }

     sumave()
     {
      int x, y,z, sum,ave;
      gotoxy(30,12);
      printf("Enter three integers:");
      scanf("%d %d %d", &x, &y, &z);
      sum = x+y+z;
      ave = sum/3;
      gotoxy(30,13);
      printf("The sum of %d, %d and %d is %d                                  ", x,y,z,sum);
      gotoxy(30,15); printf("The average of %d, %d and %d is %d)                ", x,y,z,ave);
      textcolor(143);textbackground(1);
      gotoxy(1,24);
cputs("  Press any key to go back to SELECT MENU                                  ");
      normvideo();
      getch();
     }


This post has been edited by no2pencil: 28 February 2010 - 06:09 AM
Reason for edit:: Added Code Tags

Was This Post Helpful? 0
  • +
  • -

#6 no2pencil  Icon User is offline

  • Admiral Fancy Pants
  • member icon

Reputation: 5382
  • View blog
  • Posts: 27,350
  • Joined: 10-May 07

Re: grading system in c

Posted 28 February 2010 - 06:08 AM

1.) Please use code tags (did you read any rules before posting?)
2.) What is wrong with the ton of code you just posted?

I'll be more than happy to help, but the more information you can offer, the less someone is going to have to hunt for the information, & the more likely you'll get an answer.
Was This Post Helpful? 0
  • +
  • -

#7 jhobs_3526  Icon User is offline

  • New D.I.C Head

Reputation: -7
  • View blog
  • Posts: 14
  • Joined: 27-February 10

Re: grading system in c

Posted 28 February 2010 - 06:10 AM

[quote name='jhobs_3526' date='28 February 2010 - 05:05 AM' timestamp='1267362308' post='941864']

View Postno2pencil, on 28 February 2010 - 05:03 AM, said:

Sorry, but we don't just hand out code on request. We'll be more than happy to help you, but you must show some effort 1st.



yap this is the code!
how can i make the codes correct?
Was This Post Helpful? -2
  • +
  • -

#8 xtr3mnico  Icon User is offline

  • D.I.C Head

Reputation: 7
  • View blog
  • Posts: 89
  • Joined: 26-February 10

Re: grading system in c

Posted 28 February 2010 - 06:49 AM

Where in the code do u need help...
What should it do and What is it doing now?
Any Assisting errors that needs posting...
The less detail you give the less detail u will receive
Was This Post Helpful? 1
  • +
  • -

#9 jhobs_3526  Icon User is offline

  • New D.I.C Head

Reputation: -7
  • View blog
  • Posts: 14
  • Joined: 27-February 10

Re: grading system in c

Posted 28 February 2010 - 07:32 AM

View Postxtr3mnico, on 28 February 2010 - 05:49 AM, said:

Where in the code do u need help...
What should it do and What is it doing now?
Any Assisting errors that needs posting...
The less detail you give the less detail u will receive


i need a code that can make that certain program create its own database,just like in access,where in there is a data bank for all the information that i will input in that program!
Was This Post Helpful? 0
  • +
  • -

#10 JackOfAllTrades  Icon User is offline

  • Saucy!
  • member icon

Reputation: 6092
  • View blog
  • Posts: 23,612
  • Joined: 23-August 08

Re: grading system in c

Posted 28 February 2010 - 07:36 AM

So you're just posting random code you found somewhere?

Nice.
Was This Post Helpful? 2
  • +
  • -

#11 jhobs_3526  Icon User is offline

  • New D.I.C Head

Reputation: -7
  • View blog
  • Posts: 14
  • Joined: 27-February 10

Re: grading system in c

Posted 28 February 2010 - 08:01 AM

View PostJackOfAllTrades, on 28 February 2010 - 06:36 AM, said:

So you're just posting random code you found somewhere?

Nice.


no sir its my own program that i nedd further improvement.i dont know how to connect that into a database!
Was This Post Helpful? 0
  • +
  • -

#12 JackOfAllTrades  Icon User is offline

  • Saucy!
  • member icon

Reputation: 6092
  • View blog
  • Posts: 23,612
  • Joined: 23-August 08

Re: grading system in c

Posted 28 February 2010 - 08:13 AM

So you are Robin V. Fetalvo, on the faculty of Lipa City Public College (at least a couple of years ago) and author of the paper "Relationship between the Lifestyle of LCPC Teaching Personnel and their Performance of Professional Functions: It's[sic] Implication to Instruction?"

But you come to Internet programming forums looking for assistance?

Pardon me if I don't believe you. Although given the quality of that code, it wouldn't surprise me. :rolleyes:
Was This Post Helpful? 2
  • +
  • -

Page 1 of 1