PDA

View Full Version : Help in C++ please..!



zaree
11-03-2011, 03:25 AM
Hi, anybody C++ expert here? i need urgent help if present here so, please help me to make a program of fining the percentage?? and also please paste the program source here..
Thanks in advance

dtexperts
11-29-2011, 02:10 PM
About what percentage do you want to measure it? You should more specified.At first make a search on
search engines if you do not find then you can think about make it.

zaree
11-29-2011, 02:43 PM
i just want o make a program in which i got the percentage of the student marks of all subjects, simple add the all subjects marks and them percentage it with the full marks and give output.

inctutor
11-30-2011, 04:18 AM
Well its simple really I can explain you how but I wont make it for you. you will need to declare a loop that will add the values together , you can input the values in an array, depends on what requirements you have, if you must use a link list then a FiFo will be fine. after adding all the values together from the loop follow the simple mathematical formula to get the % (don't use % iin the equations just as text % in equation counts as modular and you don't need that in your program )

saad safdar
12-30-2011, 12:22 AM
hello every one i am a programmer you can ask for any question of program in c++ you contact me i can easily deliever the program
for example
#include<stdio.h>
#include<conio.h>
void main(void)
{
clrscr();
printf("saad safdar");
getch();
}

saad safdar
12-30-2011, 12:58 AM
#include <iostream>
2. using namespace std;
3. int main()
4.
5. {
6. char usergrade;
7. int totalgrades = 0;
8. int numgrade = 1;
9. int count = 0;
10. int average = 0;
11. int A = 4, a = 4;
12. int B = 3, b = 3;
13. int C = 2, c = 2;
14. int D = 1, d = 1;
15. int F = 0, f = 0;
16.
17. cout << " Please enter the number of grades to average:\n";
18. cin >> numgrade;
19.
20. while (count < numgrade)
21. {
22. cout << " Please enter grade in letter format:\n";
23. cin >> usergrade;
24. cout << " You entered " << usergrade << ".\n";
25. totalgrades = usergrade + totalgrades;
26.
27.
28.
.
31. count++;
32. }
33. average = totalgrades / numgrade;
34.
35. cout << " Your GPA is: " << average << ".\n";
36. }

saad safdar
12-30-2011, 06:36 PM
#include<stdio.h>
#include<conio.h>
#include<iostream.h>

void main (void)
{
clrscr();

int c,f,k,user_choice;

printf("\n\t\t\t\Temperature Convertor V1.0\n\n\n\n\n");
printf("\n\nWlecome User Please Choose Any one of the following:\n");
printf("\n\nPRESS 1 for Celcius 2 Fehrenheit");
printf("\nPRESS 2 for Celcius 2 Kelvin");
printf("\nPRESS 3 for Fehrenheit 2 Kelvin\n\n");
printf("\n\n PRESS your desire Option....");
scanf("%d",&user_choice);

switch(user_choice){
case 1:
clrscr();
float cv;
float fv;
printf("\n\t\t\t\Temperature Convertor V1.0");
printf("\n\nCelcius 2 Fehrenheit Convertor");
printf("\nEnter Temperature in Celcius\n\n");
scanf("%f",&cv);
fv = ((cv*9)/5)+32;
printf("\n%f Celsius = %f Fehrenheit",cv,fv);
break;


case 2:
clrscr();
float cv2;
float fv2;
printf("\n\t\t\t\Temperature Convertor V1.0");
printf("\n\nCelcius 2 Kelvin Convertor");
printf("\nEnter Temperature in Celcius\n\n");
scanf("%f",&cv2);
fv2 = ((cv2-32)*(0.555));
printf("\n%f Celsius = %f Kelvin",cv2,fv2);
printf("\n\n\nThanks forusing");
break;


case 3:
clrscr();
float cv3;
float fv3;
printf("\n\t\t\t\Temperature Convertor V1.0");
printf("\n\nFehrenheit 2 Kelvin Convertor");
printf("\nEnter Temperature in Fehrenheit\n\n");
scanf("%f",&cv3);
fv3 = ((cv3-32)*(0.555)-273);
printf("\n%f Fehrenheit = %f Kelvin",cv3,fv3);
printf("\n\n\nThanks for Using");
break;


default:
clrscr();
printf("\n\t\t\t\Temperature Convertor V1.0");
printf("\n\n\t\t\tError");
break;
}

getch();

}

saad safdar
12-30-2011, 06:37 PM
#include<stdio.h>
#include<conio.h)
void main(void)
{
clrscr();
int i,j;
for(i=0;i<=10;i++)
{
for(j=1;j<=i;j++)
{
printf("+");
{
printf("/n");
}
getch();
}

saad safdar
12-30-2011, 06:39 PM
#include<stdio.h>
#include<conio.h>
void main(void)
{
clrscr();
int x;
printf("enter your number");
scanf("%d",&x);
if (x==1)
{
printf("Monday");
}
else if(x==2)
{
printf("Tuesday");
}
else if(x==3)
{
printf("Wednesday");
}
else if(x==4)
{
printf("Thursday");
}
else if(x==5)
{
printf("Friday");
}
else if(x==6)
{
printf("Saturday");
}
else if(x==7)
{
printf("sunday");
}
getch();
}

saad safdar
01-20-2012, 05:48 PM
hai can anybody c++ expert i need urgent help please help me to make a program of piano music

frank adams
01-21-2012, 05:40 PM
Hey...

I am here to help you.. You can ask me any kind of difficulty. Well i want to know that in which code you have facing problem...

Stachart
01-21-2012, 07:58 PM
hai can anybody c++ expert i need urgent help please help me to make a program of piano music to make programs for piano musics, you have enough time to spend and you must know music notes i guess! i dont know if c++ dedicated a special .h file for music notes likes they did it for hour or graphic!


Hi, anybody C++ expert here? i need urgent help if present here so, please help me to make a program of fining the percentage?? and also please paste the program source here..
Thanks in advance
i'm a little confusing! do you need to calculate the percent for student for what? percent of sucess or what? i'm not expert in C++, i just know the basic in C++ and i'm learning java instead because of better opportunity! but if you explain more your problem, i think i'll help you in buiding algorith and maybe source code!