Monthly Archives: June 2019

Get Keyboard Input in Basic Java Program

Task: Steps to Get Keyboard Input in Basic Java Program The Input For Java Console Applications ( Basic Java Programs ) Java Console Applications are the basic programs to start learning Java Programming Language. The new Java programmers wish to write general programs with run time input from the user. For example, suppose  we wish… Read More »

Loading

Write and Execute First Java Program in NetBeans

Task: How To Write and Execute First Java Program in NetBeans IDE. Note: In this Simple Java Tutorial we will assume that you have already downloaded and installed Java Development Kit JDK and Net Beans 8.1 IDE or higher. Short Steps: Step 1: Start Net Beans IDEStep 2: Now you will Click on File menu… Read More »

Loading

C Program To Calculate Circumference of Circle

Q: Write a C Program To Calculate Circumference of Circle. Input radius of the circle from the user at run time. Use the formula: circumference of circle = 2 * PI * radius The Logic Behind C Program to Find Circumference of Circle This is a simple C program using formula calculation technique. The basic… Read More »

Loading

C Program to Search Multiple Records of Given Name in Binary File

Q: Write down a C Program to Search Multiple Records of Given Name in Binary File. As we have seen earlier a simple version of this program to search the first record with given name in a binary file. This program will show all such records having the given name of student in a binary… Read More »

Loading

C Program to Find Smallest Number in Array

Q: Write a C Program to Find Smallest Number in Array The Basic Logic of Smallest Number in Array Program First of all the user will input any 5 numbers in array. The program assumes that the first number is minimum number min = numArray[0]; This C program uses a for loop to get each… Read More »

Loading

C Program to Calculate Square Root of a Positive Number

Q: Write a C Program to Calculate Square Root of a Positive Number How To Calculate Square Root of a number in C Programming We use built-in function sqrt() to calculate square root of a number. Include Header File math.h for sqrt() function We must include math.h header file with the help of pre processor… Read More »

Loading