Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Using Fortran 90/95 code 1 of 2 AssigMent #6-Bubble Sorting by Column Due: Friday 06 Apr 2018 11:SS P Points: 200 Furpose: To become familiar

Using Fortran 90/95 code
image text in transcribed
image text in transcribed
image text in transcribed
1 of 2 AssigMent #6-Bubble Sorting by Column Due: Friday 06 Apr 2018 11:SS P Points: 200 Furpose: To become familiar with how to write Fortzan progza utilizing multi-dimensional arzays and implicit loops This program wil1 prompt the use for a nane of a file. Check to enaure that the file can be opened suecessfully The fizat two values in the file ll include the nunbez of zows and the nunber of coumns n that ordez) in the reat of the 23 Uaing this infornation, allocate an array of the approprlate size and read the rest of the data into the array Then, prompt the user forcolumn to sort the values by Modity the provided bubble sort to compare the values in the colu indicated by the user.Each row of data should be kept together and moved at the same time Once the list is sozted, the array should be output to a file naned sozted and then the name of the input file Foxample, if the input file waa "data.dat".the output 1le would be "sorted data-dat". Inelude the number of rows and th?uaber of eolunns in ita own line at the top of the ile before outputting the array tnelude checka to ensure that the filea open suecesstully, that they are read to/written to aucceasfully, and that the array ls allocated orts and/or prompt for additlona uccessfully. Provide err ttempts as deaLred A template file will be provided that includes conments to provide direction for the implementation of this program Hint: To leave a multi-dinensional array unallocated during declaration you must include a "for each dinenslon in the final array. -g "integer, dimension(allocatable" should be on Moodle in the page for this assignment running it betore subaitting Two data files have been provided for testing the progzam, they Compile the progzan using Gfortzan and esaure that it works by CS 117 Assignment #6-Bubble Sorting by Column Submit only the source code.895 le) to the class Noodle website listing for thss assignment Submission: when complete, submit the rort ran ??urce file (*.f95) to the class Moodle aite under the section for this assignment Note: you nay submit the assignnent multsple tinesRoveveryu l2 need to delete the previous submission before uploading a newer version 1 of 2 AssigMent #6-Bubble Sorting by Column Due: Friday 06 Apr 2018 11:SS P Points: 200 Furpose: To become familiar with how to write Fortzan progza utilizing multi-dimensional arzays and implicit loops This program wil1 prompt the use for a nane of a file. Check to enaure that the file can be opened suecessfully The fizat two values in the file ll include the nunbez of zows and the nunber of coumns n that ordez) in the reat of the 23 Uaing this infornation, allocate an array of the approprlate size and read the rest of the data into the array Then, prompt the user forcolumn to sort the values by Modity the provided bubble sort to compare the values in the colu indicated by the user.Each row of data should be kept together and moved at the same time Once the list is sozted, the array should be output to a file naned sozted and then the name of the input file Foxample, if the input file waa "data.dat".the output 1le would be "sorted data-dat". Inelude the number of rows and th?uaber of eolunns in ita own line at the top of the ile before outputting the array tnelude checka to ensure that the filea open suecesstully, that they are read to/written to aucceasfully, and that the array ls allocated orts and/or prompt for additlona uccessfully. Provide err ttempts as deaLred A template file will be provided that includes conments to provide direction for the implementation of this program Hint: To leave a multi-dinensional array unallocated during declaration you must include a "for each dinenslon in the final array. -g "integer, dimension(allocatable" should be on Moodle in the page for this assignment running it betore subaitting Two data files have been provided for testing the progzam, they Compile the progzan using Gfortzan and esaure that it works by CS 117 Assignment #6-Bubble Sorting by Column Submit only the source code.895 le) to the class Noodle website listing for thss assignment Submission: when complete, submit the rort ran ??urce file (*.f95) to the class Moodle aite under the section for this assignment Note: you nay submit the assignnent multsple tinesRoveveryu l2 need to delete the previous submission before uploading a newer version

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

Step: 3

blur-text-image

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

The Structure Of The Relational Database Model

Authors: Jan Paredaens ,Paul De Bra ,Marc Gyssens ,Dirk Van Gucht

1st Edition

3642699588, 978-3642699580

More Books

Students also viewed these Databases questions

Question

Consistently develop management talent.

Answered: 1 week ago

Question

Create a refreshed and common vision and values across Europe.

Answered: 1 week ago

Question

Provide the best employee relations environment.

Answered: 1 week ago