DOC PREVIEW
Pitt INFSCI 0012 - Assignment using Arrays Sorting Functions and Files

This preview shows page 1 out of 2 pages.

Save
View full document
View full document
Premium Document
Do you want full access? Go Premium and unlock all 2 pages.
Access to all documents
Download any document
Ad free experience
Premium Document
Do you want full access? Go Premium and unlock all 2 pages.
Access to all documents
Download any document
Ad free experience

Unformatted text preview:

INFSCI 0012: Introduction to Programming Wednesday’s 6:00 – 8:25 Room 404Assignment 6Assignment using Arrays, Sorting, Functions, and FilesWrite a program that reads the following sentences from an input data/text file that you create. Its content is listed below. Each sentence ends with an enter key.3 Higher order thinking tends to be complex.1 Higher order thinking often yields multiple solutions.4 Higher order thinking involves the application of multiple criteria.5 Higher order thinking often involves uncertainty.2 Higher order thinking involves imposing meaning.The program should open the files (one for input and another for output), get the data from the input data/txt file, sort (give the user the choice of using either the insertion or selection techniques) the sentences so that they are in order by sentence number, as well as allow for the display of the sentences in either original or sorted order. The sorted sentences must be written to an output file (with sorted numbering included). Additionally, when the user selects sorted order for the sentences, the program must also output the the number of words in each sentence to the screen, as well as each sorted sentence. The program must also allow the user to see the total number of sentences in the file. The program must also close all opened files. It might help to create a structure chart in order to help in function design and application.Naming ConventionsBefore you submit your assignment, please name your file according to the following convention: {Last_Name} {Last four digits of SS}.c For example, if your name is John Doe and your Social Security Number is 123-45-6789, your file should be named doe6789.cSubmissionSubmit your file electronically to the GSA Olena Shcherbinina via the digital drop box at courseweb.pitt.edu. Use the tools menu, digital dropbox to submit your work. Multiple submissions are not acceptable; your first submission is the one that will be reviewed for a grade. Please be certain that all of your questions have been answered andyour program runs prior to submission. Grading Due DateThis assignment is worth 10 points. Wednesday, April 16, 2003, at 11:55 p.m. QuestionsIf you have any questions regarding this assignment, please contact the UTA Dan Groft (email: [email protected]) for this course.Reference used: Paul, R. (1990). Critical Thinking - What every person needs to survive in a rapidly changing world. CA: Center for Critical Thinking and Moral


View Full Document

Pitt INFSCI 0012 - Assignment using Arrays Sorting Functions and Files

Documents in this Course
Load more
Download Assignment using Arrays Sorting Functions and Files
Our administrator received your request to download this document. We will send you the file to your email shortly.
Loading Unlocking...
Login

Join to view Assignment using Arrays Sorting Functions and Files and access 3M+ class-specific study document.

or
We will never post anything without your permission.
Don't have an account?
Sign Up

Join to view Assignment using Arrays Sorting Functions and Files 2 2 and access 3M+ class-specific study document.

or

By creating an account you agree to our Privacy Policy and Terms Of Use

Already a member?