Question: (1) Write a function that prompts the user for the name of a file to output as a binary file (no text files allowed) that
(1) Write a function that prompts the user for the name of a file to output as a binary file (no text files allowed) that will hold a two dimensional array of the long double data type Have the user specify the number of rows and the number of columns for the two dimensiona array. Have the user enter the values for each row and column element in the two dimensional arra Write the two dimensional array out as a BINARY fle (no text files allowed). You will want the file format to be as follows . The first two values stored in the file is the number of rows and the number of columnis . The remaining data is to be the two dimensional array being stored as long double typed vai (2) Write a function like function #1, except in this time, instead of asking the user for the values for each row and column element, have the function create a randomly generated values for the row and column elements. Have the function that prompt the user for the name of a file to output as a binary file (no text files allowed) the randomly generated values between the numbers O and 1 (inclusively - means to include 0 and 1). Hint: you may want to have your program generate two random numbers and divide the smaller of the two random numbers into the larger random number. You will want the file format to be as follows: . The first two values stored in the file is the number of rows and the number of columns . The remaining data is to be the two dimensional array being stored as long double typed values
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
