Answer:
The program code is completed below
Explanation:
Program Code:
"""
Your Name
Course Name, Section (example: ENTD200 B002 Spr15)
Instructor name
Week #
Date completed
"""
months = ["January ", "February", "March", "April", "May", "June", "July"
, "August", "September", "October", "November", "December"]
for i in range(0,12):
print("Month",i+1, "is" , months[i])
The flashing yellow light indicates that people should be aware of other cars and turn carefully. To be more safe, you should slightly slow down, make sure all signals that should be on are on, and you should drive very carefully.
Answer:
The simplest of table parameters are rows, columns, page number, alternate row, column header, Table title, etc.
Explanation:
The simplest table parameter is as being mentioned above. Its, however, important to understand what are the parameters. Parameters are the features of an object that defines its behavior. Various parameters are the behaviors of the object hence, and here it is the table and the behavior of the table is being described with the parameters. There are so many other parameters that one can think of related to tables. And we should make a list of them for future studies. Font size, Font color, border, etc are some more from the huge list.
Answer:
import java.util.Scanner;
public class num6{
static int getTestScores(){
System.out.println("Enter the Score");
Scanner in = new Scanner(System.in);
int score = in.nextInt();
return score;
}
static double calcAverage(int score1, int score2, int score3){
return (score1+score2+score3)/3;
}
static void displayAverage(double ave){
System.out.println("The Average is "+ave);
}
public static void main(String[] args) {
int num1 = getTestScores();
int num2 = getTestScores();
int num3 = getTestScores();
//Calling Calculate Average
double average = calcAverage(num1,num2,num3);
//Calling displayAverage
displayAverage(average);
}
}
Explanation:
- Using Java programming Language
- Create the four methods
- getTestScores() Uses the Scanner Class to receive an in variable and return it
- calcAverage() accepts three ints as parameter calculates their average and return it
- displayAverage() Accepts a double and prints it out with a concatenated string as message
- In the Main Method, getTestScores is called three times to obtain three numbers from the user
- calAverage is called and handed the three numbers
- printAverage is called to output the calculated average