To convert the inputs to dollars and cents, we make use of a combination of multiplication and addition.
The program written in Python where comments are used to explain each line is as follows:
<em />
<em>#This gets input for the number of quarters</em>
quarters = int(input("Quarters: "))
<em>#This gets input for the number of dimes</em>
dimes = int(input("Dimes: "))
<em>#This gets input for the number of nickels</em>
nickels= int(input("Nickels: "))
<em>#This gets input for the number of pennies</em>
pennies= int(input("Pennies: "))
<em>#This converts the amount to dollars and cents</em>
dollars = quarters * 0.25 + dimes * 0.10 + nickels * 0.05 + pennies * 0.01
<em>#This prints the amount to 2 decimal places</em>
print("Amount ${:.2f}".format(dollars))
Read more about Python programs at:
brainly.com/question/22841107
Answer:
public class print{
public static void fillArray(int[] arr, int initialValue){
int n = arr.length;
for(int i=0;i<n;i++){
arr[i] = initialValue++;
}
for(int i=0;i<n;i++){
System.out.print(arr[i]+" ");
}
}
public static void main(String []args){
int[] array = new int[5];
int initialValue =3;
fillArray(array,initialValue);
}
}
Explanation:
Create the function with two parameter first is array and second is integer.
Then, declare the variable and store the size of array.
Take the for and fill the array from the incremented value of initialValue by 1 at every run of loop.
After loop, print the element of the array.
Create the main function which is used for calling the function and also declare the array with size 5 and initialValue with 3. After that, call the function with this argument.
Answer:
File manager
Explanation:
From the list of options 1 to 4, only option (2) is correct
Explaining the options one after the other
- Web browser: It lets users access the internet
- File Manager: Used to create and manage files/folders
- User Interface: Means which the user of a computer interacts with the computer
- File Reader: Used to read the content of a file. e.g. Adobe reader for pdf files, Notepad for text files, etc.
Having explained the options one after the other, <em>the file manager </em>is the answer to this question.
Answer:
1. B 2. D
Explanation:
If computers share processing power, it is just a larger computer.
Answer:
Check your DNS settings
Explanation:
Different errors may occur when setting up your computer to connect to the internet, one of which is described in the question above.
The DNS (Domain Name System) is responsible for redirecting domain names to their physical IP address. Instead of remembering every IP address of sites you visit frequently, domain names are used for easy remembrance, the DNS makes the matching of domain names to IP addresses possible.
To change your DNS setting follow these steps:
- Click settings from your start menu
- Click on Network and Internet
- Look to the bottom of the main page and click on "Network and Sharing Center"
- On the left tab, click "Change adapter settings"
- Right Click on the current network you are using and select properties
- Left-click on the "Internet Protocol Version 4 (TCP/IPv4) and click on properties.
- Check to see if "Obtain DNS server address automatically" is selected, if it is selected,
- Click on the radio button under it "Use the following DNS server address"
- Enter the DNS address you want to use
- Click Ok and close the window.
The problem should be resolved.