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
The creator of the MyDoom virus is still unknown. This is known to be a worm that was said to have appeared in a from of a poorly sent e-mail, and a lot of people who originally were sent the e-mail did ignored it, thought it was a spam and they ignored it and as such, , it was said to have spread to infect about 500 thousand computers in the whole world.
<h3>What does MyDoom virus do?</h3>
The MyDoom virus was said to be the one that brought about a lot of loss in the whole globe.
The MyDoom is known to be an effective worm that was created to make zombies out of lots of thousands of computers.
Note that the Hackers are able hijacked terminal to wage a kind of denial of service (DoS) attack to any firm that they do identified.
The virus is known also as Novarg as it is a“worm,” sthat do pread by mass emailing.
Therefore, The creator of the MyDoom virus is still unknown. This is known to be a worm that was said to have appeared in a from of a poorly sent e-mail, and a lot of people who originally were sent the e-mail did ignored it, thought it was a spam and they ignored it and as such, , it was said to have spread to infect about 500 thousand computers in the whole world.
Learn more about Virus from
brainly.com/question/14887682
#SPJ1
Prediction I believe is the answer mark me brainliest please
The two major SAS steps are data and proc.
SAS programming structure is based on two essential steps, Data and Proc.
1. The DATA step:
This involves collecting and uploading the essential data to the program memory. It is used to update, modify and edit the data in case of any errors once it has been added to a dataset. New datasets can be created from existing ones by updating, editing, and/or merging them. at the end of this step, SAS data sets are created.
2. The PROC step:
This step processes and analyses the data collected into datasets in the previous step. it is used to perform specific functions on the data. at the end of the proc step, a result or report is produced.
In a SAS code, each line of code should begin either with a DATA or PROC step.
<u>While the other options are incorrect because: </u>
<u />
- Analysis: analysis is done in the PROC step.
- Content: Data or content is collected in the DATA step.
- Stat: a stat function acquires the status information regarding a specific file. Functions are performed on the datasets in the PROC step.
- Run: This command is used to execute a code.
- Import: Datasets are created by importing data from other datasets and outside.
- Print: the report produced at the end of the PROC step can be printed as a hard copy.
You can learn more about SAS at
brainly.com/question/13615203
#SPJ4