Write a program in PL/SQL to show the uses of SQL%FOUND to determine if a DELETE statement affected any rows.
Describe how reflection can be used to achieve team improvement.
1. Using C++ Build a class Mobile with the following data members
· Model (string)
· Brand (string)
· Price (float)
· simNum(string)
1. Provide a method print setSimNum(string num) that assigns the value num to the attribute simNum
2. Provide a method getNetwork() that returns a string telling which network operator this sim is registered on e.g. Warid, Jazz, Ufone, ,etc. For this you will have to get the first 4 chacters of the simNum and find out the network. E.g. if these 4 characters are 0300 then you will return “Jazz” , if these are 0333 then you will return Ufone and so on.
2. Using C++ Build a class Date with the following attributes
· Day(int)
· Month(int)
· Year(int)
Provide a method setDate(int d, int mon, int y). Inside this method you will assign the value of d to the day attribute, mon to the month attribute and y to the year attribute.
Provide another method nextDay(). This method will increment the day to the next day but do implement sanity checks. i.e. if the day is already 31 then the next day will be 1 and you will increment month. Similarly if the day is 30 but the month is 4 (April) then the next day will again be 1 and the month will be incremented to 5. Similarly if the date is already 31 of December i.e. day is 31 and month is 12 then the next day will mean that day becomes 1, month also becomes 1 and the year is incremented. So look for all possible situations and implement this method accordingly
Provide a method print that prints the date in the following format 6-10-2021
Write a Java program that uses both recursive and non-recursive (iterative)
functions to print the nth value in the Fibonacci sequence by using these methods:
The output should be:
Enter value of i: 12
Fibonacci number 12 is 144. --> This is displayed through Iterative Method.
Fibonacci number 12 is 144 --> This is displayed through Recursive Method.
Defines a function that stores the elements of an array of real numbers in reverse, declaring the function as: void reverse (double arr[], const int size, double*& rev). Write a main program using the above function.
Write a definition of a distance class as shown in the example 4.2 above. Make all the appropriate function constant. Include a constant data member called id of integer type. Create two object constant and non-constant. Assign values and display them. Also check what happens If you try to modify private data member of an object from the definition of const function If you try to modify the private data member of const object from the definition of non-constant function.
what is the code to change the color of a turtle in Python?