Write a menu driven program using a method Number() to perform the
following tasks:
(1) Accept a number from the user and check whether it is BUZZ number
or not. A BUZZ number is the number which either ends with 7 or is divisible by 7.
(ii) Accept a number from the user and check whether it is a composite number or not. A composite number has more than one
factor(excluding 1 and the number itself).show variable description table
Answers
Answer:
a menu driven program using a method Number() to perform the
following tasks:
(1) Accept a number from the user and check whether it is BUZZ number
or not. A BUZZ number is the number which either ends with 7 or is divisible by 7.
(ii) Accept a number from the user and check whether it is a composite number or not. A composite number has more than one
factor(excluding 1 and the number itself).show variable description table
Explanation:
a menu driven program using a method Number() to perform the
following tasks:
(1) Accept a number from the user and check whether it is BUZZ number
or not. A BUZZ number is the number which either ends with 7 or is divisible by 7.
(ii) Accept a number from the user and check whether it is a composite number or not. A composite number has more than one
factor(excluding 1 and the number itself).show variable description table a menu driven program using a method Number() to perform the
following tasks:
(1) Accept a number from the user and check whether it is BUZZ number
or not. A BUZZ number is the number which either ends with 7 or is divisible by 7.
(ii) Accept a number from the user and check whether it is a composite number or not. A composite number has more than one
factor(excluding 1 and the number itself).show variable description table a menu driven program using a method Number() to perform the
following tasks:
(1) Accept a number from the user and check whether it is BUZZ number
or not. A BUZZ number is the number which either ends with 7 or is divisible by 7.
(ii) Accept a number from the user and check whether it is a composite number or not. A composite number has more than one
factor(excluding 1 and the number itself).show variable description table a menu driven program using a method Number() to perform the
following tasks:
(1) Accept a number from the user and check whether it is BUZZ number
or not. A BUZZ number is the number which either ends with 7 or is divisible by 7.
(ii) Accept a number from the user and check whether it is a composite number or not. A composite number has more than one
factor(excluding 1 and the number itself).show variable description table a menu driven program using a method Number() to perform the
following tasks:
(1) Accept a number from the user and check whether it is BUZZ number
or not. A BUZZ number is the number which either ends with 7 or is divisible by 7.
(ii) Accept a number from the user and check whether it is a composite number or not. A composite number has more than one
factor(excluding 1 and the number itself).show variable description table a menu driven program using a method Number() to perform the
following tasks:
(1) Accept a number from the user and check whether it is BUZZ number
or not. A BUZZ number is the number which either ends with 7 or is divisible by 7.
(ii) Accept a number from the user and check whether it is a composite number or not. A composite number has more than one
factor(excluding 1 and the number itself).show variable description table a menu driven program using a method Number() to perform the
following tasks:
(1) Accept a number from the user and check whether it is BUZZ number
or not. A BUZZ number is the number which either ends with 7 or is divisible by 7.
(ii) Accept a number from the user and check whether it is a composite number or not. A composite number has more than one
factor(excluding 1 and the number itself).show variable description table