Assignment7 (B.Tech.)
Assignment7 (B.Tech.)
CO-Mapping
CO1 CO2 CO3
Q1 √
Q2 √
Q3 √
Q4 √
Objectives
1. Students will be able to learn arrays used in solidity programming language.
2. Students will be able to learn the function overloading used in the solidity programming language.
3. Students will be able to learn the structure used in the solidity programming language.
4. Students will be able to learn the inheritance used in the solidity programing language.
5. Students will be able to learn the modifiers used in the solidity programing language.
Assignment 7
1. Implementation of advance smart contracts using solidity, compile and deploy smart contracts
using Remix IDE.
Questions:
1. Implement and deploy the following smart contract on the Remix IDE.
a. Declare a variable size array and push 5 elements in it using a function.
b. Declare a function that evaluate the length of same array (Hint, use length as inbuilt function).
c. Declare a function that pop the elements from the same array. (Hint, use pop as inbuilt
function).
2. Implement and deploy the following smart contract on the Remix IDE.
a. Declare two overloading function that add two numbers and three numbers, respectively.
Further return an output.
b. Declare two overloading function that multiply two numbers and three numbers, respectively.
Further return an output.
c. Declare two overloading function that divide two numbers and three numbers, respectively.
Further return an output. (Hint give a =40, b = 20, c = 5, output = 10).
3. Implement and deploy the following smart contract on the Remix IDE.
a. Define a struct (person), with two variable name and age.
b. Declare an array of person struct.
School of Computer Science Engineering and Technology
Marking: Marking is based on both performance during the lab hours as well as complete
submission on Camu.