Find at least four run-time errors in the following program.#include <iostream>using

Chapter 2, Problem R2.8

(choose chapter or problem)

Find at least four run-time errors in the following program.#include using namespace std;int main(){ int total; int x1; cout << "Please enter a number:"; cin >> x1; total = total + x1; cout << "Please enter another number:"; int x2; cin >> x2; total = total + x1; double average = total / 2; cout << "The average of the two numbers is " << average << "endl"; return 0;}

Unfortunately, we don't have that question answered yet. But you can get it answered in just 5 hours by Logging in or Becoming a subscriber.

Becoming a subscriber
Or look for another answer

×

Login

Login or Sign up for access to all of our study tools and educational content!

Forgot password?
Register Now

×

Register

Sign up for access to all content on our site!

Or login if you already have an account

×

Reset password

If you have an active account we’ll send you an e-mail for password recovery

Or login if you have your password back