#09| Assignment 1 Solution | Core Java For Beginners

Pubblicato il: 07 giugno 2021
sul canale di: 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  


In questa pagina del sito puoi guardare il video online #09| Assignment 1 Solution | Core Java For Beginners della durata di ore minuti seconda in buona qualità , che l'utente ha caricato Coding for Beginners by Newton School 07 giugno 2021, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 397 volte e gli è piaciuto 7 spettatori. Buona visione!