![19thomasar](/avatars/13581.jpg)
19thomasar
13.10.2020 •
Computers and Technology
5. Why is adaptability important in the workplace?
Solved
Show answers
More tips
- C Computers and Internet How to Properly Repartition a Hard Drive?...
- A Auto and Moto What Is the Cost of Customs Clearance for a Car in Russia?...
- L Leisure and Entertainment Should You Buy a Ceramic Knife?...
- C Computers and Internet How to easily and quickly disable Firebug in Gmail and Google Docs...
- G Goods and services How to sew a ribbon: Tips for beginners...
- F Food and Cooking How to Make Mayonnaise at Home? Secrets of Homemade Mayonnaise...
- C Computers and Internet Which Phone is Best for Internet Surfing?...
- F Food and Cooking Everything You Need to Know About Pasta...
- C Computers and Internet How to Choose a Monitor?...
- H Horoscopes, Magic, Divination Where Did Tarot Cards Come From?...
Answers on questions: Computers and Technology
- E English Directions: Select one of the statements above that you feel you could write about. In the space below, write a paragraph that states your opinion (agree or disagree) and...
- P Physics The use of thermostat in a gas cooker is to...
- M Mathematics What is the volume of the rectangular prism? Type the answer in the boxes below. cm cm3...
Ответ:
because u can adapt a job
Explanation: hmmhmhmmhmhmhmmhhm
THIS HELPS RIGHT
Ответ:
Here is the program fulfilling all the requirements given:
import javax.swing.JOptionPane;
public class SuperPower{
public static void main(String[] args) {
String power;
power = JOptionPane.showInputDialog("What is your super power?");
power = power.toUpperCase();
JOptionPane.showMessageDialog(null, power);} }
Explanation:
Does the file include a public class called "SuperPower"
See the statement:
public class SuperPower
Does the class include a public method called "main"? Is the "main" method static?
See the statement:
public static void main(String[] args)
Does the main method have a String assignment statement that uses "JOptionPane.showInputDialog"
See the statement:
power = JOptionPane.showInputDialog("What is your super power?");
Does the main method have a statement that uses "JOptionPane.showMessageDialog"?
See the statement:
JOptionPane.showMessageDialog(null, power);
Does the program convert the String from "JOptionPane.showInputDialog" using the "toUpperCase" method?
See the statement:
power = power.toUpperCase();
Does the submission include a screenshot that shows an Input dialog that asks, "What is your superpower?" Does the submission include a screenshot that shows a Message dialog stating " TO THE RESCUE!", where "" is the input converted to upper case?
See the attached screenshots
If the program does not let you enter an exclamation mark after "to the rescue" then you can alter the code as follows:
import javax.swing.JOptionPane;
public class SuperPower{
public static void main(String[] args) {
String power;
power = JOptionPane.showInputDialog("What is your super power?");
power = power.toUpperCase();
JOptionPane.showMessageDialog( null, power+"!");} } // here just add an exclamation mark which will add ! after the string stored in power