Use currency conversion dialog box select rupee to us dollar
Answer:
- You need to create a variable outside (before) the input loop.
- You need a variable inside your loop that temporarily holds the user input.
- In your loop, you will compare if the variable outside the loop is greater than (or less than) the new user input.
I don't know what program language you are using, but I will use python since it's easy to read and you will get the idea if you're using a different programming language.
<u>Code (Python)</u>
largestnum = 0
for x in range(6): <em>#loops 6 times</em>
newnum = int(input("Enter a number: ")) #ask user for input & converts to int.
if newnum > largestnum: <em>#if new number is greater than largest num </em>
largestnum = newnum <em>#make it the largest number</em>
<em> </em>print("Largest:", largestnum)
The reason why you need a variable outside of the loop is because after the loop is done all variables inside the loop are trashed and can no longer be accessed outside of the loop.
Answer: Quarentine the files
Explanation:
Hi, when an possible infected file is in quarantine, it means that is deleted from its original location and instead is putted in other location where it cannot longer affect the system. If there was a virus in the file, it is no harmless.
You can decide later if you want to delete it permanently or if not.
Answer:
Selection control structure
Explanation:
This is often referred to as if-conditional statement;
This condition tests for a condition and performs a sequence of operation depending on the result of the condition;
Take for instance, the following program written in python
<em>x = int(input("enter any number: "))</em>
<em>if x < 0:</em>
<em> print("Yes")</em>
<em>else</em>
<em> print("No")</em>
<em />
The above checks if the input number is less than 0,
If the condition is true, it prints Yes
If otherwise, it prints No
ksoxkajsjjwjxjxiqwikwkak,hsjsjskxkososlajzhxjwjskksoa