Answer:
Code in C++
Explanation:
C++ Code
#include<iostream> //for input and output
using namespace std;
int main()
{
int hour;
int minute;
cout<<"Enter the hour:";
cin>> hour;
cout<<"Enter the minute:";
cin>>minute;
minute = minute+15;
if(minute>=60){
hour++;
minute=minute-60;
}
if(hour>=24){
hour=0;
}
cout<<"Hours: "<<hour<<endl;
cout<<"Minutes:"<<minute;
return 0;
}
Code Explanation
First we need to declare two int variables to hold hour and minute values input from user.
Check if by adding 15 minutes into minute entered by user is greater then or equal to 60 then increment into hour and subtract 60 from minute.
Another check is that if user enters more then 24 hour or by making increment into hour, the hour values i greater then or equal to 24 then we need to change the hour to 0.
Result
Case 1:
Enter the hour:8
Enter the minute:15
Hours: 8
Minutes:30
Case 2:
Enter the hour:9
Enter the minute:46
Hours: 10
Minutes:1
Answer:
Check the explanation
Explanation:
LI system and software engineering concepts, the use cases are widely used Use case is a collection of eve. or actions steps, it mainly defining the interactions between a system and a role for achieving a specific goal.
Here the actor can he external system or a human being:
For identifying the use case, the below steps needs to he followed
• Identify the actors involved in the system.
- In our task the actors are the student and the owners
• Identify the actor's goals
- Goals are the activities performed
• Identify the use case candidates
The persons who are all actively involved in the use case
• Identify the use case starting points
• Identifying the use case ending points
• rind the scope and the unit of interactions in the use case
Identifying the steps in Housing system:
• Several implementation steps are provided in the task that needs to he identified in this particular stage
• The housing system is helping the stuck,. for finding the con. apartments which is meeting their requirements
Check the below diagram.
Answer:
cookies are stored on client side.
A hacker would need access to your computer, either by physically reading the cookie data or by means of cross-site scripting.
Other than that, cookies should not contain passwords or credit card numbers, just things like preferences or session identifiers.
Answer:
Python Code:-
#creating a list
current_members = [4, 6, 9]
#defining the variable
#assigning the value
member_id = 9
#defining variable count
count = 0
#defining the variable and setting initial value to true
is_a_member = False
#for loop is used to iterate over the list
for x in current_members:
#if statement will check whether the element is found
if x == member_id:
#set the value to true if the value is matched
is_a_member = True
#set the value to 1
count = 1
#if count == 0
#set the value of is_a_member variable to false
if count == 0:
is_a_member = False
#print the current value stored in is_a_member variable
print(is_a_member)
Explanation:
In the above python program, a list is created that is "current_members" and some values are inserted. In the next line, a three-variable is defined that are member_id, count, and is_a_member.
- In both variable member_id, count assigns some value. and in is_a_member variable assign a False value.
- Using a for loop to iterate over the list.
- Inside the loop, If the statement will check whether the element is found. Then set the value of is_a_member variable to True and count to 1.
- Another if the statement is used which checks the value of the count variable. If the value of count is 0 then set the value of is_a_member to False.
- print() function is used to display the current value of is_a_member variable.
Answer:
The answer to this question is given below in the explanation section.
Explanation:
My laptop's current screen resolution is (1366 by 768 recommended). When you change your screen resolution, your pc automatically suggests the recommended screen resolution that helps you to view more information on your screen and enable you to fit the most information on the screen while still being able to read the display.
To change the screen resolution, you need to go through from the following steps:
- Right-click on empty space of desktop.
- As you right-click, a list of options will open, select "display setting" among them
- A new setting window will get open, at the left of the window, among given option, click on the first option i.e "display"
- The content of the display setting gets open in the right area of the window. scroll down and find the "Scale and Layout"
- under scale and layout, you can change your screen resolution while selecting the different screen resolution. However, it is good to select the recommended screen resolution based on your screen size.