C++ for Engineers and Scientists
C++ for Engineers and Scientists
4th Edition
ISBN: 9781133187844
Author: Bronson, Gary J.
Publisher: Course Technology Ptr
Question
Book Icon
Chapter 4.2, Problem 1E

(a)

Program Plan Intro

To write a statement if an angle is equal to 90 degree, print the message “The angle is a right angle”; else, print the message “The angle is not a right angle.”.

(b)

Program Plan Intro

To write a statement if temperature is above 100 degrees, display the message “above the boiling point of water”; else, display the message “below the boiling point of water.”.

(c)

Program Plan Intro

To write a statement if number is positive, add number to variable positivesum; else, add the number to the variable nagtivesum.

(d)

Program Plan Intro

To write a statement if the slope is less than 0.5, set the variable flag to 0; else, set flag to 1.

(e)

Program Plan Intro

To write a statement if the difference between volts1 and volts2 is less than 0.001, set the variable approx to 0; else, calculate approx. as quantitity (volts1 − volts2) / 2.0.

(f)

Program Plan Intro

To write a statement if frequency is above 60, print the message “The frequency is too high.”;

(g)

Program Plan Intro

To write a statement if defferece between temp1 and temp2 exceeds 2.3, calculate the variable error as (temp1 − temp2) * factor.

(h)

Program Plan Intro

To write a statement if x is greater than y and z is less than 20, request that the user to input a value for the variable p.

(i)

Program Plan Intro

To write a statement if distance is greater than 35, request that the user input a value for the variable time.

Blurred answer
Students have asked these similar questions
Please provide the formula to be entered for a, b, and c.
My v and d are incorrect, please write the equations correctly.
Answer problem 14 and 15 please
Knowledge Booster
Background pattern image
Similar questions
SEE MORE QUESTIONS
Recommended textbooks for you
Text book image
C++ for Engineers and Scientists
Computer Science
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Course Technology Ptr