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)

nasan yung para sa silver and gold?

e2 po pala....
gold-5
silver-10
no color-20

:yipee::yipee:

kayo nyo p e2 gawin ngayon...,, e2 nlng po kc tlga ung ndi q nttpos..gumagawa po aq ngaun ng flowchart ng mga ntpos q na...w8 q po ngayon ung code...salamat!!
 
di ako nagbibigay ng complete code. post mo dito yung naumpisahan mo na. sorry, mejo limot ko na kasi c++
 
hello nid ko lng po..
A salesman is paid a commission on the following basis


Sale Value--------------------------Commission
up to $100------------------------------zero

over $100 to $1000-------------------2%

over $1000------------------------------3%

Enter the sale value and print out the commission value (use a maximum entry value of $32000)


tsaka po ito guys thanks talaga.
Enter your height in feet and inches and convert to metres, given 1 inch equals 0.0254 metres. Print out your height in metres.

tnx po sa mkakahelp #include <stdio.h> at #include <conio.h> lng po gamit nmin sa skul..
 
Last edited:
so ibig sabihin..

if sale value >= 1000
commission = 3% of sale value

else if sale value is >= 100
commission = 2% of sale value

else
commission = 0
 
e2 po pala....
gold-5
silver-10
no color-20

:yipee::yipee:

kayo nyo p e2 gawin ngayon...,, e2 nlng po kc tlga ung ndi q nttpos..gumagawa po aq ngaun ng flowchart ng mga ntpos q na...w8 q po ngayon ung code...salamat!!

ayusin mo yung pag explain sa mga value ng colors. so pag yung number ends in 5, gold un? pag 10, silver and pag 20, no color? nag electronics din ako dati, parang di naman ganyan.
 
di ako nagbibigay ng complete code. post mo dito yung naumpisahan mo na. sorry, mejo limot ko na kasi c++

marami po kc un kasama n2...ndi q na sinama ung iba...e2 po ung naumpisahan kong code na pnpgawa q


#include <stdio.h>
#include <conio.h>
#include <math.h>
#include <stdlib.h>
#include <string.h>
#include <process.h>
#include <ctype.h>


#define p printf
#define s scanf

main()
{
char again='y';
while(again=='y'||again=='Y')
{
int v, tolerance, first;


clrscr();
p("\n\n\t\t\t\tVALUE TO COLOR");
p("\n\n\n\t\tEnter a Value of Resistor: ");
s("\n%i", &v);
p("\t\tEnter a Valur for Tolerance of Resistor [5/10/20]: ");
s("\n%i", &tolerance);
first=v/1000;
if (first==0)
p("\n\t\t1st Color: ");
p("\n\t\t1st Color: ");
p("\n\t\t2nd Color: ");
p("\n\t\t3rd Color: ");
if (tolerance==5)
p("\n\t\t4th Color: Gold");
else if (tolerance==10)
p("\n\t\t4th Color: Silver");
else if (tolerance==20)
p("\n\t\t4th Color: No Color");
else
p("\n\t\t4th Color: Not Valid");
p("\n\n\n\t\t\tTry again:[Y/N]:");
s("\n%c",&again);
}
}
 
sandali ahh, mejo may mali ka ata. try ko muna gawin, tapos bigay ko sayo ung pseudocode.
 
Code:
if v >= 1000000000
4th color = "white"
v = v % 1000000000

if v >900
1st color = "white"
v=v%900

if v>90
2ndcolor = "white"

if v = 9
3rdcolor = "white"
if v = 8
3rdcolor = "gray"
if v = 7
3rdcolor = "violet"
if v = 6
3rdcolor = "blue"
if v = 5
3rdcolor = "green"
if v = 4
3rdcolor = "yellow"
if v = 3
3rdcolor = "orange"
if v = 2
3rdcolor = "red"
if v = 1
3rdcolor = "brown"       
if v = 0
3rdcolor = "black"

yan, sample pattern
 
pa help po sa java :weep::weep:
ito po ung problem. Declare am integer array with 10 slots.
Make a program that will ask the user to input an integer in every slot. use for loop in entering the numbers. :pray::pray: plsss
 
pa help po sa java :weep::weep:
ito po ung problem. Declare am integer array with 10 slots.
Make a program that will ask the user to input an integer in every slot. use for loop in entering the numbers. :pray::pray: plsss

Code:
import java.util.* ;

public class kawbahala {

public static void main ( String [ ] args ) {

 Scanner input = new Scanner ( System.in ) ;

int num = 0 ;

int numArray [ ] = new int [ 9 ] ; // 0 1 2 3 4 5 6 7 8 9

System.out.println ( "Input 10 Integer" ) ;

for ( int i = 0 ; i < numArray.length ; i ++ ) {

num = input.nextInt ( ) ;

numArray [ i ] = num ;

}

for ( int i = 0 ; i < numArray.length ; i ++ ) {

System.out.print ( numArray [ i ] + " " ) ;

}

}

}
 
Last edited:
Code:
import java.util.* ;

public class kawbahala {

public static void main ( String [ ] args ) {

 Scanner input = new Scanner ( System.in ) ;

int num = 0 ;

int numArray [ ] = new int [ 9 ] ; // 0 1 2 3 4 5 6 7 8 9

System.out.println ( "Input 10 Integer" ) ;

for ( int i = 0 ; i < numArray.length ; i ++ ) {

num = input.nextInt ( ) ;

numArray [ i ] = num ;

}

for ( int i = 0 ; i < numArray.length ; i ++ ) {

System.out.print ( numArray [ i ] + " " ) ;

}

}

}


:thumbsup::thumbsup: super thanks po dito :salute:
 
Hi guys,

Help naman gustong gusto ko matuto at magustohan ang programming world, actually nag aral na nga ako ng programming in c++ sa MFI... kaso parang c++ ang may ayaw sakin... Anu bang kailangan kong gawin para magustohan ng isip ko ang programming world....

Hope you can help me with my major major problem...

Thanks,
Zimonzayz
 
try mo gumawa ng sa tingin mo imposible magawa ng ibang programers. ibigay mo lahat ng nalalaman mo... go beyond your limitations.
 
Hi guys,

Help naman gustong gusto ko matuto at magustohan ang programming world, actually nag aral na nga ako ng programming in c++ sa MFI... kaso parang c++ ang may ayaw sakin... Anu bang kailangan kong gawin para magustohan ng isip ko ang programming world....

Hope you can help me with my major major problem...

Thanks,
Zimonzayz

pag aralan mo muna ang foundation ng Programming ang "C"
Turbo C,Pascal,Assembly...yan muna ang pag aralan mo..then kapag
alam mo na at sure kana na may knowledge kana..pumunta kana sa C++,
C#,Java,VB6 etcc.hehehe
 
Code:
if v >= 1000000000
4th color = "white"
v = v % 1000000000

if v >900
1st color = "white"
v=v%900

if v>90
2ndcolor = "white"

if v = 9
3rdcolor = "white"
if v = 8
3rdcolor = "gray"
if v = 7
3rdcolor = "violet"
if v = 6
3rdcolor = "blue"
if v = 5
3rdcolor = "green"
if v = 4
3rdcolor = "yellow"
if v = 3
3rdcolor = "orange"
if v = 2
3rdcolor = "red"
if v = 1
3rdcolor = "brown"       
if v = 0
3rdcolor = "black"

yan, sample pattern

mga sir!!!,,,salamat din dito......salamat po..okey na po...nagawa q rin lhat..
 
kuya, pwede mo ko tuLungan sa program na to, C po language,

ung numbers to words..,
for example, you input = "1", output = "one"
please??

actually me na search ako na code dito sa problem na ito,
pero up to 3000 Lng, pwd mo ba akong ma2Lungan hangang 999,999?

ito ung Link nung dating post oh, pra d ka masyado mahirapan..
http://96.30.1.224/showthread.php?t=138962
 
Back
Top Bottom