Posts

Showing posts from March, 2023

java programs

program:- what is the output of the following program code? int m=100;  int n=300;  while(++m<n) System.out.println(m);  ? program:- class  {     public static void main(String[] args) {         int m=100,n=300;         while(++m<n)         System.out.println("++m<n="+m);     } } output:- ++m<n=101 ++m<n=102 ++m<n=103 ++m<n=104 ++m<n=105 ++m<n=106 ++m<n=107 ++m<n=108 ++m<n=109 ++m<n=110 ++m<n=111 ++m<n=112 ++m<n=113 ++m<n=114 ++m<n=115 ++m<n=116++m<n=117 ++m<n=118 ++m<n=119 ++m<n=120 ++m<n=121 ++m<n=122 ++m<n=123 ++m<n=124 ++m<n=125 ++m<n=126 ++m<n=127 ++m<n=128 ++m<n=129 ++m<n=130 ++m<n=131 ++m<n=132 ++m<n=133 ++m<n=134 ++m<n=135 ++m<n=136++m<n=137 ++m<n=138 ++m<n=139 ++m<n=140 ++m<n=141 ++m<n=142 ++m<n=143 ++m<n=144 ++m<n=145 ++m<n=146 ++m...

Unit 1-3 Basic computer and fundamentals

Image
What is Software Software is a set of instructions or programs that tell a computer or other digital device what to do. It can be thought of as the intangible part of a computer system that enables it to perform various tasks and operations. Software can be divided into two main categories: system software and application software. System software is the software that controls and manages the hardware and other components of a computer system. Examples of system software include operating systems, device drivers, and utility programs. Application software, on the other hand, is designed to perform specific tasks or applications for the user. This can include productivity software such as word processors and spreadsheets, multimedia software such as photo and video editors, and entertainment software such as video games. Software can be created using various programming languages such as Java, Python, C++, and many others. It can be distributed in various forms such as do...

Unit 1-2 Basic computer and fundamentals

Image
History of Computers The history of computers dates back to the 19th century, when early mechanical calculators were first developed. These machines were designed to perform simple mathematical calculations, such as addition, subtraction, multiplication, and division. The first electronic computers were developed in the mid-20th century, and were primarily used for scientific and military applications. The first electronic computer was the Atanasoff-Berry Computer (ABC), which was developed in 1937-1942. However, it was not fully functional and was not widely used. The first fully functional electronic computer was the Electronic Numerical Integrator and Computer (ENIAC), which was developed in 1945. ENIAC was used primarily for military calculations, such as the trajectory of artillery shells. In the 1950s and 1960s, computers began to be used for business and commercial applications, such as payroll processing and inventory management. These computers were typically l...

Unit 1-1 Basic computer and fundamentals

Image
Computer Block-Diagram What is Computer? A computer is an electronic device that can receive, store, process, and output data. It is a programmable machine that can execute a set of instructions, known as software, to perform various tasks. A computer can perform a wide range of operations, including calculations, data processing, communication, multimedia presentation, and more. The basic components of a computer include a central processing unit (CPU), memory, input devices (such as a keyboard and mouse), output devices (such as a monitor and printer), and storage devices (such as a hard drive or solid-state drive). The CPU is the "brain" of the computer, responsible for executing instructions and controlling the flow of data. Memory provides temporary storage for data and instructions that the CPU is currently using. Input devices allow users to enter data and instructions into the computer, while output devices display or otherwise present the results of...