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

  Mathematics in computing

Binary search tree, and postorder and preorder traversal Determine the shortest path in Graph

  Ict governance

ICT is defined as the term of Information and communication technologies, it is diverse set of technical tools and resources used by the government agencies to communicate and produce, circulate, store, and manage all information.

  Implementation of memory management

Assignment covers the following eight topics and explore the implementation of memory management, processes and threads.

  Realize business and organizational data storage

Realize business and organizational data storage and fast access times are much more important than they have ever been. Compare and contrast magnetic tapes, magnetic disks, optical discs

  What is the protocol overhead

What are the advantages of using a compiled language over an interpreted one? Under what circumstances would you select to use an interpreted language?

  Implementation of memory management

Paper describes about memory management. How memory is used in executing programs and its critical support for applications.

  Define open and closed loop control systems

Define open and closed loop cotrol systems.Explain difference between time varying and time invariant control system wth suitable example.

  Prepare a proposal to deploy windows server

Prepare a proposal to deploy Windows Server onto an existing network based on the provided scenario.

  Security policy document project

Analyze security requirements and develop a security policy

  Write a procedure that produces independent stack objects

Write a procedure (make-stack) that produces independent stack objects, using a message-passing style, e.g.

  Define a suitable functional unit

Define a suitable functional unit for a comparative study between two different types of paint.

  Calculate yield to maturity and bond prices

Calculate yield to maturity (YTM) and bond prices

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