Answer:
// here is code in java.
import java.util.*;
// class definition
class Main
{
// method that return total fare
public static double fare(double dis)
{
// calculate the total fare
double tot_fare=(4+((dis*1000)/140)*0.25);
return the fare
return tot_fare;
}
//driver method
public static void main (String[] args) throws java.lang.Exception
{
try{
// scanner object to read input string
Scanner s=new Scanner(System.in);
// variable
double dis;
System.out.print("please enter the distance in KM: ");
//read the number
dis=s.nextDouble();
// call the function with "dis" parameter
double ride_fare=fare(dis);
// print the total fare
System.out.println("total fare is: "+ride_fare);
}catch(Exception ex){
return;}
}
}
Explanation:
Read the distance from user with the help of scanner class.Call the function with parameter "dis".Here it will calculate the total fare as (4+((dis*1000)/140)*0.25). Here base fare is $4 and $0.25 for every 140 meter.Then function will return the total fare.
Output:
please enter the distance in KM: 7
total fare is: 16.5
<span>The correct answer is: Option (C) Underlined
Explanation:
In Microsoft Word (version 2007 and version 2010), the following commands you can use:
1. Bold
2. Highlight Text
3. Font Size
4. Italics
5. Underline
6. Format Painter
7. Increase indent of text
8. Decrease indent of text
9. Increase font size
10. Center text (alignment)
Word count, save as and insert citation commands do not exist in the mini-toolbar. Hence, the correct option is Option (C) Underlined</span>
Answer:
- Used to include additional information in an element
- May be required for certain elements
- Consist of a keyword followed by an equals sign and additional information in quotes
Explanation:
<a href="website link goes here"> <---- example element with an attribute.
- You can see the <a> element which creates a link requires a "href" (which means "Hypertext Reference", basically a fancy way of saying a link to another page) attribute for the source of the link.
- The keyword "href" is followed by an equals and wrapped in quotes.
- Can be used to include additional information, like how you can use the keyword "alt" with an <img> tag to add text that shows up when you hover over it.
----------------------------------------------------------------------------------------------------------
In response to the other answers:
- The attribute itself is not wrapped in angle brackets, though it does sit within them. It is the *element* that is wrapped in angle brackets.
- The attributes are not added to the end (closing) tag, they are added to the opening tag.
Answer:
Spyware
Explanation:
Spyware is the software which is used to track the online movements, it also track the user action on the computer they are also called sneakware or stealthware
- This software is used in the business purpose which it may be used in the office to track the record of employee in the working hours .
- Spyware software is used to track the information without knowing the user.
Answer:
def wordLineCount(file):
dic = {}
with open(file,'r') as file:
text = file.read()
text = text.strip().split()
for word in text:
if word in dic:
dic[word] += 1
else:
dic[word] = 1
return dic
print(wordLineCount('ben.txt'))
Explanation:
The programming language used is python.
The program starts by defining the function, an empty dictionary is created to hold the words and the number of times that they occur. the with key word is used to open the file, this allows the file to close automatically as soon as the operation on it is finished.
The data in the file is read to a variable text, it is striped from all punctuation and converted to a list of words.
A FOR loop and an if statement is used to iterate through every word in the list and checking if they are already in the dictionary. if the word is already contained in the dictionary, the number of occurrences increases by one. otherwise, it is added to the dictionary.
check the attachment to see code in action.