Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Hi please answer all of the question 1. by using c++ QUESTION 1 (15 MARKS) c. C++ program shown in Figure 1.1 consists of errors.

Hi please answer all of the question 1. by using c++ image text in transcribed
image text in transcribed
QUESTION 1 (15 MARKS) c. C++ program shown in Figure 1.1 consists of errors. State the line number and the type of error that the program has. Line no 1 2 3 4 5 6 7 8 Coding #include using namespace std; int Main() 1 int x, y, c) y = 0; 10 11 12 13 14 15 16 float sales(51 - 41,28,95, 76,33), sales [3] += 5; x-sales [1]/y sales(3) - sales [1]++; sales(1) + sales (3) -e; sales [4] . 5; cout using namespace std; int main() 4 int rows, cols; rows - 2; cols - 2; int matR [rows] cols] = {(1,2), (3, 4); for (int i = 0; i

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

Step: 3

blur-text-image

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

More Books

Students also viewed these Databases questions

Question

What were the reasons for your conversion or resistance?

Answered: 1 week ago