Experts in Written Essays & Research Papers: Assignment Help Services.

To hire a writers, fill the order instructions form & checkout—guaranteed a top college graduate to write your essay & NO AI-Plagiarism in the
final papers! Pursuing an 8-16 week course? The best in completing ace my homework & online class help, will assist you today!

Posted: April 17th, 2020

Randomness and Array Manipulation

Assessment Brief Question 1 - Randomness and array manipulationsYou are a promising junior programmer in a video game business. You are part of a team working on an online gaming system for a first-person shooter game. In the game, players can register to an arena to play together. Sometimes, they play solo; sometimes, they play in teams.A1_Q1.pdeYou have been asked to implement a set of functionalities in Processing (!) to be able to shuffle and make subgroups of players to play in teams.Each player is identified by its username (a String object).Start from this code: A1_Q1_Source.zip. The sketch declares empty methods that you need to implement (called "stubs"). It also contains a list of usernames on which it performs a series of tests. You can see the correct expected result of these tests here. If your functions are implemented correctly, you should get similar results. Note that the results of the last test may slightly vary since it involves randomness.A1_Q1.pde1a - Randomize listImplement the following method without using ArrayList (ie. using only arrays)./** * This method takes a list of usernames and randomizes it. * @param userNames the list of usernames * @return a new array containing the randomized list of usernames */String[] createShuffledList(String[] userNames) {}Important:There should be no repetitions in the usernames (unless there was a username twice in the list sent as a parameter).The returned list should contain all and only the items from the original list. This means that it will have the same length (among other things).The list of usernames sent as a parameter should not be modified (ie. be aware that you are passing by reference).1b - GroupingImplement the following method without using ArrayList (ie. using only arrays)./** * This method takes a list of usernames and separates them in different groups. * @param userNames the list of usernames * @param nGroups the number of groups * @return an array of groups of usernames */String[][] createGroups(String[] userNames, int nGroups) {}Example:String[] userNames = loadStrings("usernames.txt"); // you can define your own file with usernames for testing purposesStringp[][] groups = createGroups(list, 3);will return an array "groups" where groups[i][j] contains the j-th username of the i-th group. Another way to say it is that groups[i] is an array of String (ie. String[]) containing the usernames of its group.Important:If nGroups is smaller than 1, it should be considered equal to 1 (ie. one group with everyone in it).if nGroups is larger than the number of usernames in the list, it should be considered equal to the number of usernames (ie. one person per "group").If the list has length 0 or is null, the method should return null.The returned array length is equal to the number of groups ie. groups.length == nGroups.There should be no repetitions of usernames anywhere in the returned array and all usernames should be there.When the number of usernames sent as a parameter cannot be perfecly divided by nGroups, you will have to return a mix of groups of different sizes. When that happens:You need to make sure that the difference in size between two groups does not exceed 1. For example, if you call createGroups(list, 3), the result should be an array of groups where each group contains either 2 or 3 usernames.The bigger groups should be at the beginning of the returned array; the smaller groups at the end.Groups are formed sequentially, in the order of the elements found in userNames. So for instance, userNames[0] should appear in the first group and userNames[length-1] should always be in the last group.1c - Randomized groupsAdd an optional boolean to the last method: when true, the usernames will be randomized instead of being chosen sequentially./** * This method takes a list of usernames and separates them in different groups. * @param userNames the list of usernames * @param nGroups the number of groups * @param randomize if true, the groups will contain shuffled usernames; if false, the usernames will be added sequentially to the groups * @return an array of groups of usernames */String[][] createGroups(String[] userNames, int nGroups, boolean randomize) {}

Can I See Writer Credentials?

You can view anonymized writer profiles, highlighting their degrees and expertise, to feel confident in who is handling your paper. This transparency helps you choose the best fit for your needs. Each profile showcases years of experience and specialization areas for informed decision-making. Our team ensures every writer meets high academic standards. Assignment writer credentials include verified degrees and proven subject mastery.

Order | Check Discount

Why trust us? Can you do my assignment?

College students want the best grades in their courses and that’s our FOCUS

Graduate Level Writers

Our team consists of outstanding writers who have specialized knowledge in specific subject areas and are scholars experienced in academic research;custom paper writing following assessment task, assignment brief and grading rubric criteria. They hold at least a graduate degree—230 with Masters and MSN qualifications, experts carefully selected and trained to ensure the best final paper quality of our work. .

College Students Prices

We’re dedicated to bringing on board top-notch writers who can provide excellent work at prices that make sense for college students; affordable papers for all the course subjects. Our goal? To give you the best bang for your buck without ever compromising on the quality of our essay writing services—or the content of your paper. We give special extra discounts for regular clients and also for long research papers, dissertations and capstone projects. #Don’t forget to use the DISCOUNT code in the COUPONS section of the order form before checking-out!.

100% Human Written

The Online Homework Ace Tutors service guarantees that our final work is 100% original, researched, and expertly human-written. Our professional academic writers craft every custom essay and research paper from scratch, ensuring your assignment is tailored to your exact instructions. We are committed to delivering plagiarism-free and AI-free work to each university/college student's 'write my paper' request. To uphold this promise, we check every draft for any possible instances of duplication, wrong citation, grammar errors, and artificiality before we send it to you. Thus, you can always rely on us to write genuine and high-standard content for your essay assignments.

How it works

When you trust to place an order with Sample Essays, here is what happens:

Complete the Order Form

Please fill out our order form completely, providing as much detail as possible in all the required fields.

Assignment of Writer

We carefully review your order and assign it to a skilled writer with the specific expertise needed to handle it. The writer then creates your content entirely from scratch.

Order in Progress and Submission

You, along with the support team and your assigned writer, communicate directly throughout the process. Once the final draft is delivered, you can either approve it or request edits, paraphrasing, or a complete revision.

Giving us Feedback(review our essay service)

Ultimately, we value your feedback on how your experience went. You can also explore testimonials from other clients. Additionally, you have the option to recommend or select your preferred writer for any future orders.

Write My Essay For Me