1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
bulgar [2K]
3 years ago
15

Write code statements that prompt for and read a double value from the user, and then print the result of raising that value to

the fourth power. Output the results to three decimal places.
Computers and Technology
1 answer:
andriy [413]3 years ago
5 0

Answer:

Following are the code in Java Language:

Scanner sc = new Scanner(System.in); // create a instance of scanner class

DecimalFormat frmt = new DecimalFormat("0.###"); // create a instance of                // DecimalFormat class

System.out.println ("Enter the value: ");

double number = scan.nextDouble(); // Read the value by thje user

System.out.println (fmmt.format(Math.pow(number, 4))); // display the value

Explanation:

Following are the description of the code

  • Create an instance scanner class i.e "sc".
  • Create an instance of DecimalFormat class i.e "frmt".
  • Read the value by the user in the "number" variable of type double by using the nextDouble()method.
  • Finally, display the value by using System.out.println method. In this, we call the method format. The Math.pow() function is used to calculating the power up to the fourth value.

You might be interested in
[PROGRAMMING] A ____ signal indicates that a specific amount of time should pass before an action starts.
Inessa [10]
A time signal will do that, I believe!
5 0
3 years ago
Write a program that checks for car mileage. if the mileage is greater than 100000, display "clunker!". if not, display "buy it!
Troyanec [42]
Should be easy to write this program. You need to define function that takes number as input and use if else condition to decide what to print.

For example in Python:

def checkCarMileage(mileage):
    if mileage > 100000:
        print("clunker!")
    else:
        print("buy it!")
3 0
4 years ago
What are the OSHA construction standards also called ?
Zarrin [17]
Part 1926 & Part 1910


hope this helps 

5 0
3 years ago
Networking and telecommunications technologies, along with computer hardware, software, data management technology, and the peop
Delvig [45]

Answer:

Option d  Information system

Explanation:

Information system is a system used by an organization to organize and analyze data. The main function of the information system is to generate useful information from the organized data to drive for decision making in an organization. An information system can includes components such as computer hardware, software, network and also the human resources required to manage and implement the system. All these components work together to form a functional information system for an organization.

7 0
3 years ago
Paragraph on uses of computer 100 words plss​
Eva8 [605]

REFER TO ATTACHMENT・ᴥ・

8 0
3 years ago
Other questions:
  • Identify the function for the following computer part: Printer Question 23 options: Input
    6·1 answer
  • A hacker changing the ip addresses used in conjunction with a particular company’s web site to re-route them to the hacker’s ser
    11·1 answer
  • How much days are in a year
    9·2 answers
  • Activity
    7·1 answer
  • Write a method named isNumericPalindrome that accepts an integer parameter named num. If num is a palindrome the method must ret
    6·1 answer
  • Select the correct answer from each drop-down menu.
    8·1 answer
  • Match the feature to its function.
    7·1 answer
  • Analog computers are general purpose computers : true ? or false ?​
    8·1 answer
  • What is HTML? Write some future of HTML.<br>follow for follow ​
    15·2 answers
  • Data becomes _______ when it is presented in a format that people can understand and use.
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!