Exercise 3.3: Validating Inputs in C++, Summaries of Thermodynamics

An exercise from a c++ programming course, focusing on input validation. Students are required to write code to validate different types of inputs, such as integers, doubles, and special symbols. The document also includes self-review questions to check understanding.

Typology: Summaries

2021/2022

Uploaded on 11/06/2022

haikalau-0
haikalau-0 🇲🇾

1 document

1 / 4

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
EXERCISE 3.3
1)
a. double prices
b. int quantity
c. int disc =30
d. cin >> total prices;
total prices = (prices*quantity)*(100-DISC)/100.00;
3)
pf3
pf4

Partial preview of the text

Download Exercise 3.3: Validating Inputs in C++ and more Summaries Thermodynamics in PDF only on Docsity!

EXERCISE 3.

a. double prices b. int quantity c. int disc =3 0 d. cin >> total prices; total prices = (pricesquantity)(100-DISC)/100.00;