The answer is C. Jurassic.
Answer:
import java.util.Scanner;
public class TestClock {
public static void main(String[] args) {
Scanner in = new Scanner (System.in);
System.out.print("Enter favorite color:");
String word1 = in.next();
System.out.print("Enter pet's name:");
String word2 = in.next();
System.out.print("Enter a number:");
int num = in.nextInt();
System.out.println("you entered: "+word1+" "+word2+" "+num);
}
}
Explanation:
Using Java Programming language
- Import the Scanner class
- create an object of the scanner class
- Prompt user to enter the values for the variables (word1, word2, num)
- Use String concatenation in System.out.println to display the output as required by the question.
<u><em>Answer:</em></u>
<u><em>The speed is </em></u>
<u><em>=
</em></u>
<u><em>30
</em></u>
<u><em>m
</em></u>
<u><em>s
</em></u>
<u><em>−
</em></u>
<u><em>1
</em></u>
<u><em>
</em></u>
<u><em>Explanation:
</em></u>
<u><em>The speed of a wave is given by
</em></u>
<u><em>
</em></u>
<u><em>speed
</em></u>
<u><em>(
</em></u>
<u><em>m
</em></u>
<u><em>s
</em></u>
<u><em>−
</em></u>
<u><em>1
</em></u>
<u><em>)
</em></u>
<u><em>=
</em></u>
<u><em>frequency(Hz)
</em></u>
<u><em>×
</em></u>
<u><em>wavelength (m)
</em></u>
<u><em>
</em></u>
<u><em>The frequency is </em></u>
<u><em>f
</em></u>
<u><em>=
</em></u>
<u><em>100
</em></u>
<u><em>H
</em></u>
<u><em>z
</em></u>
<u><em>
</em></u>
<u><em>The wavelength is </em></u>
<u><em>λ
</em></u>
<u><em>=
</em></u>
<u><em>0.3
</em></u>
<u><em>m
</em></u>
<u><em>
</em></u>
<u><em>The speed is
</em></u>
<u><em>
</em></u>
<u><em>v
</em></u>
<u><em>=
</em></u>
<u><em>λ
</em></u>
<u><em>f
</em></u>
<u><em>=
</em></u>
<u><em>0.3
</em></u>
<u><em>⋅
</em></u>
<u><em>100
</em></u>
<u><em>=
</em></u>
<u><em>30
</em></u>
<u><em>m
</em></u>
<u><em>s
</em></u>
<u><em>−
</em></u>
<u><em>1
</em></u>
<u><em>
</em></u>
<u><em></em></u>
<u><em></em></u>
<u><em></em></u>
Answer: The floral industry has quite an array of possible occupation pathways. You can do flower production, design, publishing, marketing, home design, engineering, retailing, commercial, research, and lots more.
Answer:
scanf() function is used to get a input from keyboard.This function is in the stdio.h library.To use this function we must include the stdio.h library first in the code. Then only we can use the scanf() function in any code.printf() function is used to print anything .this function is from stdio.h library.
Code to read voltage drop across the register.
#include <stdio.h>
// main function
int main(void) {
// variable
double vr1;
printf("Enter voltage drop:");
// read voltage drop from user
scanf("%lf",&vr1);
// print voltage drop
printf("voltage drop is:%0.2lf",vr1);
return 0;
}
Output:
Enter voltage drop:200.4
voltage drop is:200.40