Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

how can i fix my code to make this work? States web exUSES a.out powers.c $158a08@oisweb exo]$ gec powers.c powers.c: In function 'main': powers.c:31:8: warning:

how can i fix my code to make this work? image text in transcribed
image text in transcribed
image text in transcribed
States web exUSES a.out powers.c $158a08@oisweb exo]$ gec powers.c powers.c: In function 'main': powers.c:31:8: warning: missing terminating " character (enabled by default] printf(" &15s $159 4155 $155 $15s &155 4155 415s 4159 $15s \", powers.c:31:1: error: missing terminating " character printf(" #155 415 415 4155 115s 4155 4155 415s $155 $15s \", powers.c:37:3: error: 'a' undeclared (first use in this function) a=i*i: powers.c:37:3: note: each undeclared identifier is reported only once for each f unction it appears in powers.c:38:3: error: 'b' undeclared (first use in this function) b=i*i*i; powers.c:39:3: error: 'c' undeclared (first use in this function) c=i*i*i*i; powers.c:40:3: error: 'd' undeclared (first use in this function) d=i*i*i*i*i; include int main() int start, endi printf("Welcome to povetsin") pent("the program will produce a table of povers from the test, second, third, fourth, and fifth root of the range of values based in your Saputala): print Please enter the beginning Integer 1") Scan ("d", starta printese enter the ending Integer 1" scanf("d", enda peint peint("\115 1150 1155 115 115 115 116 115 115 115 * Integer e drove. 4th Esth use". int i tortle end 14) w 112 CL001 del 1113 ata print("1154 153 154 154 150... .. .. d int("Thank you for using powers. Bye") retur Program Name powers Description The program will produce a table of powers from the second to fifth powers using the beginning and ending integer values provided by the user. Requirements . In the poi directory create the subdirectory exo Create the c program powers.e in the p01/exO directory. Using the format and words displayed in the Example of Output the program will do the following: Displays a message that indicates what the program will do. Asks the user for the range to be produced by asking the use for two integers representing the beginning and ending integer values. Receives the 2 integers and places them in separate variables. Produces 5 columns representing the integer and then the 2nd 5" powers Produces a row of column headers Produces a row for each integer in the range indicated. Ends with a thank you message . . . . Example of Output Welcome to powers This program will .. ( tell user what will happen) Please enter the beginning integer: user enters a value like 1 Please enter the ending integer: (user enters a value like 4) Integer Square 3rd Power 4th Power 5th Power 1 2 3 4 1 4 9 16 1 8 27 1 16 81 256 1 32 243 1024 Thank you for using powers. Bye

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_2

Step: 3

blur-text-image_3

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

Database Internals A Deep Dive Into How Distributed Data Systems Work

Authors: Alex Petrov

1st Edition

1492040347, 978-1492040347

More Books

Students also viewed these Databases questions

Question

LO1 Summarize the organizations strategic planning process.

Answered: 1 week ago

Question

What are Measures in OLAP Cubes?

Answered: 1 week ago

Question

How do OLAP Databases provide for Drilling Down into data?

Answered: 1 week ago

Question

How are OLAP Cubes different from Production Relational Databases?

Answered: 1 week ago