Answer:
#include <iostream>
#include <vector>
using namespace std;
void swapFrontBack(vector<int>& nums) {
if(nums.size() < 2) {
return;
}
swap(nums[0], nums[nums.size()-1]);
}
void printit(vector<int>& arr) {
for(int i = 0; i < arr.size(); i++) {
cout << arr[i] << " ";
}
cout << endl;
}
int main() {
vector<int> num1;
swapFrontBack(num1);
printit(num1);
num1.push_back(1);
swapFrontBack(num1);
printit(num1);
num1.push_back(2);
swapFrontBack(num1);
printit(num1);
vector<int> num2(10, 1);
num2[9] = 2;
swapFrontBack(num2);
printit(num2);
return 0;
}
Explanation:
Part 1926 & Part 1910
hope this helps
The commonly attributed name of the threat actor is called ZINC. A wide range of social engineering campaigns using weaponized legitimate open-source software by an actor tracked as ZINC.
ZINC weaponizing a wide range of open-source software including PuTTY, KiTTY, TightVNC, Sumatra PDF Reader, and muPDF/Subliminal Recording software installer for these attacks.
Who is ZINC?
ZINC is a nation-state activity group that is highly operational, destructive, and sophisticated. Active since 2009, the activity group gained public attention in 2014 after a successful attack on Sony Pictures Entertainment. ZINC is known to employ a number of custom remote access tools (RATs), including those identified by Microsoft as FoggyBrass and PhantomStar.
ZINC seeks to coerce employees of companies it is attempting to infiltrate into installing seemingly benign programs or opening weaponized documents containing malicious macros.
To know more about Open Source Software(OSS), visit: brainly.com/question/4593389
#SPJ4
Answer:
Microsoft Windows - More susceptible to viruses
Linux - Limited support system
Apple - Fewer compatible applications
Explanation:
Generally windows is more susceptible to viruses.
Linux is open source meaning it's up to the community to help you.
Apple has been supporting more applications in these coming years but it still lacks the wide range of apps windows supports.
Answer:
Written in Python:
dollars = int(input("Amount: "))
numFive = int(dollars/5)
numOnes = dollars%5
print(str(dollars)+" yields "+str(numFive)+" fives and "+str(numOnes)+" ones.")
Explanation:
This line prompts user for input
dollars = int(input("Amount: "))
This line calculates the number of 5 that can be gotten from the input. This is done using integer division
numFive = int(dollars/5)
This line gets the remaining ones. This is done by using the modulo sign to get the remainder when input is divided by 5
numOnes = dollars%5
This line prints the required output
print(str(dollars)+" yields "+str(numFive)+" fives and "+str(numOnes)+" ones.")