If you save the input as num,
this will print the input 8 times.
num = input("Enter a number: ")
print(num * 8)
If you want to do actual math calculations,
then the input needs to be a number.
num = float(input("Enter a number: "))
print(num * 8)
This doesn't account for any errors in which the user doesn't input a number, but I don't think that's what you were looking for anyway :)
Answer:
All are True
Explanation:
a. A constructor must have the same name as that of a class. For example
public class MyFirstClass{ // this is the class name
public MyFirstClass() } // the constructor having the same name as class.
b. Constructors never have a return type not even void because it is only used to initialize the values of data members of the class when the object of the class is created so constructors are not directly called hence they do not need to have a return type.
c. Constructors are invoked using the new operator.
When the new object is created the constructor is invoked in order to initialize the variables of a class. The memory is allocated to the object and then the constructive is invoked for the purpose to initialize the object.
Answer:
C. deriving benefits from highly focused and high technology markets
Explanation:
Firms that engage in cost-leadership approach seek to combine a low per-unit income with large sales for profit making purposes. Typically, but not always, they are more inclined to market their products and services to a large population base or a niche with a high demand volume. While differentiation enables a company to accomplish a competitive advantage. A Competitive advantage enables a company to achieve more strides over other companies offering related product substitutes. It is an important marketing process that is of critical economic importance to a business.
It should be noted that deriving benefits from highly focused and high technology markets is not part of the approaches to combining overall cost leadership and differentiation competitive advantages.
Answer:
(10^6 + 9.9)
Explanation:
Given:
Total number of machine instructions = 1000
Number of page fault in 100 instructions = 1
Number of page faults in 1000 instructions = 10
Time to serve one page fault = 100 milliseconds
Time to serve ten page faults = 100*10 milliseconds = 1000 milliseconds = 10^6 Microseconds
Number of instructions without any page fault = 1000 - 10 = 990
Time required to run 1000 instructions = 10 Microseconds
So, time required to run 990 instructions = (10*(990/1000)) Microseconds = 9.9 Microseconds
So, the total time required to run the program = (10^6 + 9.9) Microseconds