A sole proprietorship, because she will work alone from home a franchise
Your answer is such a genius. :)
Answer:
The code requests for the scores of three students for three courses offered by each student.
It calculates and print the average score for each student
Explanation:
The code written in Python programming language uses a while to get student 1-3 and a for loop to get scores for course 1-3
See attached code and output
Answer:
hope this helps
Explanation:
import java.util.Scanner;
public class Problem3 {
public static void main(String[] args) {
Scanner in = new Scanner(System.in);
System.out.print("Enter start value: ");
int start = in.nextInt();
System.out.print("Enter end value: ");
int end = in.nextInt();
if (start > end) {
int temp = start;
start = end;
end = temp;
}
for (int i = start; i <= end; i++) {
if (i % 2 == 1) {
System.out.print(i);
if (i == end || i + 1 == end) {
System.out.println();
} else {
System.out.print(", ");
}
}
}
}
}
Answer:
Explanation:
Let's use Python for this. We will start prompting the user for input number, until it get 0, count only if it's positive:
input_number = Input("Please input an integer")
positive_count = 0
while input_number != 0:
if input_number > 0:
positive_count += 1
input_number = Input("Please input an integer")
print(positive_count)