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!
sir patulong po sa codes ayaw mo kasi mg loop tama po ba yun syntax ko mag iinput ako ng 2 numbers then iloop nya patulong po thanks
eto po yun codes
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
int num,i;
try{
System.out.println("Enter num");
num=Integer.parseInt(br.readLine());
System.out.println("Enter i");
i=Integer.parseInt(br.readLine());
for(num = i; i<num;num++){
System.out.println(num);
}
}
catch(IOException e){
System.out.println("e");
}
}
}
int main ()
{
int PreMid, MidTerm, PreFinal, Final, Sum, Average;
cout<<"\nEnter Four Terms Grades: \n";
cin>>PreMid>>MidTerm>>PreFinal>>Final;
Sum = PreMid + MidTerm + PreFinal + Final;
Average = Sum / 4;
cout<<"The Average is: "<<Average;
cout << "\n";
if (Average > 74)
cout<<"\nRemarks: "<<"Passed\n";
else if (Average < 75)
cout<<"\nRemarks: "<<"Failed\n";
else if (Average = 50)
cout<<"\nRemarks: "<<"Dropped\n";
return 0;
}
need mga ka symbianize. exercise namin eto sa visual c++, pero may problema, kasi pag 50 ang average lumalabas ang failed not yung dropped. may kulang pa ba ito? at paano gawin term grades dapat makainput lang ng 50-100
eto un code ko.
Code:int main () { int PreMid, MidTerm, PreFinal, Final, Sum, Average; cout<<"\nEnter Four Terms Grades: \n"; cin>>PreMid>>MidTerm>>PreFinal>>Final; Sum = PreMid + MidTerm + PreFinal + Final; Average = Sum / 4; cout<<"The Average is: "<<Average; cout << "\n"; if (Average > 74) cout<<"\nRemarks: "<<"Passed\n"; else if (Average < 75) cout<<"\nRemarks: "<<"Failed\n"; else if (Average = 50) cout<<"\nRemarks: "<<"Dropped\n"; return 0; }
sir pwede ba sumali?first post ko ln to, sa wakas nakakita din ako ng thread na talagang makakatulong sakin. need ko gumawa ng java program. kahit turbo c pwede na. eto ung input .......... year of birth then lalabas ung chinese zodiac. for example:
Enter year of birth===>1990
your chinese zodiac is===> horse
yan po.. slamat!!!
//krizero... symbianize.com
import java.util.*;
public class ZodiacSign {
public static void main(String[] args) {
String chineseSign="";
int year;
Scanner c = new Scanner (System.in);
System.out.println("Enter year: ");
year = c.nextInt();
int x = (1997 - year) % 12;
if ((x == 1) || (x == -11)){
chineseSign="Rat";
}
else{
if (x == 0){
chineseSign="Ox";
}
else{
if ((x == 11) || (x == -1)){
chineseSign="Tiger";
}
else{
if ((x == 10) || (x == -2)){
chineseSign="Rabbit";
}
else{
if ((x == 9) || (x == -3)){
chineseSign="Dragon";
}
else{
if ((x == 8) || (x == -4)){
chineseSign="Snake";
}
else{
if ((x == 7) || (x == -5)){
chineseSign="Horse";
}
else{
if ((x == 6) || (x == -6)){
chineseSign="Sheep";
}
else{
if ((x == 5) || (x == -7)){
chineseSign="Monkey";
}
else{
if ((x == 4) || (x == -8)){
chineseSign="Chicken";
}
else{
if ((x == 3) || (x == -9)){
chineseSign="Dog";
}
else{
if ((x == 2) || (x == -10)){
chineseSign="Pig";
}
}
}
}
}
}
}
}
}
}
}
}
System.out.println("Chinese Zodiac is: "+chineseSign+".");
}
}
Kuya Salamat..