Answer:
Written in Python
import math
degreesF = float(input("Enter a temperature in degrees Fahrenheit: "))
degreesC = round(5 * (degreesF - 32)/9,1)
print(degreesC)
Explanation:
The following header allows you to use Math.Round() method in Python
import math
The following prompts the user for temperature in degrees Fahrenheit
degreesF = float(input("Enter a temperature in degrees Fahrenheit: "))
The following calculates the degree Celsius equivalent and also round it up
degreesC = round(5 * (degreesF - 32)/9,1)
The following prints the degree Celsius equivalent
print(degreesC)
Answer:
The answer is "Option d"
Explanation:
The wardrobe engineering consists of choosing clothes that are so simple in design and better in the style that they are acceptable to the existing show-up and perfect for the future years. This design Originally coined Dressing for Confidence author John Molloy, which describe that clothes and accessories can also be used to create a certain picture, and wrong choices can be described as follows:
- In option a, It's right, that we know about current fashions, but selecting suitable career apparel is not important, that's why it is incorrect.
- In option b, It is wrong because whatever you wear is not to make choices of any sort.
- In option c, It is wrong because it can't provide promotion.
Answer:
Option 1: May crash at runtime because it can input more elements than the array can hold
Explanation:
Given the code as follows:
- int[] a = {1, 3, 7, 0, 0, 0};
- int size = 3, capacity = 6;
- int value = cin.nextInt();
- while (value > 0)
- {
- a[size] = value;
- size++;
- value = cin.nextInt();
- }
From the code above, we know the <em>a</em> is an array with six elements (Line 1). Since the array has been initialized with six elements, the capacity of the array cannot be altered in later stage.
However, a while loop is created to keep prompting for user input an integer and overwrite the value in the array started from index 3 (Line 4- 9). In every round of loop, the index is incremented by 1 (Line 7). If the user input for variable <em>value</em> is always above zero, the while loop will persist. This may reach a point where the index value is out of bound and crash the program. Please note the maximum index value for the array is supposedly be 5.
Explanation:
it looks like there aren't many great matches for your search
Tip Try using words that might appear on the page that you’re looking for. For example, 'cake recipes' instead of 'how to make a cake'.
I hope you help