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
castortr0y [4]
3 years ago
10

1

Computers and Technology
2 answers:
g100num [7]3 years ago
4 0
Have a look at the man page for printf:

man 3 printf
Lerok [7]3 years ago
4 0

Answer:

1.

printf("%lf", outsidetemperature);

2.

printf("%.2lf\n", outsidetemperature);

Explanation:

1.

The command to print is printf.

It has an argument, that is the datatype. When it is double, it is %lf.

So:

printf("%lf", outsidetemperature);

2.

Again printf. If you want m digits in the fraction, you use %.mlf. So for 2 digits is %.2lf. For a new line, you put a \n after the datatype argument. So:

printf("%.2lf\n", outsidetemperature);

You might be interested in
Then create a new Java application called "StringSlicer" (without the quotation marks) that uses methods to:
anyanavicka [17]

Answer:

See the explanation section

Explanation:

import java.util.*;

//The above statement is to import the Scanner and ArrayList class

public class StringSlicer {

   public static void main(String args[]) {

   Scanner scan = new Scanner(System.in);

   System.out.println("Enter your string: ");

   String inputString = scan.nextLine();

   

   ArrayList<Character> stringList = new ArrayList<Character>();

   for(int i = 0; i < inputString.length(); i++){

           stringList.add(inputString.charAt(i));

       }

       

   for(Character letter: stringList){

           System.out.println(letter);

       }

   }

}

5 0
3 years ago
How do you turn off video calls so no one can video call you I didnt know there was a video call feature
nydimaria [60]

ya what are you talking about i don't understand

5 0
3 years ago
Read 2 more answers
Which part of the water cycle is most affected by a sunny day with few clouds?
nirvana33 [79]
Increase in evaporation
8 0
3 years ago
Read 2 more answers
Which of the following best describes association as a memory technique
Irina-Kira [14]
It seems that you have missed the necessary options for us to choose from, so I had to look for it, so here is the answer. The one that best describes association as a memory technique is connections between something familiar and concepts you need to remember. Hope this answers your question.
7 0
3 years ago
If a destructive program is running that might be destroying evidence what should be done
Vikentia [17]
The choices can be found elsewhere and as follows:
a. perform an immediate full backup
b. attempt to end the process
c. pull the power cable
d. record the destruction using a video capture of the screen

I think the correct answer is option a. If a destructive program is running that might be destroying evidence, then perform an immediate full backup. 
3 0
3 years ago
Other questions:
  • Sidney works in the accounting department. His boss just assigned him a task that involves creating budget formulas for the comp
    7·1 answer
  • Information distribution includes all of the following EXCEPT:Group of answer choices
    14·1 answer
  • Evidence left behind by participants or observers is an example of what kind of resource?
    10·2 answers
  • If classes C1 and C2 both implement an interface Cint, which has a method whichIsIt, and if C1 c = new C1( ); is performed at on
    15·1 answer
  • Write a program to enter length of a square and print area of square.<br>(class 8)​
    9·2 answers
  • A ____ is a a set of presentation rules that control how text should look. It is applied to an XML file to change the collection
    9·1 answer
  • Why is dark supereffective against ghost?
    5·2 answers
  • Five varieties of software​
    13·1 answer
  • What is the decimal equivalent of 11BA?
    7·1 answer
  • You need to display the placement of three new function keys on a cell phone prototype. What should you use to illustrate the da
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!