Create a Python script that will accept three integers and will check each input number. If the input number is EVEN it will display the square of cube of the number and if the number is ODD it will display the square of the number.
Sample Output
Number 1: 5
Number 2: 8
Number 3: 3 The square of 5 is 25
The cube of 8 is 512 The square of 3 is 9.
I need the complete coding of this. Thank you
Instructions
∙ Name your Java package as: “com.lastname.duka”.
∙ Name your database using your names as: “db_first_last_studentNumber”. ∙ Name all your tables in your database using this format: “tbl_tableName”. ∙ Add a copyright message (tiny text) on all your GUIs.
Milestone:
For this unit, you are required to develop a GUI application using Java. The application should connect to a database and should be able to perform any CRUD operation.
Main goal:
Develop a Java application with GUI for a primary school called Duka.
Functional Requirements:
The application should allow:
i. A shop attendant to be able to login to upload stock of items (with prices). ii. A buyer be able to search for items, get their prices and make an order.
Non-functional Requirements:
The application should:
i. Have a user-friendly GUI for both shop attendant and buyer.
ii. Not crash in case a user makes a mistake, instead it should provide a clarification/warning.
Write a C++ program from your programming app, that will ask the user numerical input five times then display its SUM, PRODUCT, DIFFERENCE and QUOTIENT as OUTPUT
Rewrite your pay computation to give the employee 1.5 times the hourly rate for hours worked above 40 hours
The first line will contain a message prompt to input the integer.
The succeeding lines contain the odd numbers.
Enter·n:·10
9
7
5
3
1Write a C program based on the Output below:
Note. You can use Conditional Statement and Switch- case Statement
Sample put 1:
Enter Students name: Glearn Noynay
Please select your sexual category by typing Male or Female: Male
Welcome! Mr. Glearn Noynay
Enter your grade in Ethics: 90
Enter your grade in Mathematics: 93.1
Enter your grade in Science: 75.5
Enter your grade in P.E: 83
Enter your grade in Filipino: 89.3
.....analytic rating...... ...Numeric Grade..
A+ 90-100
A 80-89
P 75-79
F Below 75
Hi,Mr.Glearn Noynay,your average grade is 86.18 with an analytic rating of A
Congratulations! You have passed this Semester
Design a web page using HTML and CSS for a Music store. Add suitable background image.
1. Add links which can take to some description about song.
2. At the bottom mention the links for shopping, store, career and contact details
Hint:-
-create a Webpage which has a image as background and it has four menu option at the bottom which has shopping, store, career and contact details tile.
-create a link at the webpage which will give description about the song.
You have to generate electricity bill for a customer with the details as give below: Customer ID, Customer Name, Customer Address, Contact No, Units Consumed, Total payable amount. Following are the norms to calculate the unit amount:
a) for initial 100 units it will cost 6 rupees per unit
b) for next 100 units it will cost 8 rupees per unit
c) for next all units it will cost 10 rupees per unit
Hint:-
-get user input of customer name, id, address, contact no, units consumed
-give output as customer details and total payable amount but the payable amount wil be based on the unit consumed (if the total unit 300 it will be like 100*6= 600 as per first 100 units and 100*8= 800 as per second 100 units rest 100*10= 1000. so total will be 600+800+1000=2400).
Write a program in Java, define a STUDENT class with Roll No, Name and Marks of 3 subjects. Define one function to find the best two subject marks for student.
Hint:-
-get user input from user of student name, roll no and mark of 3 subjects
-give best two subject mark along with student information
Suppose you are planning to go to park so you are going to check tickets criteria online. The ticket rates details have been given
-If children below 10 are not allowed to swing
-If age is between 10 to 15 allowed to swing and getting 10 % discount
-If age is between 15 to 20 allowed to swing and getting 5 % discount
-If age is more than 20 not then not eligible for swing and discount
The age of person will run until you enter the age of last family member and then calculate the total charge amount after entering each person’s age. Assume price of ticket is 100 Rs. each person.
Hint:-
-get user input for how many family members
-give personal price along with discount based on age
-give total price along with discount
-give how many members are allowed