Question
Intro to C++ The below is the code I added, then I got an mismatched above. I need your great experties to solve this problem.
Intro to C++
The below is the code I added, then I got an mismatched above. I need your great experties to solve this problem.
Could you find what I missed?
#include
float squareRoot(float s) { float xn; if (s == 0.0) { return 0.0; } xn = s / 2.0; int counter = 1; while (counter
int main() { int x1, y1, x2, y2; cout>x1; cout>y1; cout>x2; cout>y2; cout YOUR OUTPUT 0001 Enter-the-x-coordinate-for point-1: 5 0002: Enter-the-y-coordinate-for point-1:-5 0003: Enter-the-x-coordinate for point 2:-5 0004: Enter-the-y-coordinate-for point-2:-5 0005: The-distance-is 110 MISMATCH FOUND ON LINE 0005 ACTUAL The-distancenis-110 EXPECTED: The-distanceis-14.1421 Adjust your program and re-run to test. Test 1 failed ccc vl W_ZTgwY_82326@runweb3: $
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started