Answer:
import java.lang.Object
import java.lang.Math
public class RegularPolygon extends java.lang.Object{
public void randomize(RegularPolygon c){
int min = 10, max1 = 20;
double min1 = 5, max1 = 12;
double range = (max - min) + 1;
double range1 = (max1 -min1) + 1
int side = (Math.random() * range) + min;
double len = (Math.random() * range1) + min1;
c.setNumSides(side);
c.setSideLength( len);
}
public static void main(String[] args) {
RegularPolygon r = new RegularPloygon();
randomize(r);
}
}
Explanation:
The randomize method accepts a regular polygon class as its only parameter and assigns a random number of sides and the length of these sides with the 'Math.random' function.
Enroll a student identified by her snum into the class named 'Introduction to Database Systems' is the following transactions, state the SQL isolation level you would use.
1. Enroll a student identified by her snum into the class named 'Introduction to Database Systems'.
<u>Explanation:</u>
Since enroll is unique in the university enrollment database schema and field name is SNUM and it is data type is an integer. To identify student class name and department name and name of student SNUM field is used for searching in university enrollment database schema. Enrollment changing is not possible of the student’s not possible or not good practices in university enrollment database schema.
If a query had been made class wise or department wise enrollment is played an important role.
For assign, a faculty is made on the class id or department id.
Answer:
Option B is Correct.
Explanation:
Thermal paste is used in the CPU motherboard to reduce the heat.
Thermal paste is a heat observing coating that is used to make the system cool when it is heated much by working for a long time.
Thermal paste is also used in heat sink in CPU and CPU passes the air in the heat sink to make the temperature normal.
Thermal paste is very useful which installing any processor otherwise which running, the temperature will be increased in the absence of the thermal paste.
It is used to maintain the empty place between the motherboard and the processor.
Answer and Explanation:
Using JavaScript:
/* program should take N input which represents the dollar amount and output how many chocolate bars and how many coupons we have*/
function chocolatebar(dollars){
var dollaramt= dollars;
var i;
for(i=0; i <= dollaramt; i++){
i=i+6
?
Alert ("you have 1 extra chocolate bar");
:
Alert ("keep buying chocolate bars to get more coupons for a bonus chocolate bar")
}
}
*
Answer:
1. PowerPoint online
2. Goógle Slides
Explanation:
There is a various free, proprietary, and online software for multimedia presentations available for use. Some of which include:
1. PowerPoint online: this is an online and free version of Microsoft Office PowerPoint software. Some of its features include text formatting, use of animations, cloud storage among others.
2. Goógle Slides: This is a product of Goógle to make the multimedia presentation of documents available online. It also offers many feature including cloud storage.