狠狠综合久久久久综合网址-a毛片网站-欧美啊v在线观看-中文字幕久久熟女人妻av免费-无码av一区二区三区不卡-亚洲综合av色婷婷五月蜜臀-夜夜操天天摸-a级在线免费观看-三上悠亚91-国产丰满乱子伦无码专区-视频一区中文字幕-黑人大战欲求不满人妻-精品亚洲国产成人蜜臀av-男人你懂得-97超碰人人爽-五月丁香六月综合缴情在线

CS1083代做、代寫Java設計編程

時間:2024-03-03  來源:  作者: 我要糾錯



Module 9 Assignment
Worth 2% of your total course grade
CS1083 – Introduction to Computer Programming II (in Java)
Online Open Entry Version
Instructor: Andrew McAllister
Assignment Objectives
The purpose of this assignment is to give you practice:
• working with linked lists
General Instructions for All Assignments
• Follow the instructions in the document "Java Coding Guidelines.pdf" available
within the "Start Here" module, under the "Assignments" topic.
• For each .java file you create, include a javadoc comment (one that begins with
/**) at the beginning of the file that describes that Java class. This comment block
should include a line that begins with @author followed by your name and
student number on the same line. (Note: inclusion of this comment is part of the
instructions given in "Java Coding Guidelines.pdf")
• Include comments throughout your programs to explain any non-obvious portions
of your code.
• It is recommended that you create a separate folder on your computer for each
assignment. You might even wish to create separate sub-folders within an
assignment folder if the assignment has multiple parts. Keeping your work
organized makes it easier to find things later when you want to review what you
have done.
• Few things in life are more frustrating than losing your work while working on an
assignment. Get in the habit of saving frequently when working on an
assignment. Also, regularly make backup copies of any files you create as part of
your work for this course.
Assignment Guide
• Feel free to email your instructor if you need help in completing an assignment.
When you do so, please attach to the email a copy of *all* files required to
compile and run the program you are asking about, even if you downloaded
those files from D2L. (Otherwise the instructor will have to figure out what files
are missing and then go looking for them. Make it convenient to help you.) Also
describe the problem you are encountering and the specific help you would like
to receive.
• Submitting your assignment involves creating a pdf file and uploading that single
file to the assignment drop box on D2L. In general, that file will tend to include all
Java code you wrote for the assignment, plus any output from running your
programs that the assignment instructions specify you should capture. Specific
submission instructions are included at the end of each assignment.
• To create the pdf file for each assignment, begin by opening a new document
using the word processing program of your choice. Save the document using the
name “Your Name CS1083 Module x Assignment Submission.docx” Replace x
with the correct module number. “docx” may be different depending on which
word processing software you choose to use.
• If you don’t already have a word processor, UNB students are able to use
Microsoft Office 365 (includes Microsoft Word) for free, which can be accessed
by logging in to MyUNB.
• At the beginning of your submission document enter your name, your student
number, CS1083, the assignment name (this one is “Module 2 Assignment”), and
the date. It doesn’t matter if the date is when you started working on the
assignment or when you submit it – either will do.
• You can add content to your submission document as you work on the various
questions in the assignment. Clearly label each part of the assignment (“Part A”
etc.) in your document. Be sure to save frequently as you work on this document.
• When your document is complete, save / export it as a pdf file. Always make sure
your pdf file opens properly before uploading it.
• To include Java code in your submission document, copy all the text in your .java
file and then paste that text into your submission document. Use a monospaced
font (e.g.: Consolas , Courier ) for your code to maintain proper indentation.
Submitting code without proper indentation will result in marks being deducted.
It’s not enough that your code is indented in your text editor or in your integrated
programming environment – the indentation must show up that way in your
submission document as well. This sort of thing is part of learning to be an IT
professional.
• To include output from running your program in your submission document, the
preferred method is to copy and paste the text from your command prompt
window. Include the line with the “java” command you used to run your program.
 If the text shows up as a weird font or colour in your submission document,
first paste the text into a blank text editor document, then copy and paste from
there into your Microsoft Word submission document. This will remove all
formatting from the text.
 Use a monospaced font (e.g.: Consolas , Courier ) for output text in your
Word document. This will maintain alignment of your output.
• If at all possible, each line of code and each line of output should appear on a
single line in your submission document. Avoid allowing lines to “wrap” around
onto the next line. Use the tips provided in the “Avoiding Wrapped Lines” section
on the next page to accomplish this.
• To copy text from your command prompt window, try selecting the desired text
and then pressing either command-c (Mac) or control-c (Windows or Linux). If
you have issues, you can always use Google to see how to do this on your
specific type of computer.
• If a program involves graphical output (such as a JavaFX GUI program), capture
a screen shot of the output and include that as a picture / image in your
submission document.
 Make sure the image includes only the relevant portion of the screen (such
as a GUI window). Capturing an image of your entire computer screen often
makes the relevant portion too small to see, with tiny text that is difficult to read.
This makes your assignment submission difficult to grade.
• To capture a screen shot of a selected portion of your screen, try command-shift4 (Mac), WindowsKey-shift-s (Windows), or shift-PrtScrn (Linux).
Avoiding Wrapped Lines
In the following example, the lines of code containing the comment and the println
statement are both too long. The text is formatted so those lines can't fit all on one line
in this document. This obscures the indentation and makes the code more difficult to
read.
import java.util.Scanner;
public class WrapExample
{ public static void main(String[] args)
{ double pay = hours * wage;
int dollars = (int) pay;
int pennies = (int) ((pay - dollars) * 100.0);
// First all * and / operations are performed, left to
right, then all + and - operations, left to right
System.out.println("nThe pay for " + name + " is " +
dollars + " dollars and " + pennies + " cents.n");
} // end main method
} // end class
Below is the same code, but reformatted so none of the statements wrap around onto
the next line. Several changes were made:
1. The font size (in the Word document) is changed to a smaller size,
2. The tab size (in the Word document) is reduced
3. The longer statements and long comments are broken up onto multiple lines (do
this in your text editor, in the .java file), and
4. If need be, you can change the orientation of your Word document from Portrait
to Landscape
Now the indentation of the code within the main method is easier to see.
import java.util.Scanner;
public class WrapExample
{ public static void main(String[] args)
{ double pay = hours * wage;
int dollars = (int) pay;
int pennies = (int) ((pay - dollars) * 100.0);
// First all * and / operations are performed, left to right
 // Then all + and - operations, left to right
System.out.println("nThe pay for " + name + " is " + dollars
 + " dollars and " + pennies + " cents.n");
} // end main method
} // end class
Instructions – Part A – A Linked List of Numbers
The following files are provided for download earlier in this module:
• Node.java – A simple class for linked list nodes, where each node contains a
person’s name as a String.
• LinkedList.java – Contains some simple functionality for managing a linked
list of Node objects.
• ListTest.java – Performs simple testing for some of the functionality in the
LinkedList class.
All three of these classes will be updated as part of this assignment.
Update the Node class to store one int value in each Node instance, rather than a
name.
Update the LinkedList class to be consistent with your updated Node class.
Write a new testing class that does the following:
1. Create a new (empty) list using your updated LinkedList class.
2. Call the display method to display that empty list.
3. Use the insertInOrder() method to insert six randomly selected numbers between
1 and 49. Use the Random class to help generate each of those six numbers.
4. Call the display method to display your linked list of six numbers.
Include in Part A of your submission document:
• Complete code for Node.java, LinkedList.java, and your new testing class.
• Output from running your testing class twice.
Instructions – Part B – A Doubly Linked List of Numbers
1. Turn your updated list from Part A into a doubly linked list so Nodes are linked in
both directions, forward and backward. This entails:
• Adding a “previous” pointer to each Node object, along with getPrevious() and
setPrevious() methods in the Node class;
• Adding a “tail” pointer in the LinkedList class, along with a getTail() method;
and
• Updating whatever existing methods in the LinkedList class should be
changed so the values of “tail” and the “previous” pointers will be maintained
appropriately during all actions on the LinkedList.
2. Add a new instance variable called “size” to the LinkedList class. This variable must
keep track of the number of Nodes in the list at all times.
• Update the LinkedList constructor to set this variable appropriately when a
new list is created.
• Add a getSize() method that accesses the value of this variable. (Note: It
would not be appropriate to have a mutator method for this variable.)
• Update whatever existing methods in the LinkedList class should be changed
so the value of “size” will be maintained appropriately during all actions on the
LinkedList.
3. Add the following methods to the LinkedList class. Make sure all instance variables
in the Node and LinkedList classes are handled appropriately by these methods:
• insertAtHead(int num) – Inserts a new Node with the given number at the
beginning of the list. There is no need to check whether this operation keeps
the list in sorted order, nor is there any need to check whether this operation
results in duplicate numbers in the list.
• insertAtTail(int num) – Inserts a new Node with the given number at the end
of the list. There is no need to check whether this operation keeps the list in
sorted order, nor is there any need to check whether this operation results in
duplicate numbers in the list. (NOTE: This method should not include a loop.)
• removeAtHead() – removes the first Node in the list. Returns true if
successful, false otherwise (which should only happen when attempting to
removeAtHead() from an empty list).
• removeAtTail() – removes the last Node in the list. Returns true if successful,
false otherwise (which should only happen when attempting to removeAtTail()
from an empty list). (NOTE: This method should not include a loop.)
Update your testing class from Part A to test your updated Node and LinkedList classes
as follows:
1. Keep the four testing steps described in Part A (displaying the empty list, adding
and displaying six random numbers, etc.)
2. Use insertAtHead() to insert a randomly selected number between -100 and -50
at the head of the list. (The list should now contain seven nodes.)
3. Use insertAtTail() to insert a randomly selected number between 50 and 100 at
the tail of the list. (The list should now contain eight nodes.)
4. Call the display method to display your linked list of eight numbers.
5. Loop to call removeAtHead() three times.
6. Loop to call removeAtTail() three times.
7. Call the display method to display your linked list of what should now be two
numbers.
Include in Part B of your submission document:
• Complete code for your updated Node.java, LinkedList.java, and your updated
testing class.
• Output from running your updated testing class twice.
Instructions – Part C – An Updated LotteryTicket Class
Copy all the classes you wrote for the Module 2 Assignment to a new directory.
The LotteryTicket class you created for the Module 2 Assignment includes an array of
six randomly selected numbers between 1 and 49, without duplicates.
Update this LotteryTicket class to replace that array with a linked list of six randomly
selected numbers between 1 and 49, without duplicates. Use the Node and LinkedList
classes you updated for Part B to accomplish this.
This includes updating the following components of the LotteryTicket class:
• The constructor
• getNumbers()
• toString()
• chooseRandomNumbers()
• duplicateNumber(int i)
• countWinningNumbers(LinkedList winningNumbers)
The getWinningNumbers() method of the LotteryDraw class will also need to be
updated to return a reference to a LinkedList object rather than an array reference.
Test to make sure the LotteryDrawTest class you wrote for the Module 2 Assignment
still works with your updated LotteryTicket and LotteryDraw classes.
Include in Part C of your submission document:
• Complete code for your updated LotteryTicket and LotteryDraw classes.
• Output from running LotteryDrawTest twice.
Submission Instructions
Include the following in your submission document:
Your name, student number, CS1083, Module 9 Assignment, and the date.
Complete source code and testing output for each of Sections A, B, and C as
described above.
D2L DROPBOX SUBMISSION INSTRUCTIONS
Upload only one pdf file to D2L. Do not upload separate files (such as your .java
files) as they will be ignored. Upload your submission document as follows:
1. In the top-navigation bar on the course screen, select 'Assessments' and then
'Assignments'.
2. Select the assignment title and follow the instructions to upload your submission
document.
請加QQ:99515681  郵箱:99515681@qq.com   WX:codehelp 










 

標簽:

掃一掃在手機打開當前頁
  • 上一篇:代寫代做Project 3 - CanvasList CS 251
  • 下一篇:代做CS252編程、代寫C++設計程序
  • 無相關信息
    昆明生活資訊

    昆明圖文信息
    蝴蝶泉(4A)-大理旅游
    蝴蝶泉(4A)-大理旅游
    油炸竹蟲
    油炸竹蟲
    酸筍煮魚(雞)
    酸筍煮魚(雞)
    竹筒飯
    竹筒飯
    香茅草烤魚
    香茅草烤魚
    檸檬烤魚
    檸檬烤魚
    昆明西山國家級風景名勝區
    昆明西山國家級風景名勝區
    昆明旅游索道攻略
    昆明旅游索道攻略
  • NBA直播 短信驗證碼平臺 幣安官網下載 歐冠直播 WPS下載

    關于我們 | 打賞支持 | 廣告服務 | 聯系我們 | 網站地圖 | 免責聲明 | 幫助中心 | 友情鏈接 |

    Copyright © 2025 kmw.cc Inc. All Rights Reserved. 昆明網 版權所有
    ICP備06013414號-3 公安備 42010502001045

    狠狠综合久久久久综合网址-a毛片网站-欧美啊v在线观看-中文字幕久久熟女人妻av免费-无码av一区二区三区不卡-亚洲综合av色婷婷五月蜜臀-夜夜操天天摸-a级在线免费观看-三上悠亚91-国产丰满乱子伦无码专区-视频一区中文字幕-黑人大战欲求不满人妻-精品亚洲国产成人蜜臀av-男人你懂得-97超碰人人爽-五月丁香六月综合缴情在线
  • <dl id="akume"></dl>
  • <noscript id="akume"><object id="akume"></object></noscript>
  • <nav id="akume"><dl id="akume"></dl></nav>
  • <rt id="akume"></rt>
    <dl id="akume"><acronym id="akume"></acronym></dl><dl id="akume"><xmp id="akume"></xmp></dl>
    天天干天天av| 男女高潮又爽又黄又无遮挡| 3d动漫一区二区三区| 色哺乳xxxxhd奶水米仓惠香| 天天干天天操天天做| 97在线免费公开视频| 男人添女人下面高潮视频| 成人一区二区av| 久草视频这里只有精品| 成人一级生活片| 亚洲熟妇av日韩熟妇在线| 人妻熟妇乱又伦精品视频| 日本三级免费观看| 北条麻妃在线观看| 欧美婷婷精品激情| 国产不卡的av| 国产免费一区二区视频| 91黄色小网站| 波多野结衣三级在线| 天天想你在线观看完整版电影免费| 一级片黄色免费| 亚洲理论电影在线观看| 成人免费观看视频在线观看| 色综合色综合色综合色综合| 色偷偷中文字幕| 成人免费aaa| 亚洲精品自拍网| 国产尤物av一区二区三区| 日本成年人网址| 中文字幕第66页| 99精品免费在线观看| 精品国产鲁一鲁一区二区三区| 人妻激情另类乱人伦人妻| avav在线看| 奇米777四色影视在线看| 欧美 日韩 国产在线观看| 一级黄色特级片| 少妇高潮喷水在线观看| 亚洲18在线看污www麻豆| 成人一区二区免费视频| 三级a三级三级三级a十八发禁止| 日韩一级免费看| 三级性生活视频| 国产美女三级视频| 国产91在线亚洲| 色播五月激情五月| 亚洲熟妇av一区二区三区| 懂色av粉嫩av蜜臀av| 天天综合网久久| 丰满少妇被猛烈进入高清播放| 欧美日韩午夜爽爽| 一级片黄色免费| 91 视频免费观看| 在线免费av播放| 成人在线观看黄| 国产l精品国产亚洲区久久| 黄色一级片黄色| 手机在线视频你懂的| 亚洲精品免费一区亚洲精品免费精品一区| 女性女同性aⅴ免费观女性恋| 强开小嫩苞一区二区三区网站| 污污的网站免费| 日本免费观看网站| 超碰网在线观看| 虎白女粉嫩尤物福利视频| 免费一级特黄毛片| 日本丰满少妇xxxx| 国产伦精品一区二区三区四区视频_| 青娱乐精品在线| 黄色a级三级三级三级| 国产精品jizz在线观看老狼| 成人不卡免费视频| 国产高清999| 男人天堂成人网| 国产午夜福利在线播放| 日韩avxxx| 成人精品小视频| 天天久久综合网| 无尽裸体动漫2d在线观看| 亚洲黄色av片| 欧美日韩黄色一级片| 欧美国产日韩另类| 第四色婷婷基地| 久久精品影视大全| 日韩在线不卡一区| 中文字幕久久av| 免费观看国产视频在线| 最新天堂在线视频| 91嫩草国产丨精品入口麻豆| dy888午夜| 国产成人无码精品久久久性色| 久久久久久久久影视| 国产制服91一区二区三区制服| 免费日韩在线观看| 97av视频在线观看| 国产九九九视频| 久久国产成人精品国产成人亚洲| 激情伊人五月天| 日韩不卡一二三| 日韩中文在线字幕| 欧美日韩一区二区在线免费观看| 日韩欧美黄色大片| 最新av在线免费观看| 日韩中文字幕在线免费| 天天影视综合色| www.欧美黄色| 日韩精品免费播放| 日韩在线视频在线| 亚洲色图久久久| 国产www免费| 在线观看日本www| 国产男女免费视频| 性做爰过程免费播放| 四季av一区二区| 免费人成自慰网站| 奇米777在线视频| 妞干网在线免费视频| 亚洲天堂第一区| 日本肉体xxxx裸体xxx免费| 成人在线免费观看视频网站| 久久婷婷国产91天堂综合精品| 成人小视频在线观看免费| 午夜激情影院在线观看| 妺妺窝人体色www在线小说| 亚洲爆乳无码精品aaa片蜜桃| 少妇一级淫免费放| 97在线免费公开视频| 国产美女主播在线| 欧美 国产 精品| 亚洲制服在线观看| 国产三级精品三级在线| 亚洲天堂2018av| av无码精品一区二区三区| 丰满爆乳一区二区三区| 国产玉足脚交久久欧美| 影音先锋成人资源网站| 亚洲一区二区三区四区精品| 欧美精品性生活| 免费精品99久久国产综合精品应用| 超碰97人人射妻| 精品www久久久久奶水| 无码人妻h动漫| 黄在线观看网站| 男人女人黄一级| 日本xxxx黄色| aaaaaaaa毛片| 欧美另类videosbestsex日本| 亚洲av综合色区| 免费网站在线观看视频| 2018国产在线| 亚洲人成无码www久久久| 国产一级片黄色| 中文字幕12页| 亚洲色欲久久久综合网东京热| 久久这里只有精品18| ww国产内射精品后入国产| 久久久一本二本三本| 香蕉视频禁止18| 五月天视频在线观看| 国产视频在线观看网站| 18禁免费无码无遮挡不卡网站| 无人在线观看的免费高清视频| 日本黄色福利视频| 日韩久久久久久久久久久久| 成人在线免费观看av| 亚洲a级黄色片| www.成年人视频| 亚洲不卡视频在线| 日本黄xxxxxxxxx100| 哪个网站能看毛片| 黄色污污在线观看| heyzo国产| 在线视频一二三区| 粉嫩虎白女毛片人体| 超碰在线超碰在线| 97在线播放视频| 亚洲一区 在线播放| 波多野结衣作品集| 欧美亚洲黄色片| 欧美精品久久96人妻无码| 给我免费播放片在线观看| 久热精品在线播放| 日韩中文字幕免费在线| 人妻av中文系列| 日韩最新中文字幕| 亚欧精品在线视频| 亚洲天堂国产视频| 亚洲一区在线不卡| 玩弄japan白嫩少妇hd| 99在线观看视频免费| 神马午夜伦理影院| 亚洲一级片免费观看| 日本人69视频| 中文字幕第21页| 成年人网站大全| 日本www高清视频| 日韩免费高清在线| 一区二区在线播放视频| 日本熟妇人妻中出| 亚洲精品20p|