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++

A compiler that translates a high-level language into

A compiler that translates a high-level language into another high-level language is called a source-to-source translator. What advantages are there to using C as a target language for a compiler?

Write a console-based c program that can be used as a math

Write a console-based C++ program that can be used as a math tutor for a young student. The program should display two random numbers consisting of three digits each to be added in columnar format, such as: 247 +129 ---- ...

Write a c program that calculates and prints the average of

Write a C program that calculates and prints the average of two or more salaries entered by the user. The program should first prompt the user to enter the number of salaries to process (make sure: at least 2 salaries mu ...

Discussionkeyboard versus file input please respond to the

Discussion "Keyboard versus File Input" Please respond to the following: • Suppose you are designing a C++ application that needs to capture user input specifically via a keyboard or from a file. Determine the method tha ...

Projectdecision statementsdirections read carefully and

Project: Decision Statements Directions (Read CAREFULLY and follow COMPLETELY): - Create the following programs in C++ that perform the purpose described and show the sample output (with user input where applicable). - I ...

Object-oriented programming assignmentintroduction -nbspa

Object-Oriented Programming Assignment Introduction -  "A logical matrix or (0, 1) matrix is a matrix with entries from the Boolean domain B = {0, 1}. Such a matrix can be used to represent a binary relation between a pa ...

Computer applications divisionassignment c programmingstl

COMPUTER APPLICATIONS DIVISION Assignment: C++ PROGRAMMING STL Vector For this assignment, you will be starting with an example program that demonstrates the use of a STL vector. In addition to this, you may need to look ...

1 three employees in a company are up special pay increase

1. Three employees in a company are up special pay increase. You are given a file, with the following data: Miller Andrew 65789.87 5 Green Sheila 75892.56 6 Sethi Amit 74900.50 6.1 Each input line consists of an employee ...

Assignmentwhen writing c programs include comments in your

Assignment When writing C++ programs include comments in your code, make the program readable by indenting, use meaningful variable and function names, and produce meaningful output. This assignment will be to write a te ...

Write a program to draw a symmetric shape of your own using

Write a program to draw a symmetric shape of your own using C++ user-defined functions and arrays. The program should draw a shape in its original and opposite forms (black and white and then white and black). Please con ...

  • 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

Section onea in an atwood machine suppose two objects of

SECTION ONE (a) In an Atwood Machine, suppose two objects of unequal mass are hung vertically over a frictionless

Part 1you work in hr for a company that operates a factory

Part 1: You work in HR for a company that operates a factory manufacturing fiberglass. There are several hundred empl

Details on advanced accounting paperthis paper is intended

DETAILS ON ADVANCED ACCOUNTING PAPER This paper is intended for students to apply the theoretical knowledge around ac

Create a provider database and related reports and queries

Create a provider database and related reports and queries to capture contact information for potential PC component pro

Describe what you learned about the impact of economic

Describe what you learned about the impact of economic, social, and demographic trends affecting the US labor environmen