Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Implement the following programs in C++ language preferable in the Dev CH Compiler. 1. Write a program to input temperature in Fahrenheit and convert and

image text in transcribed
Implement the following programs in C++ language preferable in the Dev CH Compiler. 1. Write a program to input temperature in Fahrenheit and convert and display it into Celsius. The formula for conversion is given below: 5 C=;(F - 32) 2. Write a program to input radius of a circle and find diameter, circumference, and area of that circle and display it. 3. Write a program to input two numbers and calculate and display their sum, difference, product, quotient and remainder. 4. Write a program to input a 5-digit whole number and display it in reverse order. For example, if the input is 53721, its output will be 12735. 5. Write a program to input a 5-digit whole number and display the sum of its digits. For example, if the input is 53721, its output will be 18. 6. Write a program to input a number and display its additive inverse and multiplicative inverse. 7. Jamal's basic salary is input. His dearness allowance is 40% of basic salary, and house rent allowance is 20% of basic salary. Write a program to calculate and display his gross salary. 8. Two numbers are input in A and B. Write a program to swap the numbers and display them by two different strategies i.e, by using some additional variable and by without it. 9. Write an a program to input a 3-digit number. It should calculate and display the sum of the squares of its digits. 10. Write a program to input the number of inches. Find the number of yards, feet and inches and display them

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

Recommended Textbook for

Spatial Database Systems Design Implementation And Project Management

Authors: Albert K.W. Yeung, G. Brent Hall

1st Edition

1402053932, 978-1402053931

More Books

Students also viewed these Databases questions

Question

What is DDL?

Answered: 1 week ago