Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

$$ begin{array}{1) text { Exercise#1: Average Value } text { Write the algorithm and a program that inputs four integer numbers and finds their average.

image text in transcribed

$$ \begin{array}{1) \text { Exercise#1: Average Value } \text { Write the algorithm and a program that inputs four integer numbers and finds their average. The program will } \text { output the numbers, their average and the difference between each number and the average. Il \text { Sample input / output: } W \begin{array}{[1] \text { Enter the four integer numbers: } 45128791 W \text { The numbers are: } 45,12,87,91 W \text { The average is: } 58.75 W \text { The differences are:-13.75, 3-46.75, 28.25,32.25 \end{array} \end{array} $$ Exercise#2: Length Write the algorithm and a C++ program that will input a length in feet and covert it to inches and centimeters. Note: 1 foot $=12$ inches. 1 inch $=2.54$ centimeters. Sample input / output: Enter length in feet: 2 Inches $=245 Centimeters $=60.96$ Enter length in feet: 1 Inches $-125 Centimeters $=30.48$ SE.SD.030

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

Machine Learning And Knowledge Discovery In Databases European Conference Ecml Pkdd 2015 Porto Portugal September 7 11 2015 Proceedings Part 2 Lnai 9285

Authors: Annalisa Appice ,Pedro Pereira Rodrigues ,Vitor Santos Costa ,Joao Gama ,Alipio Jorge ,Carlos Soares

1st Edition

3319235249, 978-3319235240

More Books

Students also viewed these Databases questions