Ask Question, Ask an Expert

+1-415-315-9853

info@mywordsolution.com

Ask C/C++ Expert


Home >> C/C++

problem 1) prepare a program to print the sum of negative numbers, sum of positive even numbers and sum of positive odd numbers from a list of numbers entered by the user.

problem 2) prepare a program to print the largest even number and largest odd number from the list of numbers entered through keyboard.

problem 3) prepare a program to determine all Pythagorean triplets in the range 100 to 1000.

(A Pythagorean triplet is a set of three integers i, j, k such that i2+ j2= k2)

problem 4) prepare a program to print the following series:

(1) 2, 4, 8, 16, 32, 64, 128, 256

(2) 1, 4, 7, 10, …………… 40

(3) 1, -4, 7, -10……………-40

(4) 1, 5, 11, 19, 29 ……..

(5) (1)+(1+2)+(1+2+3)+(1+2+3+4)…………..up to n terms

(6) (2) + (2+4) + (2+4+6) + (2+4+6+8)………….up to n terms.

(7) (1) + (1+3) + (1+3+5) + (1+3+5+7)…………..up to n terms

(8) (12) + (12+32)+(12+32+52)+(12+32+52+72)…….up to n terms

(9) (22) + (22+42) + (22+42+62)+(22+42+62+82)………up to n terms

problem 5) prepare a program to find out the root of quadratic equation.

problem 6) prepare a menu driven program which has following options:

1.Factorial of a number.

2.Prime or Not

3.Odd or even

4.Exit

problem 7) prepare a program to input a number and print its reverse number. Also check that the number is palindrome or not.

problem 8) prepare a program to input a number and find out the sum of its digits.

problem 9) prepare a program to find out the count of the digits of a given integer.

problem 10) prepare a program to print the Fibonacci series.

problem 11) WAP to print the truth table for XY+Z.

problem 12) WAP to print the factorial of all the numbers till the given number.

problem 13) prepare a program to print the tables of all the numbers till the given number.

problem 14) prepare a program to input month number and year and print the calendar for the given month.

problem 15) prepare a program to find out the difference between two dates, in terms of days, months and years.

C/C++, Programming

  • Category:- C/C++
  • Reference No.:- M94890

Have any Question? 


Related Questions in C/C++

Write an application that allows the user to enter two

Write an application that allows the user to enter two variables: number (real) and code (character). Calculate the value indicated by the table below: If code is Result A symbol the whole part of the number everything e ...

C program codeoverviewfor this assignment write a program

C++ program code Overview For this assignment, write a program that will simulate a single game of Craps. Craps is a game of chance where a player (the shooter) will roll 2 six-sided dice. The sum of the die will determi ...

Computer scienceprogram-write a c program that willpresent

Computer Science Program- Write a C++ program that will: Present the user with a menu of choices: 1. Random number 2. String 3. Type Casting 4. Integer Math Then, in an if-else if structure (or switch) write the code for ...

This program involves using stl listsfor this program you

This program involves using STL lists. For this program you will implement three functions whose prototypes are given below: list ::iterator mxIter(list ::iterator first, list ::iterator last); void selectSort(list & aLi ...

Ipo chartinputprocessingoutputmarks for four

IPO Chart Input Processing Output Marks for four courses Processing Item: Grade Point and Grade for individual course Overall GPA Algoritham Initialize gp with zero Repeat  for (each course)                 Enter the mar ...

C program assignmentaccording to C Program Assignment According to

C Program Assignment According to http://en.wikipedia.org/wiki/Great-circle_distance, the great circle distance based on two coordinates in nautical miles is given by: d = r * Δσ where r is the radius of the earth and Δσ ...

Discussion questonsplease respond to all of the following

Discussion Questons Please respond to all of the following prompts: • How are input and output accomplished in C++? • How do cin and cout relate to ostream and istream? Lab Activity 1. Write a C++ program per the require ...

Write a program that calculates mileage reimbursement for a

Write a program that calculates mileage reimbursement for a salesperson at a rate of $0.35 per mile. Your program should interact with the user in this manner: MILEAGE REIMBURSEMENT CALCULATOR Enter beginning odometer re ...

Computer programmingobjectives1 opening a file reading from

Computer Programming Objectives: 1. Opening a file, reading from file, writing to a file and closing a file. 2. Sequential access files handling. 3. Practice C++ programming problems. Note: Carefully read the following i ...

Computer programming assignment-q1 using for loop write a c

Computer Programming Assignment- Q1. Using for loop, write a C++ program that prints out the multiples of 3 up through 75, separated by a blank space.  3 6 9 12 15 18 21 24 27 30 33 36 39 42 45 48 51 54 57 60 63 66 69 72 ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

A cola-dispensing machine is set to dispense 9 ounces of

A cola-dispensing machine is set to dispense 9 ounces of cola per cup, with a standard deviation of 1.0 ounce. The manuf

What is marketingbullwhat is marketing think back to your

What is Marketing? • "What is marketing"? Think back to your impressions before you started this class versus how you

Question -your client david smith runs a small it

QUESTION - Your client, David Smith runs a small IT consulting business specialising in computer software and techno

Inspection of a random sample of 22 aircraft showed that 15

Inspection of a random sample of 22 aircraft showed that 15 needed repairs to fix a wiring problem that might compromise

Effective hrmquestionhow can an effective hrm system help

Effective HRM Question How can an effective HRM system help facilitate the achievement of an organization's strate