Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Can someone please help me find the errors in this code? Also please explain the errors and the line it was found in and what

Can someone please help me find the errors in this code? Also please explain the errors and the line it was found in and what was done to correct it.
image text in transcribed
image text in transcribed
image text in transcribed
4-1 Debugging Assignment: Building User Option Menu @ Assignment In this assignment, you are given a full piece of code that does not run correctly. Some of the bugs can be found at compile time, while others are found at run time. Access the User Menu.cpp code file (in the zip file in Start Here) and use debugging practices and the debugger in Visual Studio to find each bug. Fix the bug and write a comment in the code giving a description of how you found the problem and how you fixed it. Submit the working source code. To complete this assignment, review the Debugging Assignment Guidelines and Rubric document. Otev D uloy ni Diet Analyze Window Help - Attach... . User Menu.cpp 3 = x Miscellaneous Files (Global Scope) 1 // User Menu_Solution.cpp: This code contains five errors before it will work as desired. Find those errors, 2 7 / document a description of the errors and their fix, and fix then. Try using the debugger to 3 1/ step through the program to find the bugs. As you step through, take notice of the information 4 // you can see. 6 7 //This program builds a menu based on switchcase statements to determine where a user wants to go in the program // Program options are then to solve the Tower of Hanoi problem, view the user profile, or exit the program include "stdafx.h" include include void Tower(int,char, char, char): int main() int choice: cout > choice; switch (Choice) system("cls"); int numises; cout > Discs; cout a nota Tower ( scs, A C cout > choice; switch (Choice) case 1: system("cls"); int numbiscs; Cout > numDiscs; cout

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Machine Learning And Knowledge Discovery In Databases European Conference Ecml Pkdd 2015 Porto Portugal September 7 11 2015 Proceedings Part 2 Lnai 9285

Authors: Annalisa Appice ,Pedro Pereira Rodrigues ,Vitor Santos Costa ,Joao Gama ,Alipio Jorge ,Carlos Soares

1st Edition

3319235249, 978-3319235240

More Books

Students also viewed these Databases questions

Question

RP-2 What is the best way to predict a persons future behavior?

Answered: 1 week ago