Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Please attached input output with each programming code. 1. An Armstrong number of three digits is an integer such that the sum of the cubes

Please attached input output with each programming code.

1. An Armstrong number of three digits is an integer such that the sum of the cubes of its digits is equal to the number itself. For example, 371 is an Armstrong number since 3**3 + 7**3 + 1**3 = 371. C Program to Check Prime or Armstrong Number Using User- defined Function. Please use two different user-defined function for checking Prime or Armstrong Number. Sample Input: 407 Sample Output: 407 is not a prime number. 407 is an Armstrong number.

2. Find out GCD of two positive numbers using recursion and also check the positive number before finding GCD.

3. Write a C program read integers from user and appends sum to the end in File Handling. Please save the output file in .txt format.

Sample Input: How many numbers? 6 Enter numbers in the file: 1 2 3 4 5 6 Sample Output: File after append: 1 2 3 4 5 6 21

4. Write a C Program to convert file contents to uppercase using file handling. Sample Input: EdU Sample Output in file: EDU

5. Write a C++ program to calculate the area of a circle or rectangle.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions

Question

What is Aufbau's rule explain with example?

Answered: 1 week ago

Question

Write Hund's rule?

Answered: 1 week ago