subject

C++ PROGRAM 1) Add dialog to the program from homework 5 problem 2. The program should ask user for last and first name, and then greet the user. After that, program asks for the coefficients of a quadratic equation. After user inputs the values, program prints the inputted values on the screen and ask user to confirm that they are correct. If user replies that the values are incorrect, the program should allow user to change the values of the coefficients. Otherwise, program solves quadratic equation and displays the solutions. After this program should ask user whether she would like to solve another quadratic equation or would like to exit. The program should be tolerant to incorrect user inputs (it should not crash if user gives incorrect or unexpected input).
Tips: start the dialog development with drawing a dialog flowchart – this will be very helpful when you start programming it. You could use example codes that we discussed in the class.
2) Design and implement a test plan (explain how we can check whether the program gives correct results or not). Using designed test plan test your code, if the testing reveals bugs, please explain what incorrect behavior you found and how you fixed the code.

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 07:00
You will be given two character arrays of the same size, one will contain a number of ships. ships will move around the character array based on which way they are facing and the route they are on. routes are given in the other array. the route consists of '-' and '|' for straight paths, '\' and '/' for curves, and '+' for intersections. there are ships on these routes. ships always face a direction, '^' for up, '> ' for right, 'v' for down, and '< ' for left. any time the ships hit a '\' or a '/' it will turn as you would expect a ship to turn (e.g. a '^' that moves into a '/' will turn right). at an intersection, ships will always continue straight through. all ships move at the same speed, ships take turns moving and all ships move during one 'tick'. the one in the most top left goes first, followed by those to its right, then the ones in the next row. it iterates along the rows and then down the columns. each ship moves one space on its turn moving along the route. your function needs to return the position of the first collision between two ships and the number of ticks before the crash occurred.
Answers: 2
question
Computers and Technology, 23.06.2019 08:00
Which argument is not a valid filter? does not equal this quarter filter by cell color all of these are valid filter arguments.
Answers: 2
question
Computers and Technology, 23.06.2019 12:50
Which syntax error in programming is unlikely to be highlighted by a compiler or an interpreter? a variable name misspelling a missing space a comma in place of a period a missing closing quotation mark
Answers: 1
question
Computers and Technology, 26.06.2019 01:30
An explanation for question. b) i) — you ; -;
Answers: 1
You know the right answer?
C++ PROGRAM 1) Add dialog to the program from homework 5 problem 2. The program should ask user for...
Questions
question
Computers and Technology, 25.09.2019 07:50
question
English, 25.09.2019 07:50
Questions on the website: 13722362