Answer:
public static void printDottedLine(){
System.out.print(".....\n");
}
Explanation:
This method returns nothing so its return type is void
It also accepts no parameters so the argument list is empty
When called it executes the System.out.print(".....\n"); which prints out 5 dots
See a complete program below:
public class TestClock {
public static void main(String[] args) {
printDottedLine();
}
public static void printDottedLine(){
System.out.print(".....\n");
}
}
#include <stdio.h> //stdio stands for STanDard Input/Output
Answer: The code below can display directory as stated in the question
Explanation:
char *
gnu_getcwd ()
{
size_t size = 100;
while (1)
{
char *buffer = (char *) xmalloc (size);
if (getcwd (buffer, size) == buffer)
return buffer;
free (buffer);
if (errno != ERANGE)
return 0;
size *= 2;
}
}
Answer:
Create or replace trigger at_advisor
after delete or insert or update on advisor
for each row
Begin
if inserting
then
insert into
log_maj_adv
values
(
user, :new.adv_code, sysdate, 'insert'
)
;
elsif deleting
then
insert into
log_maj_adv
values
(
user, :new.adv_code, sysdate, 'delete'
)
;
else
insert into
log_maj_adv
values
(
user, :new.adv_code, sysdate, 'update'
)
;
end if;
End;
Explanation:
as per above answer.
Solution :
Public Function Is a Leap_Year(Year As_Integer) As Integer
'Dim Tor_F for local variable declaring if value is t/f.
Dim TorF As For Boolean
'Pre conditions: Year > 1581 and Year < 3000
If Year > 1581 And Year <> 1700 Or 1800 Or 1900 Then
IsLeapYear = Year / 4
Else
IsLeapYear = False
TorF = False
End If
End Function