Something went wrong. Try again.
Codelabs for major subjects in the BSIT course at STI College Meycauayan. gitlab.com/andreijiroh-dev/labs/studentops-codelab
codelabs labs
Something went wrong. Try again.
1.4 kB · 35 lines
Java
at commit 26c91cc6
1234567891011121314151617181920212223242526272829303132333435package dev.andreijiroh.studentops.projects;
/** * Computer Programming 1 - 04 Performance Task * @author Andrei Jiroh Eugenio Halili (STI College Meycauayan) <halili.459491@meycauayan.sti.edu.ph> */public class variableNamingConventions { public static void main(String[] args) { // Set A int age = 24; // age double height = 1.75; // in meters String legalName = "Juan Luna IV"; // full name char gender = 'M'; // gender boolean isStudent = true; // confirming if the person is a student
// Set B but fixed int subjects = 6; // number of subjects double weight = 70.5; // weight in kg String birth_place = "Ilocos Norte"; // birthplace char blood_type = 'O'; // blood type boolean has_pets = true; // confirming if the person has pets
// Set C System.out.println("Name: "+legalName); System.out.println("Age: "+age); System.out.println("Height: "+height+" meters"); System.out.println("Gender: "+gender); System.out.println("Is Student: "+isStudent); System.out.println("Number of Subjects: "+subjects); System.out.println("Weight: "+weight+" kg"); System.out.println("City: "+birth_place); System.out.println("Blood type: "+blood_type); System.out.println("Has pets?: "+has_pets); }}