Introduction This assignment is worth 0% of your grade. This is an individual assignment (so individual, I put your student ID on it) and you should not share your assignment with anyone else. The assignment is due July 1st at Midnight, Montreal time. All submissions must go through EAS: https://fis.encs.concordia.ca/eas/ After you submit, go back to check EAS to confirm that you just uploaded your assignment! Q1) Making Random Numbers Create an array of random integers between 0 and MAX_INT. Output these to the screen, separated by spaces. Your program should be called MakeRandom.java and it should define a single class, MakeRandom. It's main method will consider either one or two arguments. If there is a single argument, that argument should be the number of random integers to create. If there are two arguments, the first argument should be the seed for the random numbers and the second should be the number of random integers to create. So, what's a seed? Look up java.util.Random and figure it out. How do you think you should set up Random when no seed is provided? Just something to think about, you don't have to answer here. This is A0, a throw-away assignment to get you started and to teach you how to use the submission system! 1.1 Evaluation You will notice that there were some other files in the zip containing this assignment PDF. There should also be a file called DebugRunner.class and one caled config.xml. If you put them both in the same folder as your MakeRandom.class file, compiled from the Java source you wrote, you can run java DebugRunner to get some feedback. You'll want to run this from the command-line. Ask your tutors for help in doing this if you can't figure it out. Most assignments will include this and the config.xml file will partially mark your assignment so you can figure out how far along you are, though the marker will have a more comprehensive config.xml, so make sure you follow assignment instructions carefully! MakeRandom Example You might type: java MakeRandom 5 The output woule look something like: 1562 23 200012
Introduction This assignment is worth 0% of your grade. This is an individual assignment (so individual, I put your student ID on it) and you should not share your assignment with anyone else. The assignment is due July 1st at Midnight, Montreal time. All submissions must go through EAS: https://fis.encs.concordia.ca/eas/ After you submit, go back to check EAS to confirm that you just uploaded your assignment! Q1) Making Random Numbers Create an array of random integers between 0 and MAX_INT. Output these to the screen, separated by spaces. Your program should be called MakeRandom.java and it should define a single class, MakeRandom. It's main method will consider either one or two arguments. If there is a single argument, that argument should be the number of random integers to create. If there are two arguments, the first argument should be the seed for the random numbers and the second should be the number of random integers to create. So, what's a seed? Look up java.util.Random and figure it out. How do you think you should set up Random when no seed is provided? Just something to think about, you don't have to answer here. This is A0, a throw-away assignment to get you started and to teach you how to use the submission system! 1.1 Evaluation You will notice that there were some other files in the zip containing this assignment PDF. There should also be a file called DebugRunner.class and one caled config.xml. If you put them both in the same folder as your MakeRandom.class file, compiled from the Java source you wrote, you can run java DebugRunner to get some feedback. You'll want to run this from the command-line. Ask your tutors for help in doing this if you can't figure it out. Most assignments will include this and the config.xml file will partially mark your assignment so you can figure out how far along you are, though the marker will have a more comprehensive config.xml, so make sure you follow assignment instructions carefully! MakeRandom Example You might type: java MakeRandom 5 The output woule look something like: 1562 23 200012
Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
Related questions
Question
Expert Solution
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
This is a popular solution!
Trending now
This is a popular solution!
Step by step
Solved in 2 steps with 5 images
Knowledge Booster
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.Recommended textbooks for you
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education