Posts

Write a program to find out the aggregate value of all even numbers and odd numbers lie between 1 to 100

Write a program to find the factorial value of any number entered through the keyboard.

Write a program that will print out all the rotations of a string typed into it. For example, the rotations of the word “space” are: space paces acesp cespa espac

Write a C program that reads several different names and addresses into the computer, rearranges the names into alphabetical order, and then writes out the alphabetized list. Make use of structure variables within the program

Define a structure called ParliamentMember, consisting of the following fields: Member Name, Region Name, Party Name and Percentage of vote achieved. Create an array of structure to hold records of 20 such Member details and then write C code to read these records and find out the record of those members who has won from particular region

Define a structure of type hms containing three integer numbers, called hour, minute and second, respectively. Then define a union containing two members, each a structure of type hms. Call the union members local and home, respectively. Declare a pointer variable called time that points to this union.

Declare a user defined data type called Person with 3 fields of the following type: Name, DOB (Date of Birth) and Address,where Name contains FirstName and LastName, DOB contains Day, Mon and Year; and Address has the following fields: House, Street, City, State, PinCode and TelephoneNo.

Write a program that takes a character as input and outputs the ASCII value of that character.

Let consider the conversion rate of US Dollar and Taka are 1 dollar = 80.45 taka. Write a program that first takes the choice from the user what conversion (hint 1 for dollar to taka or 2 for taka to dollar) he/she wants. Then an amount is given as input. Convert the amount and output the result according to the given choice.

Input a character. If the character is between ‘A’-‘Z’ convert to small letter. If the character is between ‘a’-‘z’ convert to capital letter.

Write a program to find the maximum/minimum number from given three numbers.

Write a program to find a given number is greater than 100 and less than 250 and divisible by 7.

Any year is entered through the keyboard. Write a program to determine whether the year is a leap year or not.

Write a program to interchange the value of two variables, say x and y

Write a program that receives 5 integers and returns the sum and average of these numbers.