Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Making an application in which a user can compose images using images that are already generated (as shown in the github code/video in prompt link).

Making an application in which a user can compose images using images that are already generated (as shown in the github code/video in prompt link).

MAPS AND LISTS

I have pictures of the code and a github with the code that needs to be modified

Please read whole post, thank you! :)

Link to GitHub Repository Code: https://github.com/kayh09/cse131a9

Link to Prompt: https://131text.coms/books/published/csjava/Module9-Maps/assignment.html

image text in transcribedimage text in transcribedimage text in transcribed
Assignment 9: Scene Composer Assignment Setup To create your repository go here. Then follow the same accept/import process described in the setup instructions. This assignment is fairly creative in that: 0 There is no unit test to guide your work 0 The manner in which your solution works is up to you, although there is a video of Prof. Cytron's solution 0 The application you develop here allows creation of artistic images Overview The idea is to develop an application in which a user {presentiy. just yourself) can compose images. Some of these images will be available already by names of your choosing. For example, the names f0, f1 , f9 represent 10 forest images that can be drawn on the screen. You will allow users to record a sequence of images, and then select a name for that sequence. so that the sequence itseif can be called up by its new name. There is no limit to the fun that can be had here, because new sequences can be created at will and recorded to be known by name. You can create your solution all in one main method as you did at the beginning of the semester. Or you can use objects as you have more recently been taught. How you construct your solution is up to you but it must meet the requirements stated below to earn credit. The code base provided to you draws images using somewhat transparent colors, so that if you draw the same image twice, its intensity increases. Reg uirements Before continuing. take a look at this video. To receive credit you must: 0 Use a Ma p to allow users to recall existing scenes and create new ones. 0 Use a List as needed to store a list of D rat-tables . Create an initial scene with multiple objects and store it under the name " init Prompt the user repeated for input {using A rg s P re ce 5 so r ). Properly clear the screen when c'Lea r is typed. Cease prompting the user when end is typed. Allow the recording of a sequence of D rawab'Les , and the subsequent recall of that sequence for display. Code base Before continuing, take a look at this video. Familiarize yourself with the code by watching the video and iooking at the ass 19 nmentg and contained packages. 0K! implement at least the features above and have fun with this! package assignment9; INP import java . util. Scanner; import assignment9. scenes . Bubbles; import assignment9 . scenes . Clear; import assignment9. scenes . Forest; import assignment9. scenes . Leaves; import edu. princeton. cs . introcs . StdDraw; 10 public class SceneComposer { 120 public static void main (String args) { 13 14 Scanner in = new Scanner (System. in) ; 15 // Note: Double Buffering is enabled! 16 You'll need to call show( ) to update the screen. In most cases you'll want to call show( ) after you've drawn something StdDraw. enableDoubleBuffering ( ) ; // for demo only, remove this code and write your own to do what is needed for this assignment while (true) { StdDraw. show( ) ; StdDraw. pause (10) ; for (int i=0; i to track scenes 10 pts 0 pts Full Marks No Marks 10 pts Student can explain what their map is used for within the program 10 pts 0 pts When are entries added to the map? When are entries retrieved from the map? Full Marks No Marks 10 pts Uses a List to keep track of Drawables for a given scene 10 pts 0 pts Full Marks No Marks 10 pts Student can explain the usage of their List 10 pts 0 pts Full Marks No Marks 10 pts When are items added to this list? How does it interact with the map? Program starts with an initial scene called "init" 10 pts 0 pts Init should not be blank, it should contain some drawables Full Marks No Marks 10 pts Program clears the screen when "clear" is entered 5 pts 0 pts Full Marks No Marks 5 pts Program ends when "end" is typed in 5pts )pts Full Marks No Marks 5 pts Program can record new scenes 10 pts 0 pts No Marks 10 pts Must have a way to begin and end recording Full Marks Recorded scenes are saved and displayed to the user 10 pts 0 pts Full Marks No Marks 10 pts Recorded scenes can be recalled and displayed when selected by the user 10 pts 0 pts Full Marks No Marks 10 pts Recorded scenes properly track the Drawables input by the user 5 pts )pts 5 pts For example, if the same drawable is added multiple times, it should show up darker as shown in the video Full Marks No Marks Code is clean 5 pts 0 pts Full Marks No Marks 5 pts

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Financial management theory and practice

Authors: Eugene F. Brigham and Michael C. Ehrhardt

12th Edition

978-0030243998, 30243998, 324422695, 978-0324422696

Students also viewed these Programming questions

Question

3 Setting budget allocations, making resources available: Budgets

Answered: 1 week ago