A outlet has a acceptable voltage of 120 vollts and the knob depends on the tester you are using
Answer:
- import java.util.Scanner;
-
- public class Main {
- public static void main (String [] args) {
-
- int jersey_num [] = new int[5];
- int rating [] = new int[5];
-
- Scanner inStream = new Scanner(System.in);
-
- for(int i=0; i < 5; i++){
- System.out.print("Enter player " + (i+1) + "'s jersey number:");
- jersey_num[i] = inStream.nextInt();
-
- System.out.print("Enter player " + (i+1) + "'s rating:");
- rating[i] = inStream.nextInt();
- }
-
- System.out.println("ROSTER");
-
- for(int j=0; j < 5; j++){
- System.out.println("Player " + (j+1) + "-- Jersey number: " + jersey_num[j] + ", Rating: " + rating[j]);
- }
- }
- }
Explanation:
The solution code is written in Java. Firstly create two array, jersey_num and rating, with int type. This is to hold the five pairs of numbers input by user (Line 6 -7).
Next, create a for loop that run for 5 iterations and in each iteration prompt user to input jersey number and rating (Line 11 -17). The input number and rating will be set to the array, jersey_num and rating, respectively.
Next, print the title "Roster" (Line 19).
Create another for loop to display the five input pair of values (Line 21 - 23).
Answer:
# main function is defined
# the calculateAmount is called here
def main():
print("The new amount is: ", calculateAmount(), sep="")
# calculateAmount function that calculate the interest
def calculateAmount():
# the value of principal is p
p = 5000
# the value of rate is r
r= 2
# the time is t
t = 1
# the formula for finding interest
interest = (p * r * t) / 100
# the new amount is calculated
amount = p + interest
# the amount is returned
return amount
# a call that make main function begin execution
if __name__ == "__main__":
main()
Explanation:
The program is written in Python and it is well commented. A screenshot is attached showing program output
I believe it is linked. linked data can become a part of the destination file but it alsoremains connected to the source file.
https://officepowerusers.weebly.com/linking-and-embedded-between-excel-and-other-programs.html
check this out to see what you get out of it.