CMPSCI111L
Project5
Skip To Content
Dashboard
  • Login
  • Dashboard
  • Calendar
  • Inbox
  • History
  • Help
Close
  • My Dashboard
  • CMPSCI111L
  • Assignments
  • Project5
2017FA
  • Home
  • Assignments
  • Syllabus
  • Quizzes
  • Collaborations
  • Library
  • The Learning Center
  • McGraw Hill Campus
  • Google Drive
  • Campus Resource Guide
  • EvaluationKIT Course
  • Online Tutoring
  • Services for Students
  • Employment Center
  • Office 365
  • Canyons Connects
  • Purchase Course Materials
  • Top Hat
  • Zoom
  • Lucid (Whiteboard)
  • Insights-Beta
  • Credentials
  • Insights

Project5

  • Due Dec 1, 2017 by 11am
  • Points 30
  • Submitting on paper
  • Available Nov 17, 2017 at 12am - Dec 1, 2017 at 11:59pm
This assignment was locked Dec 1, 2017 at 11:59pm.

Programming Project # 5– Arrays, Files, and Sorting (30 points)

 

Create an input text file that has the name input.txt with the following content.

10 45 23 14 76 55 14 34 11 4 12

Your mission, is to write a console program which does the following.

  1. Open and read the first line of this input file and create an integer array with a size to match the first number of the file. So if the first line of the file contains 10, the array will have 10 slots. Read the remaining numbers into the array.
  2. Write a method named sort, which takes the array as a parameter, and sorts it from low to high. When the sort is complete, create an output file with the name output.txt and write the output. The size will be first, followed by the sorted list of numbers (one per line).
1512154800 12/01/2017 11:00am
Please include a description
Additional Comments:
Rating max score to > pts
Please include a rating title

Rubric

Find Rubric
Please include a title
Find a Rubric
Title
You've already rated students with this rubric. Any major changes could affect their assessment results.
 
 
 
 
 
 
 
     
Can't change a rubric once you've started using it.  
Title
Criteria Ratings Pts
This criterion is linked to a Learning Outcome Description of criterion
threshold: 5 pts
Edit criterion description Delete criterion row
5 to >0 pts Full Marks blank
0 to >0 pts No Marks blank_2
This area will be used by the assessor to leave comments related to this criterion.
pts
  / 5 pts
--
Additional Comments
This criterion is linked to a Learning Outcome Description of criterion
threshold: 5 pts
Edit criterion description Delete criterion row
5 to >0 pts Full Marks blank
0 to >0 pts No Marks blank_2
This area will be used by the assessor to leave comments related to this criterion.
pts
  / 5 pts
--
Additional Comments
Total Points: 5 out of 5