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)

post your programming problems here....
tapos sample input and output...,,

i'll do my very best para po matulungan kayo

ang anyone who wants to help you're all welcome here...

welcome

:clap: :excited: :dance: :yipee: :beat:


Haluuu! Do u have any programming software that can be installed and be executed in mobile fones s60v5? i had one before f(x)2.0 but no longer applicable to s60v5, any idea to make it compatible to the said fone version? Thanks!
 
Sir:

Gud Am po! sir, taga sti-EDSA po nag aral noon 1993 graduate po ako ng 2 yrs course noon 1995, sir, tanung ko lang kung po kayo software ng COBOL AS400, CLIFFER for DBASEIV (yun magiging execution) eh NA ONDOY po ako kaya mga disk ko at mga gamit tinangay ng ondoy baka meron po kayu ng software eh kailangan pag-aralin ule kc gagawan ko s tita ng program about SSS pensioner baka kaya mo email mo s aking [email protected] para sa pamilya ko eh isang ako panganay sa 10 magkakpatid sana po help naman po kasi mag uumpisa palang ako....tnx i hope u kind consideration sana mabigyan po kayo ng blessing ni lord please help!
 
Sana po! matulungan ninyo po ako, SSS PENSIONER kahit ano program basta email mo sa akin eto lng talaga natutunan ko as programming s sti kaso wala experience kundi basic lng.... Sana matulunga po ako para s pamilya ko at anak ko.....tnx and god bless
 
a. Create a class named Exponent. Its main() method accepts an integer value from a user at the keyboard, and in turn passes the value to a method that squares the number (multiplies it by itself) and to a method that cubes the number (multiplies it by itself twice). The main() method displays the results. Create the two methods that respectively square and cube an integer that is passed to them, returning the calculated value. Save the application as Exponent.java.

b. Modify the Exponent program so that the cubing method calls the square method, then multiplies that result by the numbers to calculate the cubed value that it returns. Save the application as Exponent2.java.

sir eto po, JAVA po xa.. alam ko po gawin ung a, Ung B nlng po sana itatanong ko sainyo sir naguguluhan po ko e.. Ty
 
a. Create a class named Exponent. Its main() method accepts an integer value from a user at the keyboard, and in turn passes the value to a method that squares the number (multiplies it by itself) and to a method that cubes the number (multiplies it by itself twice). The main() method displays the results. Create the two methods that respectively square and cube an integer that is passed to them, returning the calculated value. Save the application as Exponent.java.

b. Modify the Exponent program so that the cubing method calls the square method, then multiplies that result by the numbers to calculate the cubed value that it returns. Save the application as Exponent2.java.

sir eto po, JAVA po xa.. alam ko po gawin ung a, Ung B nlng po sana itatanong ko sainyo sir naguguluhan po ko e.. Ty

Ganito yung pagkakaintindi ko.

Di ba yung sa problem A gagawa ka ng dalawang method na independent sa isa't-isa para kunin yung mga sagot.

Yung sa problem B, tatawagin mo yung square method sa loob ng cubing method para makuha mo yung square ng input tapos i-mumultiply mo yung sagot sa tinawag mong square method sa input ng user.

Parang ganito.

Code:
public int cubingMethod(int input){
    int answer;
    answer = input * squareMethod();
    return answer;
}

Ganyan yung pagkakaintindi ko. Pakitama na lang kung mali. hehe

BTW, mag-aaral pa lang kami ng java next sem at excited na ako kaya nagseself study na ako ngayon. :lol:
 
mga boss ,pwede po pahingi ng DbForge SQL COmplete full version..pls...kailan ko po tlaga 2...:pray::pray:
 
Ganito yung pagkakaintindi ko.

Di ba yung sa problem A gagawa ka ng dalawang method na independent sa isa't-isa para kunin yung mga sagot.

Yung sa problem B, tatawagin mo yung square method sa loob ng cubing method para makuha mo yung square ng input tapos i-mumultiply mo yung sagot sa tinawag mong square method sa input ng user.

Parang ganito.

Code:
public int cubingMethod(int input){
    int answer;
    answer = input * squareMethod();
    return answer;
}

Ganyan yung pagkakaintindi ko. Pakitama na lang kung mali. hehe

BTW, mag-aaral pa lang kami ng java next sem at excited na ako kaya nagseself study na ako ngayon. :lol:



dko magets papi.. haha eto kasi ung sa a ko..

import java.util.*;

public class Exponent {
public static void main(String[] args) {
Scanner a = new Scanner(System.in);
System.out.println("Enter num: ");
int b = a.nextInt();

int c = sha(b);
int e = mai(b);
System.out.println("squared: "+c);
System.out.println("cube: "+e);

}

public static int sha(int b){
int c = b*b;

return (c);

}

public static int mai(int b){
int e = b*b*b;

return (e);

}
}
 
dko magets papi.. haha eto kasi ung sa a ko..

import java.util.*;

public class Exponent {
public static void main(String[] args) {
Scanner a = new Scanner(System.in);
System.out.println("Enter num: ");
int b = a.nextInt();

int c = sha(b);
int e = mai(b);
System.out.println("squared: "+c);
System.out.println("cube: "+e);

}

public static int sha(int b){
int c = b*b;

return (c);

}

public static int mai(int b){
int e = b*b*b;

return (e);

}
}

Di ba yung problem B kailangan kunin yung cube.

Eh di ba sa pagkuha ng cube ganito: number * number * number.

Eh yung sa sha method mo na kumukuha ng square nagawa na yung number * number.

So kailangan mo na lang imultiply yung input ng user sa nakuhang sagot doon sa sha para makuha yung cube.

Ganito:
Code:
    public static int mai(int b){
        int e = b * sha(b); //since nakuha na yung square dahil sa sha(b), isang beses na lang imumultiply.
        
        return (e);
    
    }
:dance:
 
Last edited:
TS alam nio po b kung pano gumawa ng online file storage? ano po kaya mga softwares n required? Thank's in advance TS..:praise:
 
hi, gusto ko sana matuto ng java programming. san po ako mag start? wala po akong background sa programming.
 
Hello po! Mga sir hnd po ako marunong mag programming or kht na ano, kaya patulong po. Sana po pwd kayo makagawa ng wallhack s PointBlank ph. Indemand po kasi yan, dami po naghahanap ng wallhack s PointBlank ph. Sana matulungan nyo po ako :) plsss Thanks po :clap:
 
Java Assignment :Inheritance
1. Create a class named ORDER that performs order processing of a single item. The class has five fields: customer name, customer number, quantity ordered, unit price and total price. Include set and get methods for each field except the total price field. The set methods prompt the user for values for each field. This class also needs a method to compute the total price (quantity times price) and a method to display the field values. Create a subclass named SHIPPEDORDER that overrides computePrice() by adding a shipping and handling charge of Php 200.00 Write an application named USEORDER that instantiates an object of each of these classes. Prompt the user for data for the Order object and display the results; then prompt the user for data for the object ShippedOrder object and display the results. Save the files as ORDER.java, SHIPPEDORDER.java and USEORDER.java

dko makuha ung concept ng program.. pero alam kong icode.. ung hanggang sa parent class.. dko gets pano mag work ung subclass... patulong..
 
Java Assignment :Inheritance
1. Create a class named ORDER that performs order processing of a single item. The class has five fields: customer name, customer number, quantity ordered, unit price and total price. Include set and get methods for each field except the total price field. The set methods prompt the user for values for each field. This class also needs a method to compute the total price (quantity times price) and a method to display the field values. Create a subclass named SHIPPEDORDER that overrides computePrice() by adding a shipping and handling charge of Php 200.00 Write an application named USEORDER that instantiates an object of each of these classes. Prompt the user for data for the Order object and display the results; then prompt the user for data for the object ShippedOrder object and display the results. Save the files as ORDER.java, SHIPPEDORDER.java and USEORDER.java

dko makuha ung concept ng program.. pero alam kong icode.. ung hanggang sa parent class.. dko gets pano mag work ung subclass... patulong..


Yung sa ORDER.java na class mo may method na computePrice() tapos sa SHIPPEDORDER gagawa ka rin ng computePrice() na method at mag-aadd ka lang ng P200.00 sa total price. Kailangan mong i-extend yung ORDER sa SHIPORDER na class. Kung hindi ka marunong (pero I presume na alam mo na yan dahil pinag-aaralan nyo na siguro) eto tutorial o kaya i-google mo na lang.
http://www.tutorialspoint.com/java/java_overriding.htm

Yung sa USERORDER hindi ako masyadong sure sa term na 'instantiates' at tinatamad akong mag-google pero sa pagkakaintindi ko eh para siyang menu at gagawa ka ng object nung dalawang class para magamit mo.
ex: ORDER order = new ORDER();

Iyan lang kaya kong maitulong kasi busy ako. Hindi na rin ako mag-sspoonfeed kasi assignment mo yan.
 
Last edited:
hi, gusto ko sana matuto ng java programming. san po ako mag start? wala po akong background sa programming.

Basa ka lang ng libro pa tungkol sa Java at wag kalimutan e practice ang bawat matutunan. If you don't have a book yet. You can try the book on my signature.
 
sir sana buhay pa tong thread na to this coming semester :D im a second year student bs computer science this would be of great help pwede po ba magask ng favor? san po ba makakakita ng complete list ng mga tags na ginagamit sa programming in c, c++, and java? salamat po :D
 
Back
Top Bottom