I am behind in my IB Comp Sci class and we are dealing with java and easyish problems. I am working on 5 problems now, and the 2 i have to do is due monday the 23rd. the instructions are:
1. Create an integer array holding 100 values
2. Create 100 different random integer numbers and place these into the array
3. Using a selection sort, sort the array from least to greatest
a. process for a selection sort
b. frind the minimum value on the list
c. swap it with the value in the frist position
d. sort the remainder of the list (excluding the first value)
1. hint: use two for loops, set the firrst loop equal to the 0 index, set the index value of the second loop to the index +1 of the first loop.
2. hint: have the frist loop onlu pass through the array until it reaches the second to the last spot in the array
e. print the output of the sorted array at the end of the code
Any one got any good codes? They could really help. Please contact me at andrew.viper1616@gmail.com. I have attemped the problem myself so many times, and i alway get like 50 billion errors (added up to what i already fixed) Thank you. And please dont post a reply and just email me.
2 1740
Maybe you should post your problem code. That way people can walk you through the problems spots and then maybe you might learn something.
I am behind in my IB Comp Sci class and we are dealing with java and easyish problems. I am working on 5 problems now, and the 2 i have to do is due monday the 23rd. the instructions are:
1. Create an integer array holding 100 values
2. Create 100 different random integer numbers and place these into the array
3. Using a selection sort, sort the array from least to greatest
a. process for a selection sort
b. frind the minimum value on the list
c. swap it with the value in the frist position
d. sort the remainder of the list (excluding the first value)
1. hint: use two for loops, set the firrst loop equal to the 0 index, set the index value of the second loop to the index +1 of the first loop.
2. hint: have the frist loop onlu pass through the array until it reaches the second to the last spot in the array
e. print the output of the sorted array at the end of the code
Any one got any good codes? They could really help. Please contact me at andrew.viper1616@gmail.com. I have attemped the problem myself so many times, and i alway get like 50 billion errors (added up to what i already fixed) Thank you. And please dont post a reply and just email me.
I suppose people view this site differently
Sign in to post your reply or Sign up for a free account.
Similar topics
by: Spammay Blockay |
last post by:
I've been tasked with doing technical interviews at my company,
and I have generally ask a range of OO, Java, and "good programming
technique" concepts.
However, one of my favorite exercises I...
|
by: artev |
last post by:
when is load a page I have a form with some elements that are
text, textfield, select, select multiple, checks, radios.
where text and textfield are filled with some words,
select have how first...
|
by: artev |
last post by:
when is load a page I have a form with some elements that are
text, textfield, select, select multiple, checks, radios.
where text and textfield are filled with some words,
select have how first...
|
by: anon538 |
last post by:
Hello. I'd like to start off by saying that this is not a homework problem of any sort. I am a high school student who frequents cs competitions, and I have never been able to solve problems...
|
by: taylorcarr |
last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: ryjfgjl |
last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
|
by: ryjfgjl |
last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
| |