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
I need to develop and run a program that prompts the user to enter a positive integer n, and then calculate the value of n factorial n! = multiplication of all integers between 1 and n, and print the value n! on the screen. This is for C*.
I need to develop and run a C* program to sum up integers from 1 to 100, and print out the sum value on the screen. Can someone help please?
Given the schema below for the widgetshop, provide a schema diagram. Schema name Attributes Widget-schema Customer-schema (stocknum, manufacturer, description, weight, price, inventory) (custnum, name, address) Purchased-schema (custnum, stocknum, pdate) Requestedby-schema (stocknum, custnum) Newitem-schema (stocknum, manufacturer, description) Employee-schema (ssn, name, address, salary) You can remove the Newitem-schema (red).
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
Text book image
C++ Programming: From Problem Analysis to Program...
Computer Science
ISBN:9781337102087
Author:D. S. Malik
Publisher:Cengage Learning