Комментарии:
Hey buddy!! These are the Assignments answers, Tell me in case of wrong.
1) Verify any given number is Even or Odd.
public Static void main(String[] args) {
Scanner sc = new Scanner(System.in);
System.out.println("Enter n value");
int n = sc.nextInt();
if(n%3==0)
System.out.println("Given number is Odd");
else
System.out.println("Given number is Even");
}
2) Print the Student results based on the grading system.
public static void main(String[] args) {
Scanner scanner= new Scanner(System.in);
System.out.println("Enter n value :");
int n = scanner.nextInt();
if (n<35)
System.out.println("Student is Failed");
else if (n==35)
System.out.println("Student is Passed");
else if (n>35 && n<70)
System.out.println("Student secured third class");
else if (n>70 && n<85)
System.out.println("Student secured Second class");
else
System.out.println("Student doesn't scored anything");
}
3) Print the statements based on day name.
public static void main(String[] args) {
Scanner scanner= new Scanner(System.in);
System.out.println("Enter Week_Name :");
String Week_Name = scanner.nextLine();
if(Week_Name.equals(Week_Name))
System.out.println("Uff,it's a weekday");
else
System.out.println("Yayy,it's a weekend");
Bro. Tq tq so much 10 videos chusa 15 years exp valu chepina naku adremkaledu mi video tho 10 mins lo adremindi super super
ОтветитьHi sir, Superb explanation👏. I have one query in my Code and want to reach out to you through mail. Can you please share your mail id sir. Please.
ОтветитьThank you so much sir ❤
Ответить👍♥️
ОтветитьHi Bro ,Braces lekunda kooda IF STATEMENT execute avthundhi ,what do you say about this :
int i = 20 ;
if(i<22)
sysout(i);
RESULT : 20
any explaination about this !!????
Ekkada rendu else statements mandatory haa
Ответитьevery class is a masterpiece
Ответитьso very great content and it is very clear .....................................................😍😍😍
ОтветитьHello HYR , Your teaching skills are exceptional, and attention to detail. Really appreciate all your efforts and support. Thank you and Remain Blessed.
Ответитьthank you sir
ОтветитьExcellent teaching 👌👌👌👌👌👌👌👌👌👌👌👌
ОтветитьBro meeru mail id send chaishara plz
ОтветитьExcellent sir....
ОтветитьI have done my assignment and I got the results perfectly Good Explanation Sir👏👏
Ответить😇😇😇😇 pls continue bro....
Ответитьhi bro
thankyou so much for giving your time
and could you please explain or write a program asmt-3
asmt-1
import java.util.Scanner;
public class evenOdd {
public static void main(String[] args) {
Scanner key = new Scanner(System.in);
System.out.println("given number bellow");
int num = key.nextInt();
if ( num%2 == 0 ) {
System.out.println("this is the even Number");
}
else {
System.out.println("this is odd Number");
}
}
}
asmt-2
import java.util.Scanner;
public class StudentResult {
public static void main(String[] args) {
Scanner key = new Scanner(System.in);
System.out.println("enter your Percentage");
int marks = key.nextInt();
System.out.print("Result : ");
if (marks >= 80 && marks <=100) {
System.out.println("First class");
}
else if (marks < 80 && marks >=60) {
System.out.println("Second class");
}
else if (marks < 60 && marks >35) {
System.out.println("Thired class");
}
else if (marks == 35) {
System.out.println("Pass");
}
else if (marks < 35 && marks >= 0) {
System.out.println("Fail");
}
else {
System.out.println("Enter currect Percentage ");
}
}
}
import java.util.Scanner;
public class rmsiQualification {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
System.out.println("Hello Welcom, whats your name");
String name=scanner.nextLine();
System.out.printf("hey %s did you attend the exam?\n",name);
String examAttend=scanner.nextLine();
if(examAttend == "yes") {
System.out.println("wait for next process");
}
else {
System.out.println("you go to home");
}
}
}
e code run chesthunte if condition run avvakunda direct else condition print avthundho bro yes ani esthe if condition run avvadam ledhu
Excellent teaching sir,iam big fan of the way you teach sir,Thankyou very much for your java course vedios sir, it is very useful to us sir
ОтветитьNice
Ответить