01:198:111 Lecture 3: Rec+3

89 views2 pages
cyansea-lion159 and 56 others unlocked
01:198:111 Full Course Notes
47
01:198:111 Full Course Notes
Verified Note
47 documents

Document Summary

Why? int a=5; int b; double c=5. 42; double d; (1) b=a; (2) d=a; (3) d=c; b=c; (4) b=(int)c; (5) For this exercise (and most future ones), you will need io. java to be in the same folder as your own java file. Write a program that askes a user for his name and age and output weather or not they can vote. Exercise 3: library calls drawing with calls to picasso class. For this exercise we will use a module called picasso that supplies the following methods to draw lines and circles on the screen. The module keeps track of the current position on the screen of the pen that is used to draw, which starts out at the upper left-hand corner: write a program that draws a smiley face. The size of the smiley face should be an input from the user: as a group come up with a picture to draw and draw it. drawcircle( int diameter )

Get access

Grade+
$40 USD/m
Billed monthly
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
10 Verified Answers
Class+
$30 USD/m
Billed monthly
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
7 Verified Answers

Related Documents

Related Questions