Calculate Sum, Div, Mul and Difference using Function Programming

C++ – Calculate Sum, Div, Mul and Difference using Function

  • March 21, 2016
  • 0 Comments

Write a program equivalent to a four-function calculator. The program should request a user to enter a number, an operator, and another number. It should then carry out the specified arithmetical operation: adding, subtracting, dividing, or multiplying two numbers (Use the concept of function add(), sub(),…). C++ Functions to Add, Subtract, Multiply and Divide Using […]

Input Marks and Find Grade and CGPA Programming

C++ Program to Input Marks and Find Grade and CGPA

  • March 20, 2016
  • 0 Comments

A class has four papers in one term. Write a program that will read a student’s score in four papers as an integer and output the student’s average and grade according to the following table. Average marks >= 80 are A Average marks >= 60 are B Average marks >= 50 are C Average marks […]

Generates Triangle Shape Nested Loop Programming

C++ – Generates Triangle Shape Nested Loop

  • March 18, 2016
  • 0 Comments

Write a program that generates the following output using a break statement with nested any loop. C++ Program to Input Marks and Find Grade and CGPA C++ – Calculate Factorial using For, While, Do While C++ – Calculate Sum, Div, Mul and Difference using Function 1 4 6      9 8      12   16 10           … 12           […]

Input Character and Display Vowel or Not Programming

C++ – Input Character and Display Vowel or Not

  • March 16, 2016
  • 0 Comments

Write a program that prints the ASCII code of the input character (both upper case and lower case) and displays whether the character is a vowel or not. e.g. if ‘A’ is inputted then the output should be 65 and should display ‘vowel’. C++ Program to Implement Unary Operator Overloading C++ Program to Convert Degree […]

multiplication table using nested loop Programming

C Program to Print the Multiplication Table using Nested Loop.

  • March 15, 2016
  • 0 Comments

Write a program that prints a multiplication table using any one nested loop. This is a C++ program to print the multiplication table using a nested loop Source Code: #include<iostream.h> #include<conio.h> void main() { int i,j,c; for(i=1; i<=10; i++) { for(j=1; j<=10; j++) { c=i*j; cout<<c<<“t”; } cout<<“n”; } getch(); } Output: 1       2       3       […]

program to find leap year Programming

C++ Program to Find Leap Year by Using Function

  • March 3, 2016
  • 0 Comments

Write a program to find if the inputted year is a leap year or not by using the concept of function. Make a function that checks if the year is a leap year; C++ Program to Read and Write Files Using Multiple File Handling C++ Program to Check Whether the Entered Number is Palindrome or […]