1 In this task, you are to create a simple registration form. Use the sample below:
1.2 Create MYSQL database called rgi_student and a table called student_reg which consist of the
following attributes:
STID INTEGER (4)
USERNAME VARCHAR(30)
PASSWORD HASH CHAR(25)
CONFIRM PASSWORD
FIRSTNAME VARCHAR(30)
SURNAME VARCHAR(30)
EMAIL TEXT
QUALIFICATION VARCHAR(15)
CELL NUMBER INTERGER(10)
GENDER VARCHAR(6)
NATIONALITY VARCHAR(25)
1.3 Once the information has been inputted by the student at the frontend (REGISTRATION FORM),
all the fields need to be validated before being sent to the backend (MYSQL DATABASE). Only 3
one SQL task is performed under registration form that is, INSERT operation where captured
information is sent to the created table called student_reg.
Armstrong numbers between two intervals
Write a program to print all the Armstrong numbers in the given range A to B(including A and B). An N-digit number is an Armstrong number if the number equals the sum of the Nth power of its digit.
Input
The first line has an integer A.
The second line has an integer B.
Output
Print all Armstrong numbers separated by a space.
If there are no Armstrong numbers in the given range,print -1.
Sample Input 1
1
3
Sample Input 1
1 2 3
Sample Input 2
10
15
Sample Input 2
-1
Draw a flowchart that uses while loops to perform the following steps:
a. input two integers: firstNum and secondNum.
b. all the odd numbers between firstNum and secondNum inclusive.
c. the sum of all the even numbers between firstNum and secondNum inclusive.
d. all the numbers and their squares between 1 and 10.
e. the sum of the squares of all the odd numbers between firstNum and secondNum inclusive.
Draw a flowchart that to perform the following steps:
a. The user must input two integers: firstNum and secondNum.
b. Output all the odd numbers between firstNum and secondNum inclusive.
c. Output the sum of all the even numbers between firstNum and secondNum inclusive.
d. Output all the numbers and their squares between 1 and 10.
e. Output the sum of the squares of all the odd numbers between firstNum and secondNum inclusive.
The program should accept 5 records of books and displays them on the screen