Answer:
The program in C++ is as follows:
#include <iostream>
using namespace std;
int main(){
int qty;
float discount = 0;
cout<<"Quantity: ";
cin>>qty;
int cost = qty * 100;
{
; }
cout<<"Cost: "<<cost - discount;
return 0;
}
Explanation:
This declares the quantity as integer
int qty;
This declares and initializes discount to 0
float discount = 0;
This prompts the user for quantity
cout<<"Quantity: ";
This gets input for quantity
cin>>qty;
This calculates the cost
int cost = qty * 100;
If cost is above 1000, a discount of 10% is calculated
{
; }
This prints the cost
cout<<"Cost: "<<cost - discount;
Division in Java will return the integer value and disregard the remainder. This line of code will return 4.
:)
Answer:
Split Infection
Explanation:
In the split infection technique, each time the file is opened either by the user or the system operating system, the virus copy itself into another file on the same system and unload malicious payloads to perform some actions. While this is ongoing, the virus erase file from the user hard drive and might even go as formatting the hard disk drive.
It should be noted that the virus cannot transfer itself from one computer to another
The matching tools to the corresponding situation are;
A) Disk Cleaner - Jane notices her computer is slow and needs to delete unwanted files storage.
B) Data Recovery Utility - Phil has a corrupted drive and needs to extract the files he can.
C) Diagnostic Program - Soma wants to check the hardware and software status of the computers at her office.
D) Anti-virus - Zayne needs to scan her computer and remove infected programs.
A) Disk Cleaner; This is a tool that is used to help free up some space on the hard disk. The statement that corresponds to use of disk cleaner is that; Jane notices her computer is slow and
needs to delete unwanted files storage.
B) Data Recovery Utility; This is a tool used to extract data from corrupt storage devices or extract deleted files. The statement that corresponds to use of data recovery utility is; Phil has a corrupted drive and needs to
extract the files he can.
C) Diagnostic Program; This is a software tool that is used primarily to identify or diagnose problems with a particular set of hardware devices. The statement that corresponds to use of diagnostic program is; Soma wants to check the hardware and software status of the computers at her office.
D) Antivirus; This is a security tool used to scan a computer to check for infected files and programs and to remover them. Statement that corresponds to this tool is; Zayne needs to scan her computer and remove infected programs.
Read more about computer diagnostics at; brainly.com/question/8384714