Answer:
oh sorry i needed points but i have a friend whos user starts with dida
Explanation:
Answer:
- var today = new Date();
- var dateComp = [];
- dateComp[0] = today.getDate();
- dateComp[1] = today.getMonth();
- dateComp[2] = today.getFullYear();
-
- switch(dateComp[1]){
- case 0:
- console.log("Jan " + dateComp[0] + "," + dateComp[2])
- break;
- case 1:
- console.log("Feb " + dateComp[0] + "," + dateComp[2])
- break;
- case 2:
- console.log("Mar " + dateComp[0] + "," + dateComp[2])
- break;
- case 3:
- console.log("Apr " + dateComp[0] + "," + dateComp[2])
- break;
- case 4:
- console.log("May " + dateComp[0] + "," + dateComp[2])
- break;
- case 5:
- console.log("Jun " + dateComp[0] + "," + dateComp[2])
- break;
- case 6:
- console.log("Jul " + dateComp[0] + "," + dateComp[2])
- break;
- case 7:
- console.log("Aug " + dateComp[0] + "," + dateComp[2])
- break;
- case 8:
- console.log("Sept " + dateComp[0] + "," + dateComp[2])
- break;
- case 9:
- console.log("Oct " + dateComp[0] + "," + dateComp[2])
- break;
- case 10:
- console.log("Nov " + dateComp[0] + "," + dateComp[2])
- break;
- case 11:
- console.log("Dec " + dateComp[0] + "," + dateComp[2])
- break;
- }
Explanation:
The solution code is written in JavaScript.
Firstly, create a Date object (Line 1). The date object will automatically capture the current date and time.
Next create an array dateComp to hold the day, month and year (Line 3 -5). We use the getDate method to get current day, getMonth method for current month and getFullYear method for current year.
This is important to note that the getMonth method will return the value range from 0 - 11 with the Jan is represented as 0, Feb is 1 and so forth. Presume we intend to display the date using the format "month day, year", we can create a switch structure to check the month value which is range from 0 to 11. If month value is 0, generate string Jan + current day + "," + current year. We generate the date string based on different switch cases (7 - 44). We shall see the output similar to the date string as shown below:
Apr 12,2020
Answer:
Giving that: The following is a sequence of undo-log records written by 2 transactions T and U:
< START T >;
< T,A,10 >;
< START U >;
< U, B, 20 >;
< T, C, 30 >;
< U, D, 40 >;
< Commit U >;
< T, E, 50 >;
< Commit T >;
1. < START U >
Recovery action in this case will be undo(-1) and undo(0). All restored to its original Value
log records < T, A, 10 >, < T, abort >; as written out
2. < T, E, 50 >
Recovery action in this case will be undo(8) and redo(0). A and C is restored to its original value, B and D are set to 20 and 40
log records <T, C, 30 >, < T, A, 10 >, < T, abort > are written out
3. < Commit T >
Recovery action in this case will be redo(7) and redo(4). A and C are set to 10 and 30, B and D are set to 20 and 40
Answer: 1)System Palette
Explanation: System palette is kind of palette found in the system which contain the color values that is used by the display.This palette is also drawing of the devices and applications.But the application don't get the direct access to the system palette rather logical palette permits it.
They work on the basis of the properties carried from the Back color and Fore color.Other palettes mention in the option is incorrect because these palettes don't work for the operating system's display .Thus the correct option is option(1).