Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Input two numbers and work out their sum, average and sum of the squares of the numbers. Input and output your name, address and age

Input two numbers and work out their sum, average and sum of the squares of the numbers.

Input and output your name, address and age to an appropriate structure.

Write a program that works out the largest and smallest values from a set of 10 inputted numbers.

Write a program to read a float representing a number of degrees Celsius, and print as a float the equivalent temperature in degrees Fahrenheit. Print your results in a form such as 100.0 degrees Celsius converts to 212.0 degrees Fahrenheit

Write a program to print several lines (such as your name and address). You may use either several printf instructions, each with a newline character in it, or one printf with several newlines in the string.

Write a program to read a positive integer at least equal to 3, and print out all possible permutations of three positive integers less or equal to than this value.

Write a program to read a number of units of length (a float) and print out the area of a circle of that radius. Assume that the value of pi is 3.14159. Your output should take the form:

The area of a circle of radius ... units is .... units. 

Given as input a floating (real) number of centimeters, print out the equivalent number of feet (integer) and inches (floating, 1 decimal), with the inches given to an accuracy of one decimal place. Assume 2.54 centimeters per inch, and 12 inches per foot. If the input value is 333.3, the output format should be:

333.3 centimeters is 10 feet 11.2 inches. 

Given as input an integer number of seconds, print as output the equivalent time in hours, minutes and seconds. Recommended output format is something like

322 seconds is equivalent to 2 hours 2 minutes 2 seconds. 

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

Sams Teach Yourself Beginning Databases In 24 Hours

Authors: Ryan Stephens, Ron Plew

1st Edition

067232492X, 978-0672324925

More Books

Students also viewed these Databases questions