Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write this c program The coding portion of this assignment is meant to help you understand how walk through arrays in order to read the

Write this c program The coding portion of this assignment is meant to help you understand how walk through arrays in order to read the element values and write the element values. This program will output the times tables for the numbers 1 through 9. That is 1x1, 1x2, 1x3, ... 1x9, 2x1, 2x2, 2x3, ... 2x9, ... 9x1, 9x2, 9x3, ... 9x9 and show the calculated answers as well ...I want you to write / complete a program that:Declares an array called answers large enough to hold the results of one of the times tablesoHINT you might want to make the array large enough so that the indexes of the array can be used to also represent the numbers that you are multiplying byoDo this in the main() function of your program In your mainline, using a loop (loop #1) walk through the numbers 1 to 9 inclusiveWrite a function called calculateTimesTable() which takes the array as a parameter, and the index of loop #1 as a parameteroIn this function, using another loop (loop #2) again walk through the numbers 1 to 9 inclusiveoIn writing the main() and timetable() this way, loop #2 is to be nested inside loop #1oWithin loop #2, store the answer of the index of loop #1 (passed in as a parameter) multiplies by the index of loop #2oDo not print the times table results from within the calculateTimesTable() functionBack in the main() function, after returning from calculateTimesTable() but still inside loop #1, output the results of this times tableoSee the last page of this assignment for the required (sample) output your output needs to have the same format as this output!! Remember to follow best-practices while coding ... for example, properly comment your source code

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

Practical Database Programming With Visual Basic.NET

Authors: Ying Bai

1st Edition

0521712351, 978-0521712354

More Books

Students also viewed these Databases questions

Question

Ensure continued excellence in people management.

Answered: 1 week ago

Question

Enhance the international team by recruiting the best people.

Answered: 1 week ago