QR codes were created to make a way for people to easily scan codes to get to a website. So you could scan (example) a movie poster to go to the website that has advertisements and tickets.
Answer:
The program in Python is as follows:
n = int(input("Integer: "))
product = 1
for i in range(1,n+1):
product*=i
if(i!=n):
print(str(i)+" *",end =" ")
else:
print(i,end =" ")
print(" = ",product)
Explanation:
This prompts the user for integer input
n = int(input("Integer: "))
This initializes the product to 1
product = 1
This iterates through n
for i in range(1,n+1):
This multiplies each digit from 1 to n
product*=i
This generates the output string
<em> if(i!=n):</em>
<em> print(str(i)+" *",end =" ")</em>
<em> else:</em>
<em> print(i,end =" ")</em>
This prints the calculated product (i.e. factorial)
print(" = ",product)
Answer:
import java.util.Scanner;
public class num10 {
public static void main(String[] args) {
Scanner in = new Scanner(System.in);
System.out.println("Enter the numbers to add up. enter 999 to stop");
int num = in.nextInt();
int sum = 0;
while (num!=999){
sum = sum+num;
System.out.println("Enter the next number");
num = in.nextInt();
}
System.out.println("The sum is: "+sum);
}
}
Explanation:
The application is implemented in Java
A while loop is used to continously prompt user for inputs. The condition of the while loop is while (num!=999)
When the number 999 is entered, it displays the sum which is initialized to 0
Answer: Option(d) is correct option
Explanation:
At-will employment is the employment in contractual manner in which employer can fire employee without any warning or indication .They can fire employee for any cause .
- According to the question, even though Megan was hired at at-will employment base ,she does not persist much right over the company but she should not be dismissed for not performing illegal act as the reason for getting fired.This is a unfair and illegal manner of firing.
- Other options are incorrect because employer was not correct on firing her because of loyalty duty or based on legal right or with just reason.Thus, the correct option is option(d)