Problem Solving with C++ (9th Edition)
Problem Solving with C++ (9th Edition)
9th Edition
ISBN: 9780133591743
Author: Walter Savitch
Publisher: PEARSON
bartleby

Videos

Textbook Question
Book Icon
Chapter 1, Problem 4P

Modify the C++ program that you entered in Practice Program 1. Change the multiplication sign * in your C++ program to an addition sign +. Recompile and run the changed program. Notice that the program compiles and runs perfectly fine, but the output is incorrect. That is because this modification is a logic error.

Blurred answer
Students have asked these similar questions
What is your  conclusion/Observation?? Create a nested looping program in C-language that will produce the given output below (use any of the looping statements) ************************* --------------------------------------------------------------------------------- #include<stdio.h>#include<conio.h>#include<windows.h>void gotoxy(int x, int y){COORD pos ={x , y};SetConsoleCursorPosition(GetStdHandle(STD_OUTPUT_HANDLE), pos);}main(){    int x,y;    for (y=1; y<=5; y++)    {        gotoxy(x,y);        printf("*");        getch();    }}
Write a program in C++ which adds, subtracts, multiplies, divides, and perform exponentiation on two specific numbers.  The two numbers should be entered by the user.     Each output should include a string describing what the numerical output is being displayed. Use the switch block so that the user is able to select which mathematical function to perform.  Make sure the program has a neat menu for the user to use to select their choice.  Also, avoid having the computer perform a division by zero if the user attempts it by outputting a warning message in its place  (You can use an if statement to execute this).  Include your C++ source code as well as the output of your program in your submission
i need the answer quickly

Chapter 1 Solutions

Problem Solving with C++ (9th Edition)

Additional Engineering Textbook Solutions

Find more solutions based on key concepts
Knowledge Booster
Background pattern image
Computer Science
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
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
Structured Chart; Author: Tutorials Point (India) Ltd.;https://www.youtube.com/watch?v=vdUO-sGA1DA;License: Standard YouTube License, CC-BY
Introduction to Structure Charts; Author: Christopher Kalodikis;https://www.youtube.com/watch?v=QN2bjNplGlQ;License: Standard Youtube License