Question: We just start to learn javaFX, please write the code clearly, then I can learn from it, thank you so much. CS-2012: Introduction to Programming
CS-2012: Introduction to Programming II Homework 08: JavaFX Basics General Directions: Please read very carefully for each assignment! Programs must be uploaded to CSNS before the due date and time. No late submissions. No email submission. . Programs must meet all requirements. (No Credit) for programs which do not use Object Oriented Programming techniques . (No Credit) for programs which do not make proper use of methods and other techniques learned from CS-2011 . (No Credit) for program written entirely in the same java file. . See syllabus for additional grading criteria. General Description: For this assignment you will practice the JavaFX techniques shown in class this week. Please put each problem into a separate java file. Please use package name hw8. For this assignment you are NOT allowed to show any console output. Problem 01: Random Cards (1 point) Download images for a deck of cards here. Have your program randomly choose seven cards and display them in a JavaFX window. All seven cards should be displayed in the same window. The card images should be stored in a folder called cards, in your project. Problem 02: Funny Faces (1 point) Using the JavaFX Shapes library, draw and display a funny face. The face should be on a head, and should have eyes, nose, mouth, and any other features you would like to add. Be creative, but please keep things school appropriate. Problem 03: Maddening Matrices (2 points) For this problem you will need to request some user information. You may NOT use the console to do this. I suggest taking a look at the JOptionPane class in the Java API. Ask the user for the size of an n x n matrix (rows and cols are equal). Display a picture like the one below with the following requirements: . The picture must have n rows and n columns of squares based on the user input. The color of each square must be randomly generated. o The alpha channel of each color (transparency value) must be a random value between 0.50 and 1.0 . Each square must also be randomly rotated a number of degrees between 0 and . The length of the sides of each square should be randomly generated and be a . Each square should be numbered from 1 to n*2 starting at the top, numbering . Each number should have a random color with no transparency (alpha channel . Each number should be rotated a random number of degrees between 0 and 360. value between 25 and 75 pixels. from left to right, top to bottom. value of 1.0)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
