Posts

IPAM GRADING SYSTEM (QUESTION 3)

                       INSTITUTE OF PUBLIC ADMINSTATION AND MANAGEMENT(IPAM) MODULE: COMPUTER  PROGRAMMING COURSE:BSC IN INFOMATION TECHNOLOGY YEAR 1 BY: NAOMI BALAMA MOORE   import java.util.Scanner; public class Ipam { public static void main (String[]args){ Scanner grade = new Scanner(System. in ); System. out .println( "enter your grade" ); int input = grade.nextInt(); if (input>= 0 && input<= 20 ){ System. out .println( "f" ); } else if (input>= 21 && input<= 39 ){ System. out .println( "d" ); } else if (input>= 40 && input<= 59 ){ System. out .println( "c" ); } else if (input>= 60 && input<= 79 ){ System. out .println( "b" ); } else if (input>= 80 && input<= 100 ){ System. out .println( "a" ); } else { System. out .println( "invalid grade" ); } } }

THREE CORE SUBJECT ( QUESTION 2)

                 INSTITUTE OF PUBLIC ADMINSTATION AND MANAGEMENT(IPAM) MODULE: COMPUTER  PROGRAMMING COURSE:BSC IN INFOMATION TECHNOLOGY YEAR 1 BY: NAOMI BALAMA MOORE import java.util.Scanner; public class Grade { public static void main (String[] args) { Scanner input = new Scanner(System. in ); int first_module; int second_module; int third_module; System. out .println( "welcome to your grade checker" ); System. out .println( "Enter the first grade module" ); while (!input.hasNextInt()) { System. out .println( "Enter a whole number(grade) for the first module" ); input.next(); } first_module = input.nextInt(); while (first_module< 0 || first_module> 100 ){ System. out .println( "the number is out of the grading range" ); while (!input.hasNextInt()){ System. out .println( "Enter a whol...

LEAPYEAR QUESTION 5

INSTITUTE OF PUBLIC ADMINSTATION AND MANAGEMENT(IPAM MODULE: COMPUTER  PROGRAMMING COURSE:BSC IN INFOMATION TECHNOLOGY YEAR 1 BY: NAOMI BALAMA MOORE   import java.util.Scanner; public class leapyear { public static void main (String[] args) { System. out .println( "Enter a number to determine if it is a leap year or not" ); Scanner input = new Scanner(System. in ); while (!input.hasNextInt()){ System. out .println( "Enter a whole number" ); input.next(); } int number; number = input.nextInt(); if (number % 400 == 0 ){ System. out .println(number + " " + "is a leap year" ); } else { System. out .println(number + " " + "is not a leap year" ); } } }

COMPUTER PROGRAMMING ASSIGNMENT

  INSTITUTE OF PUBLIC ADMINSTATION AND MANAGEMENT(IPAM MODULE: COMPUTER  PROGRAMMING COURSE:BSC IN INFOMATION TECHNOLOGY YEAR 1 BY: NAOMI BALAMA MOORE Assignment 1 1. Summary of Java’s History Java is a high-level, object-oriented programming language developed by James Gosling and his team at Sun Microsystems in 199 5 . Java was originally created for interactive television systems, but it became popular for internet applications because it allows programs to run on different computers without modification. This is possible because of the Java Virtual Machine (JVM) , which translates Java code into a form that any computer can run. The main goal of Java was to create a language that is simple, secure, portable, and reliable . Because of these features, Java became one of the most widely used programming languages for web applications, enterprise software, mobile apps, and large systems. In 2010 , Oracle Corporation acquired Sun Microsystems and became the company responsi...

COMPUTER PROGRAMMING ASSIGNMENT 1&2

 INSTITUTE OF PUBLIC ADMINSTATION AND MANAGEMENT(IPAM MODULE: COMPUTER  PROGRAMMING COURSE:BSC IN INFOMATION TECHNOLOGY YEAR 1 BY: NAOMI BALAMA MOORE A1) Your father is a civil engineer. Write a program that can assist your father to determine the quantity of tile needed for construction of any rectangular shape.  1, flowchart   2,pseudo code 3,code ANSWER 1) FLOWCHAT START    ↓ Input Length of area (L)    ↓ Input Width of area (W)    ↓ Input Length of one tile (TL)    ↓ Input Width of one tile (TW)    ↓ Calculate Area of surface = L × W    ↓ Calculate Area of one tile = TL × TW    ↓ Number of tiles = Surface Area ÷ Tile Area    ↓ Display Number of tiles    ↓ END 2)PSEUDO CODE BEGIN INPUT length_of_area INPUT width_of_area INPUT tile_length INPUT tile_width area_of_surface = length_of_area * width_of_area area_of_tile = tile_length * tile_width number_of_tiles = area_of_sur...

COMPUTER PROGRAMMIG ASSIGNMENT

  INSTITUTE OF PUBLIC ADMINISTRATION AND MAGAGEMENT (IPAM)   COURSE: BSC IN INFORMATION AND TECHNOLOGY MODULE: COMPUTER PROGRAMMING BY: Naomi Balama Moore Q1.  Milestone Of Computing And Programming Language Ans: Computing has transformed the world in ways unimaginable a few centuries ago. From simple mechanical calculators to powerful artificial intelligence systems, the evolution of computing has gone hand in hand with the development of programming languages. Each milestone represents a breakthrough that made computers faster, smaller, smarter, and more accessible. This blog explores the major milestones in computing and programming languages and how they shaped modern technology.  Major Milestones in Computing 1. Early Mechanical Computing (17th–19th Century) The journey of computing began with mechanical devices designed to perform basic calculations. In 1642 , Blaise Pascal invented the Pascaline , a mechanical calculator used for arithmetic operations. L...