/**************************************************************************** ** COPYRIGHT (C): 1996 Cay S. Horstmann. All Rights Reserved. ** PROJECT: Computing Concepts with C++ ** FILE: coins1.cpp ****************************************************************************/ #include int main() { int pennies = 8; int dimes = 4; int quarters = 3; double total = pennies * 0.01 + dimes * 0.10 + quarters * 0.25; /* total value of the coins */ cout << "Total value = " << total << "\n"; return 0; }