Compile and run the modified program of prat

Assignment Help Computer Engineering
Reference no: EM133702696

Question: The following C program creates an two-dimensional array of integers of size 40 by 50 where each cell at row index i and column index j stores the value of ((i+1)*(j+1)): #include void main(void){ int array[40][50]; for(int i = 0; i < 40; i++) for(int j = 0; j < 50; j++) array[i][j] = (i+1) * (j+1); printf("%d", your_function(array)); } 1. Write a function that receives the 2D array as its only input parameter, traverses all cells of the array, counts the number of elements in the array that are divisible by 6 but are not divisible by 5 (e.g. 6, 18 are counted, but 30 or 60 are not counted), and finally returns the total count. 2. Change the program so that the number of rows and columns of the 2-D array are given through command-line arguments; i.e. function main must have the following signature, number of rows is stored as a string in argv[1], and number of columns is stored as a string in argv[2]: int main(int argc, char* argv) 3. Compile and run the modified program of Prat 2 so that it generates a 2D array with 25 rows and 60 columns.

Reference no: EM133702696

Questions Cloud

Secure and efficient platform for businesses to build : This report explores the case study of AntChain's BaaS, its impact on industry collaboration, and potential future developments.
General survey and palpation of the lymph nodes : The general survey and palpation of the lymph nodes and spleen are essential parts of the lymphatic exam. P
Analyze the relationships among the three quality principles : Analyze the relationships among the three quality principles. Examine whether the principle in one example might apply to other examples.
Effectiveness of diabetes self-management education : Identify the other discipline article that you found. Effectiveness of diabetes self-management education (DSME) in type 2 diabetes mellitus
Compile and run the modified program of prat : Compile and run the modified program of Prat 2 so that it generates a 2D array with 25 rows and 60 columns
Explain the overall impact of the change goals on the future : The future of Healing Hands Hospital is looking bright thanks to work. Explain the overall impact of the change goals on the future of Healing Hands Hospital.
Explain how to execute this problem in excel : Explain how to execute this problem in excel using a finance function and describe each of the arguments and associated values in table format.
Would an oled display or an lcd display use more battery : Would an OLED display or an LCD display use more battery power? Explain why. 5. What type of printer would be used to create a fully-functioning product prototy
Analyze the structure of the investor household : BUS 330- Determine where accredited investors are located. Analyze the structure of the investor household. Analyze the retirement income mix of the investor.

Reviews

Write a Review

Computer Engineering Questions & Answers

  Create another class and named savingaccount

Create a class and name it Person, this class should include the following data members:

  What do you believe is the best way to distinguish a symptom

discusses root causes. Sometimes symptoms are confused with root causes. What do you believe is the best way to distinguish a symptom of a problem from the root

  What specifically would cloud computing help with

You are part of a company that is looking to move to cloud computing. Your manager has asked you to identify the characteristics and advantages of cloud.

  Write a program using the above function to print the number

Write a program using the above function to print thr number of days from 1 Jan 2017 to a given date and the day of the week of the given date.

  Draft an email to send to the two successful applicants

Draft an email to send to the two successful applicants, notifying them to sign their employment contracts electronically.

  Implement a function for setting width of displayed ellipses

implement a function for controlling line type tsolid, dashed, dotted of displayed ellipses. Implement a function for setting the width of displayed ellipses.

  Describe the term collection as it is used in programming

Describe the term collection as it is used in programming in general and in C# and Provide at least two examples of a collection in C#

  How the optimization version of vertex cover problem

[Self-reducibility] Show how the optimization version of vertex cover problem is polynomial time-reducible to its decision version.

  Analyze the term risk appetite

Prepare a two to three page paper in which you: Analyze the term risk appetite. Then, suggest at least one practical example in which it applies.

  What is the exact error message you get

Add a line at the end of the program to print the 10,000th element of the array. What happens now? What is the exact error message you get?

  How would the counter measure that you identified apply

Provide a short description of the visual representation, identifying the various information assets and the information states that pose vulnerability.

  Define what part of a security incident should be logged

What are some of the symptoms that would make you suspicious that your computer has been attacked

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd