sivo
06-23-02, 06:37 AM
hello guys ,the story is that yesterday my cousin called me and asked me
if i can write programs in Qbasic then i said well actually
around 10 years i was into Qbasic then she gave me these below programs
and you know, i've never written programs in Qbasic.
now if i can't solve the programs certainly i catch a conscienceAche.
plesae lend me a hand and do any of them for me if you have time.
1- write a program which accepts the marks of four lessons of some
students and represents the average of each student and then the
average of the whole class.
2- wite a program in qbasic which calculates this sum :
1 + 1/2*2 + 1/3*3 + ... +1/20*20
3- write a program to calculate Y for each input X :
Y=[arcsin(2X**2 - 1) + tan**3(2X+1)] / [sqr(X**4 +5) + |cos(pi/2 - X)|]
x= 0 ,0.25 ,0.5 ,0.75 ,1
4- write a program to accept some numbers from input and calculate the
sum of evens and the sum of odds seperately and then represents each of
them.
if i can write programs in Qbasic then i said well actually
around 10 years i was into Qbasic then she gave me these below programs
and you know, i've never written programs in Qbasic.
now if i can't solve the programs certainly i catch a conscienceAche.
plesae lend me a hand and do any of them for me if you have time.
1- write a program which accepts the marks of four lessons of some
students and represents the average of each student and then the
average of the whole class.
2- wite a program in qbasic which calculates this sum :
1 + 1/2*2 + 1/3*3 + ... +1/20*20
3- write a program to calculate Y for each input X :
Y=[arcsin(2X**2 - 1) + tan**3(2X+1)] / [sqr(X**4 +5) + |cos(pi/2 - X)|]
x= 0 ,0.25 ,0.5 ,0.75 ,1
4- write a program to accept some numbers from input and calculate the
sum of evens and the sum of odds seperately and then represents each of
them.