Question: Please use processing to answer the followinh question. ASSIGNMENT 3: Two sided (forward and reverse) chronometer DEPARTMENT AND COURSE NUMBER: COMP 1010 COURSE TITLE: Introduction

Please use processing to answer the followinh question.  Please use processing to answer the followinh question. ASSIGNMENT 3: Two
sided (forward and reverse) chronometer DEPARTMENT AND COURSE NUMBER: COMP 1010 COURSE

ASSIGNMENT 3: Two sided (forward and reverse) chronometer DEPARTMENT AND COURSE NUMBER: COMP 1010 COURSE TITLE: Introduction to Computer Science 1 TERM: WINTER 2021 Question 2: In this question, students should work with the drawing text on the canvas. The code will ask for a number and the code should be able to detect the type of the entered number; either it is an integer or float or even if it is not a number. Also, they need to know about input command and get string from users with "input" command. In order to do so, the library below should be imported at the beginning of the code: import javax.swing JOptionPane; The code should be written in a way that when it is run, if user presses button "n" on the keyboard, an input box like below appears on the screen. input ? Enter a number OK Cance In the box above if user for example enters 3, the code should write the number of the type of that on the canvas like below: Number: 3 Type: int The position of the strings on the canvas is optional and it should be selected in a way that it is readable. Hint: In order to detect float numbers, look for character in the entered string. Below there are two more examples of the desired code: 3 ASSIGNMENT 3: Two sided (forward and reverse) chronometer DEPARTMENT AND COURSE NUMBER: COMP 1010 COURSE TITLE: Introduction to Computer Science 1 TERM: WINTER 2021 Press 'n' on the Keyboard Number: 3.2 Type: float Press 'n' on the Keyboard Number: 37.8m Type: Not a Number

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!