NAME : FAVOUR ISATU YILLAH I.D: I-24-63541 DEPARTMENT: INFORMATION TECHONOLOGY (I.T) FACULTY: THE FACULTY OF INFORMATION SYSTEM TECHNOLOGY ASSIGNMENT: USING SCANNER TO SLOVE MATHEMATICAL PROBLEMS THAT RELATE TO SOME PLANE SHAPES. import java.util.InputMismatchException; import java.util.Scanner; public class Shapes { public static void main (String[] args) { Scanner fav = new Scanner(System. in ); while ( true ) { try { System. out .println( " \n Select a shape:" ); System. out .println( "1. Right Triangle" ); System. out .println( "2. Trapezoid" ); System. out .println( "3. Trapezium" ); System. out .println( "4. Rhombus" ); System. out .println( "5. Parallelogram" ); System. out .println( "6. Kite" ); System. out .println( "7. Exit" ); ...
Posts
- Get link
- X
- Other Apps
NAME : FAVOUR ISATU YILLAH I.D: I-24-63541 DEPARTMENT: INFORMATION TECHONOLOGY (I.T) FACULTY: THE FACULTY OF INFORMATION SYSTEM TECHNOLOGY PRACTICE PROGRAM LECTURE FIVE (5) CONTROL FLOW import java.util.Scanner; public class Assignment { public static void main (String[] args) { Scanner sc = new Scanner(System. in ); // Q1. To determine whether the number entered by a user is even or odd. System. out .print( "Enter a number: " ); int number =sc.nextInt(); if (number % 2 == 0 ) { System. out .println( "The number is even. " ); } else { System. out .println( "The number is odd. " ); } // Q2. Grade obtained in 3 core Subject. System. out .print( "Enter The Grade Of Subject One(1): " ); int subject_one = sc.nextInt(); System. out .print( "Enter The Grade Of Subject Two(2): " ); int subject_two = sc.nextInt(); System. out .p...
- Get link
- X
- Other Apps
NAME : FAVOUR ISATU YILLAH I.D: I-24-63541 DEPARTMENT: INFORMATION TECHONOLOGY (I.T) FACULTY: THE FACULTY OF INFORMATION SYSTEM TECHNOLOGY THE PRACTICE PROGRAM FOR LECTURE FIVE OF ONE (5.1). (ITERATIVE STATEMENT) Q1. import java.util.Scanner; public class Main { public static void main (String[] args) { Scanner fav = new Scanner(System. in ); /*Write a program that displays the multiplication table up to 12 iterations for any positive integer given by the user. For example, if the user inputs 6, your program should display the multiplication table for 6 for up to 12 iterations (i.e. 6*1 = 6, 6*2 =12, 6*3 = 18, ……… 6*12 = 72. */ System. out .print( "Enter a number from 1-12: " ); int number = profbock.nextInt(); for ( int a = 0 ; a <= 12 ; a++) { System. out .println(number + "x" + a + "=" +(number * a)); } } } Q2. import java.util.Scan...
- Get link
- X
- Other Apps
/*PSEUDOCODE Input floor length floor width tile length tile width Floor Area= floor length * floor width Tile Area = tile length * tile width Number of tiles required = ceil( Area of Floor / Area of Tile) */ /*FLOWCHART: input(floor length, floor width, tile length, tile width). Area of floor (floor length * floor width). Area of tile (tile length * tile width). Number of tiles required (ceil(Area_of_Floor / Area_of_Tile)) output of result (nuber of tiles) */ import java.util.Scanner; public class TileEstimator { public static void main (String [] args) { Scanner tiles = new Scanner(System. in ); //floor dimension System. out .print( "Enter the length of the floor (in meters): " ); double floorLength = tiles.nextDouble(); System. out .print( "Enter the Width of the floor (in meters): " ); double floorWidth = tiles.nextDouble(); //tile dimension System. out .print( "Enter the length of the tile (in meters): ...
- Get link
- X
- Other Apps
NAME: FAVOUR ISATU YILLAH THE MILESTONE OF COMPUTING AND PROGRAMMING. The field of computer science has evolved significantly since its inception, marked by numerous breakthroughs and innovations. Here’s a timeline of key milestones that have shaped the development of computer science: 1. The Early Theoretical Foundations Charles Babbage’s Analytical Engine (1830s) Charles Babbage conceptualized the Analytical Engine, considered the first mechanical computer. Although it was never completed, its design included many features of modern computers, such as a programmable mechanism. Ada Lovelace’s Algorithm (1843) Ada Lovelace wrote the first algorithm intended for a machine, the Analytical Engine, making her the world’s first computer programmer. Her work demonstrated the potential of machines to perform complex calculations. 2. The Development of Early Computers Alan Turing’s Turing Machine (1936) Alan Turing developed the concept of the Turing Machine, ...