Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

show a test output with more than just Good Job! Error C1083 Cannot open include file: 'bits/stdc++.h': No such file or directory Error (active) E0070


show a test output with more than just "Good Job!"
Error C1083 Cannot open include file: 'bits/stdc++.h':
No such file or directory Error (active)
E0070 incomplete type is not allowed Error (active)
E0349 no operator "[]" matches these operands Error (active)
E0349 no operator "[]"

 

This program will use the arrayclass (not abuilt-in-array) (see section 7.4),recursion (see section6.18), and pass by reference with pointers (seesection 8.4) to calculate 02,12, 22, 32, 42 andthen print a message.

Write a driver program (main) that includes the following:

An array class (not abuilt-in-array) (see section 7.4)of5 integers initialized to 0,1,2,3,4 the bases

An integer initialized to 2 to hold the exponent

A string initialized to “Good Job!”;

A for loop that callsthe recursive (see section6.18) pow function with all of the bases and theexponent.

Call the print function with the string using passby reference with pointers (see section8.4) by passing the address of s.

You must use the array class (notbuilt-in-arrays) (see section7.4)for full credit (-10 points if it is notused).

Write a pow function that implements raisinga base to a power. The function takes anint base and an int exp. Itreturns an int which is baseexp. You mustuse recursion for full credit (see section 6.18) (-10 points if itis not used).

Basecase: base1 = base

Recursivecase: baseexp = base * baseexp-1

Write a print function that takes a string pointer and uses theindirection operator (*) to print the contents of the string to thescreen. This function does not return anything. Thisfunction must use pass by reference withpointers (see section8.4) for full credit (-10 points if it is notused).

Please Fix This Code:

image text in transcribedimage text in transcribed

Code Description E1696 cannot open source file "bits/stdc++.h" ab E0070 incomplete type is not allowed D ab E0349 no operator "[]" matches these operands no operator "[]" matches these operands Cannot open include file: 'bits/stdc++.h': No such file or directory D abc E0349 X C1083 Project Midterm Midterm Midterm Midterm Midterm File Source.cpp Source.cpp Source.cpp Source.cpp Source.cpp Line 2 28 35 35 2

Step by Step Solution

3.44 Rating (154 Votes )

There are 3 Steps involved in it

Step: 1

It seems like your code has several issues including missing closing braces for functions incor... 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

Management Accounting Information for Decision-Making and Strategy Execution

Authors: Anthony A. Atkinson, Robert S. Kaplan, Ella Mae Matsumura, S. Mark Young

6th Edition

137024975, 978-0137024971

More Books

Students also viewed these Programming questions

Question

At what frequency will a 32.0-mH inductor have a reactance of 660?

Answered: 1 week ago

Question

Given find the value of k. es 1 e kx dx = 1 4'

Answered: 1 week ago