#09| Assignment 1 Solution | Core Java For Beginners

Veröffentlicht am: 07 Juni 2021
auf dem Kanal: Coding for Beginners by Newton School
397
7

------------------------------------------------------------------------------------------------------------------------
Hey guys, In this video, I have explained the Assignment 1 problem by doing entire hands-on coding.
Come in the comment section in case of any query.
-----------------------CODE SNIPPET FOR ASSIGNMENT 1-----------------------------------------------------
import java.util.Scanner;
public class Main{
public static void main(String [] args){
System.out.println("Enter Student's name: ");
Scanner sc = new Scanner(System.in);
String str = sc.nextLine();
System.out.println("Hellooo plz enter " + str +" Marks in following 5 subjects");
System.out.println("Intrduction to C programming");
float a = sc.nextFloat();
System.out.println("DBMS");
float b = sc.nextFloat();
System.out.println("Data structures");
float c = sc.nextFloat();
System.out.println("Algorithms");
float d = sc.nextFloat();
System.out.println("Graphics");
float e = sc.nextFloat();
float total = (a+b+c+d+e);
float percentage = (total/500)*100;
float sgpa = percentage/10;
System.out.println("The Percentage and SGPA of " + str + " are " + percentage +" and " + sgpa+ " respectively.\n");

}
}



-------------------------------------------------------------------------------------------------------------------------------------------


Newton school is an online Edtech company providing the highest-rated FULL STACK DEVELOPMENT PROGRAM for professionals, graduates, and women.

NEWTON SCHOOL is your gateway to a high-paying tech career in 6 months with Zero fees till placement, transforming you into a rockstar full-stack developer earning 5-40 Lakh per annum salary. Newton School’s students are already working in more than 150+ top companies of India including Zomato, Unacademy, Deloitte, Nutanix, etc.

To watch more videos on programming, Data Structures, Android Development, Data Science, C++, Java, React, subscribe to our channel.

Do visit Newton school Launchpad through: https://www.newtonschool.co/launchpad

Subscribe | Like | Comment

To know more about us and our courses, please visit: https://www.newtonschool.co/

Follow us on
Facebook:   / newtonschool.co  
Instagram:   / newtonschoolofficial  
Linkedin:   / mycompany  


Auf dieser Seite können Sie das Online-Video #09| Assignment 1 Solution | Core Java For Beginners mit der Dauer stunde minuten sekunde in guter Qualität ansehen, das der Benutzer Coding for Beginners by Newton School 07 Juni 2021 hochgeladen hat, den Link mit Freunden und Bekannten teilen, dieses Video wurde auf Youtube bereits 397 Mal angesehen und es wurde von 7 den Zuschauern gefallen. Viel Spaß beim Betrachtenden Zuschauern gefallen!