Posts

Assignment

 import java.util.Scanner; public class Kelculator {            // Method to calculate area of a circle     public static void calculateCircleArea(double radius) {         double area = Math.PI * radius * radius;         System.out.println("The area of the circle is: " + area);     }     // Method to calculate area of a square     public static void calculateSquareArea(double side) {         double area = side * side;         System.out.println("The area of the square is: " + area);     }     // Method to calculate area of a rectangle     public static void calculateRectangleArea(double length, double width) {         double area = length * width;         System.out.println("The area of the rectangle is: " + area);     }     // Method to calculat...

Assignment

As a civil engineer, you are frequently required to provide approximate estimate of the number of tiles required to furnish floor spaces. Write a simple program to help you complete this task as quickly as possible. a. Pseudo code b. Flowchart  c. Code implementation  a. Pseudo code                               Start * Input the length of the floor (L) * Input the width of the floor (W) * Input the length of the tile (l) * Input the width of the tile (w) * Calculate the area of floor = L*W * Calculate the area of one tile = l*w * Calculate the number of tiles required (N)= floor area/tileArea * Round up to the nearest whole number (since you can't use a fraction of a tile) * Output N                             End b. Flowchart                               S...

Assignment

The Evolution of Programming Languages:Key Milestones   Programming languages are the backbone of modern technology, enabling us to communicate with computers and build everything from websites to artificial intelligence. Let's take a quick journey through the milestones that shaped the world of programming. The Early Days : Foundations of Programming   * 1843: Ada Lovelace writes the first algorithm for Charles Babbage's Analytical Engine, earning her the title of the first programmer. * 1949: Assembly language emerges, allowing programmers to use human-readable instructions instead of raw machine code. The Birth of High-Level Languages : * 1957: FORTRAN(Formula Translation) is created, becoming the first high-programming language.Its designed for scientific and engineering calculations. * 1959: COBOL(Common Business Oriented-Language) is developed for business applications, revolutionizing data processing. * 1964: BASIC is introduced,making programming accessibl...