Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

2 Lab 1. Create Lab Directory In your CS213 directory and create a new folder Lab4 to work in for today's lab. All of your

image text in transcribed
image text in transcribed
2 Lab 1. Create Lab Directory In your CS213 directory and create a new folder Lab4 to work in for today's lab. All of your coding assignments for today will be in this folder 2. Lab Assignment For today's lab you will be expected to write two Java programs Addi- tionally, in text files you will provide a written explanation of the tests that you ran on each of the two programs. Description: The purpose of this program is to rotate, translate and scale Cartesian coordinates given user input SpecificationS Filename: MoveCoords java Classname: MoveCoords Main method: Input: Degrees to be rotated, how much the coordinates will be translated in x and y directions), and how much the coordinates will be scaled (int the x and y directions). Output: Prints out the initial coordinates, rotated coordinates, scaled coordinates (both clockwise and counter clockwise), and translated coordinates. The initial coordinates are provided below, you do not have to get them from a user The input should be read in from console using a Scanner. The output should print the intial coordinates, the translated coordinates, scaled coordinates, and rotated coor- dinates (both directions). The output should also indicate which set of coordinates has been translated, rotated, etc. All coordinates should be printed in the form (xy). I expect you to use arrays in this program as well as functions Remember functions in Java begin with: public static returnValue functionlane(type paraneter) Listed below are the equations to translate, scale, and rotate coordinates. Finally, include a write-up of what you used to test this program, output, and expected output in a file called MoveCoords.txt Action Translate uation Scale e (clockwise) e (counter clockwise) NOTE: h and& represent how much to move in the x and y directions respectively. and r are how much the coordinates get scaled in the x and y directions, is the degrees that coordinates will be rotated (b) Stats Description: Given an unspecified amount of numbers, determine how many numbers are distinct as well as the mean and standard deviation of the entered set. Specifications Filename: Stats.java eClassname: Stats . Main method: Input: A set of numbers from the user Output: Prints the set of numbers that the user entered, the list of distinct numbers, and the mean and standard deviation of initial set of numbers. Below the equation for standard deviation is listed. For this program I expect you to use lists and functions. The output should specify the mean and the standard deviation of the set StandardDeviation where is the mean of the data. x' is the element of our data. and n is the length of our data (c) Write-ups is iportant to start thinking about how you test your program. WhatI would like is a text file for each of your programs (MoveCoords.txt and Stats.txt) is: Inputs that you used pected output Actual output

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

Step: 3

blur-text-image

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

The Temple Of Django Database Performance

Authors: Andrew Brookins

1st Edition

1734303700, 978-1734303704

More Books

Students also viewed these Databases questions

Question

=+a) Show that mixing implies ergodicity.

Answered: 1 week ago

Question

1. Define and explain culture and its impact on your communication

Answered: 1 week ago