美女扒开腿免费视频_蜜桃传媒一区二区亚洲av_先锋影音av在线_少妇一级淫片免费放播放_日本泡妞xxxx免费视频软件_一色道久久88加勒比一_熟女少妇一区二区三区_老司机免费视频_潘金莲一级黄色片_精品国产精品国产精品_黑人巨大猛交丰满少妇

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)-大理旅游
    油炸竹蟲
    油炸竹蟲
    酸筍煮魚(雞)
    酸筍煮魚(雞)
    竹筒飯
    竹筒飯
    香茅草烤魚
    香茅草烤魚
    檸檬烤魚
    檸檬烤魚
    昆明西山國家級風景名勝區(qū)
    昆明西山國家級風景名勝區(qū)
    昆明旅游索道攻略
    昆明旅游索道攻略
  • 短信驗證碼平臺 理財 WPS下載

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

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

    美女扒开腿免费视频_蜜桃传媒一区二区亚洲av_先锋影音av在线_少妇一级淫片免费放播放_日本泡妞xxxx免费视频软件_一色道久久88加勒比一_熟女少妇一区二区三区_老司机免费视频_潘金莲一级黄色片_精品国产精品国产精品_黑人巨大猛交丰满少妇
    久久av无码精品人妻系列试探| 国产伦精品一区二区三区视频女| 日韩欧美黄色网址| 一区二区成人免费视频| 五月天综合视频| 国产欧美视频一区| 艳妇荡乳欲伦69影片| 中文字幕第4页| theav精尽人亡av| www国产视频| xxxx黄色片| 一级黄色录像视频| a在线视频播放观看免费观看| 亚洲一区二区自偷自拍| 精品无码在线视频| 素人fc2av清纯18岁| 国产精品扒开腿做爽爽爽a片唱戏 亚洲av成人精品一区二区三区 | 尤物在线免费视频| 亚洲毛片亚洲毛片亚洲毛片| 久久丫精品国产亚洲av不卡| www.17c.com喷水少妇| 星空大象在线观看免费播放| 91传媒理伦片在线观看| 亚洲熟女一区二区| 三上悠亚ssⅰn939无码播放 | 欧美做受高潮中文字幕 | 亚洲欧美高清在线| 催眠调教后宫乱淫校园| 成人做爰www看视频软件| 制服丝袜第二页| 白白色免费视频| 欧美日韩生活片| 精品一区在线观看视频| 精品国产免费久久久久久婷婷| wwwxx日本| 成年人网站免费在线观看| 午夜在线观看一区| 超碰手机在线观看| 182在线视频| 日本爱爱爱视频| 538任你躁在线精品视频网站| 妖精视频一区二区| 免费观看a级片| 先锋资源在线视频| 五月天精品视频| 国产又黄又嫩又滑又白| 欧美黄色一级生活片| 亚洲天堂黄色片| 国产熟妇搡bbbb搡bbbb| 欧美肥妇bbwbbw| 黄色片视频免费观看| 99久久精品久久亚洲精品| 中国老熟女重囗味hdxx| 午夜时刻免费入口| 亚洲国产精品第一页| 亚洲欧美va天堂人熟伦 | 久久亚洲无码视频| 男男一级淫片免费播放| 亚洲色图27p| 久久亚洲AV成人无码国产野外| 欧洲猛交xxxx乱大交3| 加勒比一区二区| 国产女主播在线播放| 日本中文在线视频| 性少妇bbw张开| 中文字幕一区二区三区人妻在线视频 | avtt中文字幕| 国产又粗又黄又猛| 中文字幕日韩三级片| 在线观看你懂的视频| 欧美性x x x| 手机看片国产日韩| 亚洲码无人客一区二区三区| 色婷婷精品久久二区二区密| 波多野吉衣在线视频| 中文字幕手机在线观看| 日韩在线一卡二卡| 黑人狂躁日本娇小| 香蕉视频久久久| 欧美三级视频网站| 欧美另类69xxxx| 少妇太紧太爽又黄又硬又爽小说| www.久久av| 亚洲AV无码片久久精品| 亚洲永久精品ww.7491进入| 无码人妻精品一区二区三区温州| 少妇户外露出[11p]| theav精尽人亡av| 欧美 日韩 国产 成人 在线观看| 中文字幕国产专区| 国产欧美小视频| 日本 欧美 国产| 被黑人猛躁10次高潮视频| 在线观看欧美一区二区| 国产高清成人久久| 久久美女免费视频| 777777国产7777777| 日韩黄色一区二区| 中文字幕一区二区三区人妻| 丁香激情五月少妇| 国产又粗又猛又爽又黄| 好吊一区二区三区视频| 精品人妻无码一区| 五月天av网站| 精品少妇一区二区三区免费观| 一二三四在线观看视频| 免费看91视频| 少妇精品一区二区| 老司机深夜福利网站| 风韵丰满熟妇啪啪区老熟熟女| 9.1在线观看免费| 亚洲精品国产精品国自| 在线播放av网址| 一级片黄色录像| www.17c.com喷水少妇| jizz中文字幕| 黄色录像a级片| 一级黄色片日本| 国产精品无码一区二区三区| 久久99久久99精品免费看小说| 88av在线播放| 国产精品久久久精品四季影院| 亚洲第九十七页| 日本中文字幕有码| 二区三区四区视频| 制服 丝袜 综合 日韩 欧美| 日韩视频中文字幕在线观看| 精品人妻一区二区三区蜜桃视频| 久久久久国产精品无码免费看| 色婷婷av777| 黄色片视频免费观看| 韩国三级在线播放| 国产性生活大片| 免费观看特级毛片| 在线观看福利片| 色噜噜在线观看| 玖草视频在线观看| 波多野结衣影院| 欧美夫妇交换xxx| 一本色道久久hezyo无码| 丰满少妇被猛烈进入一区二区| 激情高潮到大叫狂喷水| 免费成人深夜天涯网站| 精品无人区无码乱码毛片国产| 一区二区三区少妇| 亚洲狠狠婷婷综合久久久久图片| 手机在线成人av| 视频免费在线观看| 怡红院一区二区| 亚洲 欧美 日韩在线| 伊人网综合视频| www.啪啪.com| 国产男女猛烈无遮挡a片漫画 | 7788色淫网站小说| 少妇精品一区二区三区| 中文字幕免费高清| 99久久久无码国产精品不卡| 中文字幕第69页| 午夜69成人做爰视频| 在线观看xxx| 中文字幕无人区二| 欧美成人三级伦在线观看| 欧美熟妇一区二区| 麻豆一区在线观看| 成年人av电影| 私密视频在线观看| 丁香六月激情综合| 国产视频123区| 色悠悠在线视频| 波多野结衣av在线免费观看| 摸摸摸bbb毛毛毛片| 2021亚洲天堂| 人妻少妇无码精品视频区| 中文字幕18页| 人妻体内射精一区二区| 亚洲综合视频网站| 国模私拍在线观看| 极品蜜桃臀肥臀-x88av| 国产伦理在线观看| 在线视频第一页| 娇妻高潮浓精白浆xxⅹ| 手机毛片在线观看| 亚洲国产日韩在线一区| 成人免费看aa片| 日本黄色小说视频| 亚洲一区 欧美| 丰满少妇xbxb毛片日本| 成年人视频软件| 波多野结衣先锋影音| 精品亚洲乱码一区二区| 99久久久久久久久久| 中文字幕第六页| 国产wwwwxxxx| 性欧美精品中出| 好吊色视频一区二区三区| 国产精品免费在线视频| 中文字幕一区三区久久女搜查官| 娇小11一12╳yⅹ╳毛片| av男人的天堂av| 国产麻豆天美果冻无码视频 |