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)

ask lang po ako bale gawa po ako para mag printa para sa cheke ang input lang is date,name, amount, amount in words tpos authorized signature. hndi kasi ako kabisado paano magprint ang laman ng textbox. salamat po
 
please help me. I want to create a c program that will search a word on a text file. The words that it will search are words after a specific word.
for example.
textfile contains:
edit apple.
edit orange.
edit google.
edit symbianize.

find and store on a variable the words after the word edit.
thanks in advance.
 
Boss gusto ko po sana matuto...
kaso di ko alam kung saan ako magsisimula... :weep:
 
system thesis!!!

IdoL, p2long nmn s button codes ng system ko,, tnx... vb.net 2008 gamit ko dyan!!
 

Attachments

  • my system.jpg
    my system.jpg
    170.4 KB · Views: 7
Last edited:
mayron ka po bang dev c++..pingi ng link salamt with crack/keygen po sana

2nd year comp. engineering kc ako tska nagbabasic na kmi
 
pa help naman po :(

Write a function oriented program that calculates the power value of the input base number & exponent number. Then display the power value.

Sample input/output dialogue :

Enter base number : 5 (input data)
Enter exponent number : 3 (second input data)
Power value : 125 (Output)

(The computation is 5^3=5*5*5=125)

thanks in advance
 
pa help naman po :(

Write a function oriented program that calculates the power value of the input base number & exponent number. Then display the power value.

Sample input/output dialogue :

Enter base number : 5 (input data)
Enter exponent number : 3 (second input data)
Power value : 125 (Output)

(The computation is 5^3=5*5*5=125)

thanks in advance

Ayan oh? yong algo is already in there?

In c use the ^ operator,

result = base ^ exponent;

In c++ use pow(),

result = pow(base, exponent);

Using loop,

result = base;

for (i = 1; i < exponent; i++)
{
result = result * base;​
}
 
Write a program using String that accepts a coded value of an item & display its equivalent tag price.

0 1 2 3 4 5 6 7 8 9
U S T - Z W K A H ?

Input: -WZ.UA
Output: 354.07

I have come up with this but it only output 1 letter..

Code:
import java.util.*;

class cv
{
public static void main(String[] args)
{
Scanner p = new Scanner(System.in);
System.out.println("0 1 2 3 4 5 6 7 8 9");
System.out.println("U S T - Z W K A H ? ");
System.out.println("Enter Coded Value: ");

String letter = p.next();

if(letter.equals("U"))
System.out.print("0");

if(letter.equals("S"))
System.out.print("1");

if(letter.equals("T"))
System.out.print("2");

if(letter.equals("-"))
System.out.print("3");

if(letter.equals("Z"))
System.out.print("4");

else if(letter.equals("W"))
System.out.print("5");

else if(letter.equals("K"))
System.out.print("6");

else if(letter.equals("A"))
System.out.print("7");

else if(letter.equals("H"))
System.out.print("8");

else if(letter.equals("?"))
System.out.print("9");

else
System.out.println("Wrong Value");

}
}
}

I know there's missing, i dont know how to do this further.. can anyone help me?
 
need help po!

kaylangan q pong gumawa ng Program na humihingi ng number input sa user range from 1- 100

at
tinutukoy kung anu ang mga PRIME NUMBERS sa inimput nyang number....

eto po ang sample ng program q...

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

void main (){
clrscr();
getch();


int n=100,i=1,j,c;
char answer;

clrscr();

printf ("Enter number of terms ranging form 1 - 100 : ");
scanf ("%d",&n);
if (n<1 || n>100)
printf ("You enter a wrong number!");

else
while(i<=n)
{
c=0;
for(j=1;j<=1;j++)
{
if(i%j==0)
c++;
}
if(c==2)
printf("%d /n",i);
i++;
}
getch();
}


dapat po ma print lahat ng PRIME NUMBERS within the input number by the user...

please,,.. need q po tlga,..

kung ok lang po sa inyo, paki send nalang po via MESSAGE ang reply nyo... :)


TURBO C pala ang gamit ko....

Thanks in advance..
 
Last edited:
:help: sa c++ enumerated data type... months... pag nag input ka ng january 10, 2011,, ito po ang output.. 01-10-11... tpos pag nag input ka nman ng integer... like 01-10-11... january 10, 2011... :help: po plzzzzzz.. need ko lang tlaga... if sino may mga mabubuting loOb jan patulong nman... :help:
 
trizha11: Use index of arrays to make your code shorter and easier to maintain.

insidehands93: Try to read up on "seive of erathosthenes".
 
need help po!

kaylangan q pong gumawa ng Program na humihingi ng number input sa user range from 1- 100

at
tinutukoy kung anu ang mga PRIME NUMBERS sa inimput nyang number....

eto po ang sample ng program q...




dapat po ma print lahat ng PRIME NUMBERS within the input number by the user...

please,,.. need q po tlga,..

kung ok lang po sa inyo, paki send nalang po via MESSAGE ang reply nyo... :)


TURBO C pala ang gamit ko....

Thanks in advance..

Here's the algo... malapit na tong solution mo

Code:
//You can do also while in this... I used for para madali.
for (i = 1; i <= number; i++)
{
	//Always reset count after a number...
	count = 0;
	
	//Dito palitan mo ng i ang 1...
	for (j = 1; j <= i; j++)
	{
		//Reverse mo yong i at j mo.
		if (j % i == 0)
		{
			count++;
		}
	}
	
	if (count == 2)
	{
		//display prime number.
	}
}
 
Pwede po papost ng simple java programs na gumagamit ng two dimensional arrays?
 
Write a program using String that accepts a coded value of an item & display its equivalent tag price.

0 1 2 3 4 5 6 7 8 9
U S T - Z W K A H ?

Input: -WZ.UA
Output: 354.07

I have come up with this but it only output 1 letter..

Code:
import java.util.*;

class cv
{
public static void main(String[] args)
{
Scanner p = new Scanner(System.in);
System.out.println("0 1 2 3 4 5 6 7 8 9");
System.out.println("U S T - Z W K A H ? ");
System.out.println("Enter Coded Value: ");

String letter = p.next();

if(letter.equals("U"))
System.out.print("0");

if(letter.equals("S"))
System.out.print("1");

if(letter.equals("T"))
System.out.print("2");

if(letter.equals("-"))
System.out.print("3");

if(letter.equals("Z"))
System.out.print("4");

else if(letter.equals("W"))
System.out.print("5");

else if(letter.equals("K"))
System.out.print("6");

else if(letter.equals("A"))
System.out.print("7");

else if(letter.equals("H"))
System.out.print("8");

else if(letter.equals("?"))
System.out.print("9");

else
System.out.println("Wrong Value");

}
}
}

I know there's missing, i dont know how to do this further.. can anyone help me?

TRY MO TO:D
import javax.swing.*;

public class TEST
{
public static void main(String argp[])
{
String input;

input=JOptionPane.showInputDialog("Input:");

input=input.replace('U','O');
input=input.replace('S','1');
input=input.replace('T','2');
input=input.replace('-','3');
input=input.replace('Z','4');
input=input.replace('W','5');
input=input.replace('K','6');
input=input.replace('A','7');
input=input.replace('H','8');
input=input.replace('?','9');

JOptionPane.showMessageDialog(null, "" +input);

}
}:thumbsup::thumbsup::thumbsup:
 
try mo din to..


import java.io.*;

public class ConvertionPrice {

public static void main(String[] args) throws IOException{
BufferedReader in = new BufferedReader(new InputStreamReader(System.in));

System.out.print("Input: ");
String input = in.readLine();

input=input.replace('U','O');
input=input.replace('S','1');
input=input.replace('T','2');
input=input.replace('-','3');
input=input.replace('Z','4');
input=input.replace('W','5');
input=input.replace('K','6');
input=input.replace('A','7');
input=input.replace('H','8');
input=input.replace('?','9');

System.out.println(input);
}

}
 
Write a program using String that accepts a coded value of an item & display its equivalent tag price.

0 1 2 3 4 5 6 7 8 9
U S T - Z W K A H ?

Input: -WZ.UA
Output: 354.07

I have come up with this but it only output 1 letter..

Code:
import java.util.*;

class cv
{
public static void main(String[] args)
{
Scanner p = new Scanner(System.in);
System.out.println("0 1 2 3 4 5 6 7 8 9");
System.out.println("U S T - Z W K A H ? ");
System.out.println("Enter Coded Value: ");

String letter = p.next();

if(letter.equals("U"))
System.out.print("0");

if(letter.equals("S"))
System.out.print("1");

if(letter.equals("T"))
System.out.print("2");

if(letter.equals("-"))
System.out.print("3");

if(letter.equals("Z"))
System.out.print("4");

else if(letter.equals("W"))
System.out.print("5");

else if(letter.equals("K"))
System.out.print("6");

else if(letter.equals("A"))
System.out.print("7");

else if(letter.equals("H"))
System.out.print("8");

else if(letter.equals("?"))
System.out.print("9");

else
System.out.println("Wrong Value");

}
}
}

I know there's missing, i dont know how to do this further.. can anyone help me?


you need to loop your if conditions depending on the length of string..

small sample...

while (p.next() = true) //not sure about the condition
{
// your if conditions

}
 
Back
Top Bottom