精品深夜AV无码一区二区_伊人久久无码中文字幕_午夜无码伦费影视在线观看_伊人久久无码精品中文字幕

CS1083代做、代寫Java設(shè)計(jì)編程

時(shí)間:2024-03-03  來源:  作者: 我要糾錯(cuò)



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.
請(qǐng)加QQ:99515681  郵箱:99515681@qq.com   WX:codehelp 










 

標(biāo)簽:

掃一掃在手機(jī)打開當(dāng)前頁(yè)
  • 上一篇:代寫代做Project 3 - CanvasList CS 251
  • 下一篇:代做CS252編程、代寫C++設(shè)計(jì)程序
  • 無相關(guān)信息
    昆明生活資訊

    昆明圖文信息
    蝴蝶泉(4A)-大理旅游
    蝴蝶泉(4A)-大理旅游
    油炸竹蟲
    油炸竹蟲
    酸筍煮魚(雞)
    酸筍煮魚(雞)
    竹筒飯
    竹筒飯
    香茅草烤魚
    香茅草烤魚
    檸檬烤魚
    檸檬烤魚
    昆明西山國(guó)家級(jí)風(fēng)景名勝區(qū)
    昆明西山國(guó)家級(jí)風(fēng)景名勝區(qū)
    昆明旅游索道攻略
    昆明旅游索道攻略
  • 短信驗(yàn)證碼平臺(tái) 理財(cái) WPS下載

    關(guān)于我們 | 打賞支持 | 廣告服務(wù) | 聯(lián)系我們 | 網(wǎng)站地圖 | 免責(zé)聲明 | 幫助中心 | 友情鏈接 |

    Copyright © 2025 kmw.cc Inc. All Rights Reserved. 昆明網(wǎng) 版權(quán)所有
    ICP備06013414號(hào)-3 公安備 42010502001045

    精品深夜AV无码一区二区_伊人久久无码中文字幕_午夜无码伦费影视在线观看_伊人久久无码精品中文字幕
    <samp id="e4iaa"><tbody id="e4iaa"></tbody></samp>
    <ul id="e4iaa"></ul>
    <blockquote id="e4iaa"><tfoot id="e4iaa"></tfoot></blockquote>
    • <samp id="e4iaa"><tbody id="e4iaa"></tbody></samp>
      <ul id="e4iaa"></ul>
      <samp id="e4iaa"><tbody id="e4iaa"></tbody></samp><ul id="e4iaa"></ul>
      <ul id="e4iaa"></ul>
      <th id="e4iaa"><menu id="e4iaa"></menu></th>
      久久久精品一区二区涩爱| 亚洲日本中文字幕在线| 日韩av一区二区在线播放| ass极品水嫩小美女ass| 无码人妻精品中文字幕| 美女视频黄免费| 国产在线不卡av| 成人午夜精品无码区| 最近中文字幕一区二区| 五月天激情播播| 久久婷婷综合色| 久久久久精彩视频| 久久久久久久久久影院| 久久久久人妻一区精品色欧美| 国产一区二区三区视频播放| 99久久人妻无码精品系列| 一区二区三区视频免费看| 亚洲 欧美 视频| 无码人妻精品一区二区三区99不卡| 欧美成人久久久免费播放| 久久国产精品波多野结衣| 黄色一级片免费在线观看| 国产无套粉嫩白浆内谢| 国产精品免费在线视频| 国产精品视频一区在线观看| 亚洲永久精品在线观看| 亚洲无码久久久久久久| 在线免费黄色av| 一本一本久久a久久| 亚洲免费激情视频| 亚洲视频在线不卡| 一本久道久久综合无码中文| 亚洲欧美va天堂人熟伦| 999精品在线视频| 国产精品一级二级| 国产亚洲精品女人久久久久久| 国产情侣在线播放| 久久亚洲天堂网| 五月婷婷六月香| 中文字幕在线有码| 中文字幕永久在线观看| 17c国产在线| 国内精品福利视频| 免费一级片在线观看| 手机av在线网| 99久久99久久精品免费| 国产乱国产乱老熟| 欧美久久久久久久久久久久| 五月天婷婷丁香网| www国产视频| 青草草在线视频| 中文字幕乱码av| 成人乱码一区二区三区av| 精品无码一区二区三区的天堂| 日韩福利小视频| 天天干天天摸天天操| 一级特黄aaa大片| 久久久久无码精品| 午夜精品福利在线视频| 97久久人国产精品婷婷| 久久99精品波多结衣一区| 天天操天天摸天天舔| www.狠狠爱| 日韩欧美不卡视频| 国产成人精品一区二区在线小狼| 人妻 日韩 欧美 综合 制服| 一级特黄aaa大片| 欧美老熟妇一区二区三区| 中文字幕永久在线观看| 国产一区二区在线观看免费视频| 人妻va精品va欧美va| 91精品国产闺蜜国产在线闺蜜| 蜜桃av乱码一区二区三区 | 后入内射无码人妻一区| 性欧美一区二区| 乱码一区二区三区| www精品国产| 性色国产成人久久久精品| 国产人成视频在线观看| 一区二区三区 欧美| 久草网站在线观看| 国产 欧美 精品| 午夜黄色福利视频| 精品国产午夜福利在线观看| 99超碰在线观看| 中文字幕一区二区免费| 强伦人妻一区二区三区| 国产在线观看黄色| jizz国产在线观看| 中文字幕在线国产| 亚洲av综合色区无码另类小说| 欧美自拍第一页| 精品国产18久久久久久| av免费观看在线| 91成人国产综合久久精品| 中文人妻一区二区三区| 视频一区二区免费| 日韩av在线天堂| 黄色一级大片在线免费看国产一 | 国产一二三四区在线| 亚洲专区在线播放| 亚洲精品乱码久久久久久不卡 | 亚洲欧美日韩一级| 五月婷婷在线播放| 婷婷伊人五月天| 人妻少妇精品一区二区三区 | 精品国产xxx| 国产综合精品视频| 国产成人三级在线播放 | 性欧美丰满熟妇xxxx性久久久| 免费又黄又爽又猛大片午夜| 国产精品成人久久久| а天堂中文在线资源| av永久免费观看| 丰满少妇高潮在线观看| 丰满少妇乱子伦精品看片| 91在线视频在线观看| 亚洲精品视频网| www男人的天堂| 高清一区在线观看| 国产美女永久免费无遮挡| 国产欧美日韩成人| 免费观看特级毛片| 日本天堂中文字幕| 一区二区三区 日韩| 亚洲精品乱码久久久久久蜜桃欧美 | 国产精品第七页| 国产精品一区二区人人爽| 国模私拍一区二区| 久久精品免费网站| 欧美人妻一区二区| 微拍福利一区二区| 91免费在线看片| 国产综合内射日韩久| 久久av一区二区三| 熟妇高潮精品一区二区三区| 亚洲精品午夜久久久久久久| 亚洲精品无码久久久| 91中文字幕在线视频| 国产免费不卡视频| 欧美一区二区三区激情| 亚洲国产果冻传媒av在线观看| 国产精品露脸视频| 欧美成人精品一区二区免费看片| 天天爱天天操天天干| 97精品人妻一区二区三区| 好吊色一区二区三区| 亚洲成人手机在线观看| 国产91麻豆视频| 天堂在线观看视频| 99热精品在线播放| 人妻激情偷乱视频一区二区三区| 亚洲三区在线观看无套内射| 国产色片在线观看| 伊人久久一区二区三区| 国产永久免费视频| 亚洲国产www| 欧美色视频一区二区三区在线观看| 亚洲精品国产精品乱码 | 欧美日韩精品在线观看视频| 亚洲第一狼人区| 后入内射欧美99二区视频| 一区视频免费观看| 精品人妻伦一二三区久久| 中文字幕一区二区三区人妻电影| 久久久久久不卡| www.天天射.com| 永久免费未满蜜桃| 男人的天堂一区| 国产又黄又粗的视频| 在线视频一二区| 日本三级一区二区三区| 丰满少妇被猛烈进入一区二区 | 国产日韩欧美中文字幕| 香蕉av在线播放| 欧美午夜精品一区二区| 成人在线手机视频| 中文字幕欧美色图| 青娱乐国产精品视频| 国产裸体无遮挡| 99精品全国免费观看| 无码人妻av一区二区三区波多野| 精品人伦一区二区| 国产黄色av网站| 亚洲人人夜夜澡人人爽| 日韩在线不卡一区| 欧美 日韩 国产 精品| 韩国中文字幕hd久久精品| 高潮毛片无遮挡| www.99热| 成人午夜精品视频| av大片在线免费观看| 亚洲一区二区三区四区五区| 天天综合网久久综合网| 人妻 日韩精品 中文字幕| 久久人人爽人人人人片| 精品人妻人人做人人爽夜夜爽| 国产aⅴ爽av久久久久成人| 亚洲视频在线观看一区二区| 五月天综合激情网|