Get Instant Help From 5000+ Experts For
question

Writing: Get your essay and assignment written from scratch by PhD expert

Rewriting: Paraphrase or rewrite your friend's essay with similar meaning at reduced cost

Editing:Proofread your work by experts and improve grade at Lowest cost

And Improve Your Grades
myassignmenthelp.com
loader
Phone no. Missing!

Enter phone no. to receive critical updates and urgent messages !

Attach file

Error goes here

Files Missing!

Please upload all relevant files for quick & complete assistance.

Guaranteed Higher Grade!
Free Quote
wave
Designing a Two-Sided (Forward and Reverse) Chronometer for Computer Science - Assignment 3

Assignment Overview

Question 1:The aim of this questionis designing a chronometer that can work both forward and reverse and shows different portions of the time. In this assignment, it is expected that students use different concepts that they have learned so far, particularlywriting condition blocksand drawing texts in the  canvas.  This  assignment  is  coming  with  a  video  guidance.  Depends  on  the  portion  of  each part that students answer, they will get mark. This assignment consists of 3majorparts: 1) Building chronometer working forward and reverse, 2) Showing the chronometer moving around the mouse pointer 3) Resting the chronometer 1)Building chronometer working forward and reverseIn order to build a chronometer, we have to first build 1/60 (s) time counter. By default, when the code is run, the chronometer should count forward every 1/60 of second. When a mouse key is pressed, the chronometer will start counting reverse. The chronometer style is: HH:MM:SS:CC;where HH,MM,SS and CC show 2 digits hours, minutes, seconds and 1/60 seconds respectively.When  the  chronometer  is  counting  reverselyand  reaches  zero,  it  should  not  be  negative.  It means that when the chronometer is reduced to get negative values, its value should be stoppedon zero.  2) Showing the chronometer moving around the mouse pointer In  the  forward  mode,  each  second  that  passes,  the  numbers  of  chronometer  should  pass  1 complete circle around the mouse pointerin a circular clockwise direction.If the mouse key is pressed, thechronometer should start counting reverse from the last value that ithad and startsrotating around the mouse pointer in a circular counter clockwise direction.
ASSIGNMENT 3: Two sided (forward and reverse) chronometer  Introduction to Computer Science : The code should be able to adjust its distance from the center of the mouse pointer in a way that even the width of CC, SSand MM text may increase, it moves in a circular way with a constant radius.In the order words, the code mustkeep a constant distance between thecenter of thetext and thelocation of themouse pointer. This distance is the circle radiusaround the mouse pointer.3) Resting the chronometerWhen any key is pressed on the keyboard, the chronometer should be stoppedand figure below should be shown up on the canvas.The background colour of the canvas, fontand the size of the text is optional. When a key is pressed on the mouse,the chronometershould be shownup on the canvas again and starts working forward. NOTE:Being creative in any of the described 3 parts would be considered as bonus mark.
ASSIGNMENT 3: Two sided (forward and reverse) chronometer  Introduction to Computer Science Question 2:In this question, students should work withthe 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; eitherit 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 beginningof 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

support
Whatsapp
callback
sales
sales chat
Whatsapp
callback
sales chat
close