Symbianize Forum

Most of our features and services are available only to members, so we encourage you to login or register a new account. Registration is free, fast and simple. You only need to provide a valid email. Being a member you'll gain access to all member forums and features, post a message to ask question or provide answer, and share or find resources related to mobile phones, tablets, computers, game consoles, and multimedia.

All that and more, so what are you waiting for, click the register button and join us now! Ito ang website na ginawa ng pinoy para sa pinoy!

All about programming (Specially c, c++, VB, Java)

JOptionPane.showMessageDialog(null, "Please enter your grade:");
quiz= Integer.parseInt(JOptionPane.showInputDialog("\nQuiz:"));
hw= Integer.parseInt(JOptionPane.showInputDialog("\nAssignment:"));
le= Integer.parseInt(JOptionPane.showInputDialog("\nLab Exercise:"));
me= Integer.parseInt(JOptionPane.showInputDialog("\nMajor Exams:"));

ave =((quiz*.2)+(hw*.1)+(le*.2)+(me*.5));

if ((ave >= 95) || (ave <=100)){

JOptionPane.showMessageDialog(null, name + " your average is " + ave + " and its interpreted as Excellent." );
}

else if ((ave>=90) || (ave <=94)){

JOptionPane.showMessageDialog(null, name + " your average is " + ave + " and its interpreted as Very Good." );
}
else if ((ave >= 89) || (ave <=89)){

JOptionPane.showMessageDialog(null, name + " your average is " + ave + " and its interpreted as Good." );
}
else if ((ave>=80) || (ave <=84)){

JOptionPane.showMessageDialog(null, name + " your average is " + ave + " and its interpreted as Failed." );
}
else{

JOptionPane.showMessageDialog(null, " Your average is" + ave );

bakit po kaya kapag nag iinput ako ng values tapos kapag nasolve yung average nila langing interpreted as excellent? pls help naman po :(
 
uys pinapagawa kc kami ng program .. madali lang toh yung makakatulong saken bigyan ko nalang ng 30 load sa smart guys..

Input: as many characters as user wants on a stack.
Output: the characters the characters on the first-in, first-out basis.

So mag iinput ung user ng mga character halimbawa [ a , b ,c ,d ,e] . tapos pag nag output eh dapat naka baliktad na sya [ e , d , c , b , a]

c , c++ , java lang po ung language mas maikli nag codes mas better ... salamat po sa tutulong promise 30 smart load yan pag nag run
 
pano po mag coding sa ms acces form ng "from this date to this date " na ng galing lng sa isang field?
 
To Yani

- Kaya interpreted as excellent lagi yung average kasi pasok sya lagi sa first if condition" if((ave > = 95)||( ave < = 100)) "

Gumamit sya ng OR operator "||" dapat palitan nya ng AND "&&" para magproceed sya sa next condition.
 
Last edited:
Hello! ask ko lang po kung paano icodes using 2D Array yung Magic square and user input ung size at element sa java or android programming! thank you po! Badly need ko lang po talaga! :pray::pray::pray::)
 
Code:
#include <iostream.h>
#include <conio.h>

main()
{
clrscr();
char a[30], b[30];
cout << "\n\t\tEnter Username: ";
cin.getline(a,29);
cout << "\n\t\tEnter Password: ";
cin.getline(b,29);
if (a[0]=='U' && a[1]=='N'&& b[0]=='P' && b[1]=='W')
{
cout << "password correct.",
goto tama;
}
else
{
cout << "\n\t\tPASSWORD INCORRECT!!";
getch();
return 0;
}
tama:
clrscr();
cout << "\n\t\tPASSWORD CORRECT!!"<<endl<<endl;
cout << "\n\t\tDo you want to continue?";
getch();
return 0;
}

pahelp naman po .. pano po gagawing asterisk yung makikita pag nilalagay ang password ? thanks po ! ((BEGINNERpo) :)
 
Magandang gabi mga master,
patulong naman.
Paano gumawa ng Optical Mark Recognition Software, ano ano ang dapat ko iresearch tungkol sa vb.net
https://www.youtube.com/watch?v=4Kul-mHgHVo
ganto po sana ang balak kong gawin. nag try ako sa matlab kaso di ko magawa yung icocompare nya yung certain region pixel sa dalawang image.
 
pahelp naman po kahit simple TPS lng connected via database. using MS Studio 2010. inventory or regestrtion system.
 
JOptionPane.showMessageDialog(null, "Please enter your grade:");
quiz= Integer.parseInt(JOptionPane.showInputDialog("\nQuiz:"));
hw= Integer.parseInt(JOptionPane.showInputDialog("\nAssignment:"));
le= Integer.parseInt(JOptionPane.showInputDialog("\nLab Exercise:"));
me= Integer.parseInt(JOptionPane.showInputDialog("\nMajor Exams:"));

ave =((quiz*.2)+(hw*.1)+(le*.2)+(me*.5));

if ((ave >= 95) || (ave <=100)){

JOptionPane.showMessageDialog(null, name + " your average is " + ave + " and its interpreted as Excellent." );
}

else if ((ave>=90) || (ave <=94)){

JOptionPane.showMessageDialog(null, name + " your average is " + ave + " and its interpreted as Very Good." );
}
else if ((ave >= 89) || (ave <=89)){

JOptionPane.showMessageDialog(null, name + " your average is " + ave + " and its interpreted as Good." );
}
else if ((ave>=80) || (ave <=84)){

JOptionPane.showMessageDialog(null, name + " your average is " + ave + " and its interpreted as Failed." );
}
else{

JOptionPane.showMessageDialog(null, " Your average is" + ave );

bakit po kaya kapag nag iinput ako ng values tapos kapag nasolve yung average nila langing interpreted as excellent? pls help naman po :(




int quiz,hw,le,me;
double ave;
String name = "Trying To Correct";
JOptionPane.showMessageDialog(null, "Please enter your grade:");
quiz= Integer.parseInt(JOptionPane.showInputDialog("\nQu iz:"));
hw= Integer.parseInt(JOptionPane.showInputDialog("\nAs signment:"));
le= Integer.parseInt(JOptionPane.showInputDialog("\nLa b Exercise:"));
me= Integer.parseInt(JOptionPane.showInputDialog("\nMa jor Exams:"));

ave =((quiz*.2)+(hw*.1)+(le*.2)+(me*.5));

if ((ave >= 95 && ave <=100)){

JOptionPane.showMessageDialog(null, name + " your average is " + ave + " and its interpreted as Excellent." );
}

else if ((ave>=90 && ave <=94)){

JOptionPane.showMessageDialog(null, name + " your average is " + ave + " and its interpreted as Very Good." );
}
else if ((ave >= 89 && ave <=89)){

JOptionPane.showMessageDialog(null, name + " your average is " + ave + " and its interpreted as Good." );
}
else if ((ave>=80 & ave <=84)){

JOptionPane.showMessageDialog(null, name + " your average is " + ave + " and its interpreted as Failed." );
}
else{

JOptionPane.showMessageDialog(null, " Your average is" + ave );
}



Bale eto dapat yung code pero ni revise ko para mas OK...


int quiz,hw,le,me;
double ave;
String name = "Trying To Correct";
JOptionPane.showMessageDialog(null, "Please enter your grade:");
quiz= Integer.parseInt(JOptionPane.showInputDialog("\nQu iz:"));
hw= Integer.parseInt(JOptionPane.showInputDialog("\nAs signment:"));
le= Integer.parseInt(JOptionPane.showInputDialog("\nLa b Exercise:"));
me= Integer.parseInt(JOptionPane.showInputDialog("\nMa jor Exams:"));

ave =((quiz*.2)+(hw*.1)+(le*.2)+(me*.5));

if(ave<=60){

JOptionPane.showMessageDialog(null, " Invalid Number : " + ave );
}

else if (ave <=84){

JOptionPane.showMessageDialog(null, name + " your average is " + ave + " and its interpreted as Failed." );
}

else if (ave<=89){

JOptionPane.showMessageDialog(null, name + " your average is " + ave + " and its interpreted as Good." );
}


else if (ave <=94){

JOptionPane.showMessageDialog(null, name + " your average is " + ave + " and its interpreted as Very Good." );
}


else if (ave <=100){

JOptionPane.showMessageDialog(null, name + " your average is " + ave + " and its interpreted as Excellent." );
}


else{

JOptionPane.showMessageDialog(null, " Invalid Number : " + ave );
}

eto na po yugnrevised code paki check nlng if ok na din...
 
sir patulong naman sa VB. may mga files ako sa isang folder example:

one
two(1)
two(2)
two(3)
two(4)
two(5)
three
three(1)
four
five
five(1)
five(2)


ngayon sir paano ko makukuha yung pinaka huli.

OUTPUT:
one
two(5)
three(1)
four
five(2)

then dapat yung two(5) magiging two nalang, three(1) magiging three nalang, five(2) magiging five nalang.

Thanks master.
 
Last edited:
sir pwede gawing descending order display nito? salamat

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

void main()

{

int i,n,c=1,d=n,b=2;

clrscr();

printf ("Enter the limit\n\n"):
scanf ("%d",&n);
while (c<=n)
{
i=2;
while (i<=c)
{
if (c%i==0)
break;
i++
}
if (i==c)
printf ("\nprime number in asscending order %d",c);
c++;
}
getch();
}
 
sir pwede gawing descending order display nito? salamat

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

void main()

{

int i,n,c=1,d=n,b=2;

clrscr();

printf ("Enter the limit\n\n"):
scanf ("%d",&n);
while (c<=n)
{
i=2;
while (i<=c)
{
if (c%i==0)
break;
i++
}
if (i==c)
printf ("\nprime number in asscending order %d",c);
c++;
}
getch();
}

pede po yan. kailangan mo po i-save yung result ng prime number (yung variable na c sa program mo, e.g. array_variable[index] = c) sa array, then gawa ka ng function/algorithm para sa sorting (maraming sample sa internet). since base sa limit ng user ang prime numbers mo, you have to use dynamic array para mag-o-auto expand yung array sa program mo, once na may new prime numbers.
 
pahelp naman po may mga files po ako sa isang folder.

For example po ito.


0S120008.DBF
0S120041.DBF
0S120349.DBF
0S120349_02151446129.DBF
0S120349_02151446301.DBF
00120008.DBF
00120041.DBF
00120349.DBF
00120349_02151446098.DBF
00120349_02151446270.DBF


gusto kong makuha po yung mga files po na ito


0S120008.DBF
0S120041.DBF
0S120349_02151446301.DBF
00120008.DBF
00120041.DBF
00120349.DBF
00120349_02151446270.DBF


eto po kasi yung pinaka latest. yung 0215 = date, 1446301 = 2 hours 45 min 30.1 sec

then marerename sya as 0S120349.DBF.

Pahelp naman po. vb codes po sana.

Thanks po mga idol. Sana may makatulong. It will be a big help for me.:pray::pray::pray:
 

Attachments

  • sample.PNG
    sample.PNG
    18.8 KB · Views: 3
phelp po mga ka symb ... exam kasi namin ganto ang gagawin View attachment 203488 .. ek kso puro paginexecute na kahit 17 pabba ang result ng age puro failed kahit 18 pataas .. pahelp naman po anun bang mali sa mga code o kulang???:help::help::pray:
 

Attachments

  • xdf.png
    xdf.png
    154.1 KB · Views: 8
pa help po :help::help::pray:
what's the problem when i compile my project its successfully run but the color is just a line
circle(275,185,100);
setcolor(LIGHTMAGENTA);
sector(275,185,0,0,99,99);
even the code aim is to fill the circle. help please
im using dev-c++ 4.9.9.2
View attachment 203490
 

Attachments

  • kirbs.PNG
    kirbs.PNG
    5.7 KB · Views: 0
Hello po :)

Gusto ko lang po malaman sample code ng auto-generated na ID number sa isang VB10 project, gamit ko po Visual Studion 2010.

Sample:

Kunwari nag-add ng new student,
input ng name, age, section, tas save.

yung output po is mag-show yung auto-gen na id nung stud tas name, age, section.

Ex 1:
ID No.: 1
Name: Juan Dela Cruz
Age: 20
Section: B

Ex 2:
ID No.: 2
Name: Luz Vi Minda
Age: 22
Section: A

connected po dapat sya sa MySQL database.
 
Last edited:
Back
Top Bottom