Answer:
#include<iostream>
int main()
{
int count=0;
int so_phan_tu;
std::cout << "nhap so phan tu : \n";
std::cin >> so_phan_tu;
int* A = new int[so_phan_tu];
std::cout << "nhap cac phan tu : \n";
for (int i = 0; i < so_phan_tu; i++)
{
std::cin >> A[i];
if (A[i] % 5 == 0)
{
count++;
}
}
std::cout << so_phan_tu - count;
system("pause");
return 0;
}
//cái này viết bằng C++ em nhé
Explanation:
Answer:
Following are the program definition in the Java Programming Language.
//define a class
public class Clock
{
//set integer type variable and initialize value
private int hours=12;
//set boolean type variable and initialize value
private boolean isTicking=true;
//set integer type variable and initialize value
private Integer diff=5;
}
Explanation:
Following are the description of Code.
- Firstly define a class "Clock" with the "private" access modifier.
- Then, set the integer data type variable "hours" with the "private" access modifier and assign value 12 in that class.
- After that, set the boolean data type variable "isTicking" with the "private" access modifier and assign value "true".
- Finally set Integer class variable "diff" with the the private access modifier and assign value 5.
Answer:
The function in Python is as follows:
def greetings(details):
details = details.split(' ')
print('Hello, '+details[0]+'!, I also enjoy '+details[2])
Explanation:
This defines the function
def greetings(details):
This splits the input string by space
details = details.split(' ')
This prints the required output
print('Hello, '+details[0]+'!, I also enjoy '+details[2])
After splitting, the string at index 0 represents the name while the string at index 2 represents the hobby
Answer: c)Roaming user profiles
Explanation:Roaming user profiles are those profiles that creates the copy from the local profile and get stored in the network server. Roaming user profiles haves the function of getting logged in any computer system that the user is processing by getting downloaded.
It has the advantage of not creating profiles on every computer system that user wants to login .Thus, the correct answer is option(c) because other profiles mentioned in the option cannot copy the profile in the server and so do not have capability to be accessed in other computer system.