The Math method that returns the nearest whole number that is greater than or equal to its argument is:
a. round
b. ceil
c. floor
d. all of the above
B
You might also like to view...
When creating a ToString method to return a string representation of the data stored in an object, you must __________.
a. override the ToString method, which is inherited from the built-in Object class b. add a Protected ToString method to the class c. do nothing as the ToString method automatically performs this for each class d. a ToString method is a reserved word that cannot be added to a class
Write a GUI that will let the user sample borders. Include a menu named Borders that offers three options—beveled border, etched border, and line border—as submenus with the following options:
• Beveled-border submenu options: raised or lowered. • Etched-border submenu options: raised or lowered. • Line-border submenu options: small, medium, or large. Each of these options should be a submenu with three color options: black, red, and blue. Put the borders around a label containing text that describes the border, such as Raised Border, Lowered Etched Border, and so forth. Fix the highlight and shadow colors for the etched-border options to whatever colors you like, and make the small line border 5 pixels wide, the medium one 10 pixels wide, and the large one 20 pixels wide. This Programming Project is fairly easy, especially if done a step at a time. First create the menu hierarchy, then add the lines in the actionPerformed method to set the border style and change the label’s text, depending on the style selected. Note that setActionCommand is used to differentiate selections with the same text (e.g. “Raised” could be either Beveled or Etched).