博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
CW3 Clarifications
阅读量:5870 次
发布时间:2019-06-19

本文共 3270 字,大约阅读时间需要 10 分钟。

CW3 Clarifications
We have had many questions about CW3 this week. Here are the answers to some common problems:
many of you are making it too difficult and are thinking about it too much! We will update this if there
are more questions.
First point: if you have done any of the things outlined below, and it works ok, then leave it.
Flower size: the user does not choose this. It is set by your program.
AddFlowerbed: this is one single process, which asks the user to input x, y, width, height, and
choose the flowers and pattern (if they want a pattern). You then know the flowerbed size, and
the flower size, so you can calculate the number of rows and columns, number of flowers, and
layout the flowerbed. The flowerbed will be displayed, full of flowers. It never changes.
This means you never need to add single flowers. After a bed is displayed on screen, it can be
removed, but it never needs to change. If a flowerbed is 500x400, and your flowers are 25x25,
your flowerbed will be 20x16, and display 320 flowers. If the flowerbed has no pattern, you can
create an arraylist of 320 flowers and give it to the flowerbed.
The user does not choose the background image for the flowerbed. This path can be coded in
your flowerbed class.
If the user chooses a pattern of three different colours/flowers, they do not have to choose
which ones. Your program can give them any three. (If you have made it so the user can choose,
that is fine).
Remember, you can still get very good marks with no patterns. Or with a simple pattern of
vertical or horizontal stripes, and only two colours. It is much better to submit a simpler
program that works properly!
If you need to make your flowers have a transparent background, you can set
this.setOpaque(false) in the appropriate constructor
If your flowerbeds overlap, it does not matter. You do not need to check if the flowerbeds
overlap each other
Many of you are developing very complex patterns. You do not need to worry about the
complexity of the patterns. A choice of 2, plain and a pattern, is acceptable
? Can i put the information in two different txt files, like one stores the information about flowers
and the other stores the information about flowerbed? It can load the images upon opening the
project just like the one-file's one – Yes!
Should I submit a netbeans project zip + four TXT files (my java class files)+ a word file
containing uml diagrams? Yes

CW3留学生作业代做、代做java编程作业、代写java课程设计作业、Clarifications作业代写

'do I need a such-and-such class?':
You should have a number of classes, each class serving one purpose. Classes often represent
the functions of real-world objects. But you can choose the real-world objects that you wish to
represent.
Does your Garden need objects for flowerbeds? What would they do?
Does your Garden need objects for flowers? What would they do?
Does your Garden need any utility classes? To provide what services?
Generally, your main class (and main method) should be as small as possible (very few methods)
but control everything. All messages pass through main. And most methods should be grouped
together in other classes representing the objects of your application.

 

因为专业,所以值得信赖。如有需要,请加QQ99515681 或邮箱: 

微信:codinghelp

转载于:https://www.cnblogs.com/whatisthephp/p/10289371.html

你可能感兴趣的文章
网页分享插件
查看>>
让eclipse有jquery自动提示
查看>>
clang 3.9.1 centos 7 编译安装
查看>>
JVM的持久代——何去何从?
查看>>
iOS开发中First Responser,protocol实现的deleagere,通知机制的设计
查看>>
一,撸基础篇系列,JAVA的那些数据结构应用
查看>>
VCRadioButton
查看>>
DSFavIconManager
查看>>
TCTweetComposeViewController
查看>>
eclipse 中修改 M2_REPO的值(转)
查看>>
开源 免费 java CMS - FreeCMS-标签 link
查看>>
FreeCMS视频教程 栏目信息访问权限设置
查看>>
Android硬件抽象层(HAL)深入剖析(二)
查看>>
I2C总线传输协议
查看>>
Git的原理简介和常用命令
查看>>
各种距离(Distance)
查看>>
性格影响命运
查看>>
Mysql Explain分析
查看>>
如何解决基本的 TCP/IP 问题
查看>>
nginx 学习笔记(6) nginx配置文件中的度量单位
查看>>