Read floating-point numbers from input until a floating-point number is read that is not in the range -10.0 to 45.0, both exclusive. Then, find the sum of all the floating-point numbers read before the floating-point number that causes reading to stop. Lastly, output the sum, ending with a newline.
Ex: If the input is -9.0 -6.3 -17.5 -3.6 -5.3 -4.3 -8.6, then the output is:
-15.3
The name "floating point numbers" refers to how the decimal point can "float" to any required location. The binary fraction has value 0/2.
Thus, Because of this, floating point numbers are frequently referred to as "floats" in computer science. In computer science, integers, short, and long numbers are also frequent forms of numbers.
In the same manner that the binary fraction 0.001 has value as 0/2 + 0/4 + 1/8, the decimal fraction 0.125 has value as 1/10 + 2/100 + 5/1000.
The only actual difference between these two fractions is that the first is expressed in base 10 fractional notation and the second in base 2, even though their values are identical. Sadly, the majority of decimal fractions cannot precisely be expressed as binary fractions.
Thus, The name "floating point numbers" refers to how the decimal point can "float" to any required location. The binary fraction has value 0/2.
Learn more about Floating numbers, refer to the link:
https://brainly.com/question/13151971
#SPJ1
write the pseudocode to input 5 numbers from the keyboard and output the result
Answer:
Explanation:
// Initialize variables
total = 0
counter = 1
// Loop to get 5 numbers
while counter <= 5 do
// Get input from user
input_number = input("Enter number " + counter + ": ")
// Convert input to a number
number = parseFloat(input_number)
// Add number to the total
total = total + number
// Increment counter
counter = counter + 1
end while
// Calculate the average
average = total / 5
// Output the result
print("The total is: " + total)
print("The average is: " + average)
What was the main subject of Ralph Nader's book, Unsafe at any Speed?
O the importance of political action committees and lobbyists
O the way non-profit organizations can affect governmental policies
O the lack of U.S. automobile manufacturing safety standards
O the way the U.S. government infringes on liberties by implementing safety policies
Answer:
the lack of U.S. automobile manufacturing safety standards
Explanation:
Which option combines the selected layer with the one immediately below it, without
affecting other layers in the file?
Flatten Layers
Flatten Selected
Merge Down
Merge Visible
Answer:
The option that combines the selected layer with the one immediately below it, without affecting other layers in the file, is "Merge Down".
Explanation:
Flatten Layers combines all visible layers into a single layer, while Merge Visible combines all visible layers into a single layer, but keeps hidden layers separate. Merge Down, on the other hand, combines a selected layer with the one directly below it. So if you have Layer 1 and Layer 2 selected, Merge Down will combine Layer 2 with Layer 1. This is useful if you want to merge a specific layer with the one directly beneath it, while keeping other layers separate.
Given the list primes, ``primes = [2, 3, 5, 7, 11, 13, 17, 19, 23,29]``, How do you obtain the primes 2 and 13? Select one: a. primes[::6] b. primes[::4] c. primes[::5] d. primes[::13]
Explanation:
1.Prime numbers are those numbers when factorize they split into the same number itself and 1.
2.The factorization of 2 is as follows: x
3.The prime factor of 2 contains 2 itself as well as 1, and therefore it is a prime number.
4.The factorization of 13 is as follows: ×
5.Therefore, 13 is also prime because of its prime factors.
E
State two skills to be used to access information from the internet inorder to avoid unwanted materials
Answer:
Two skills that can be used to access information from the internet while avoiding unwanted materials namely effective search strategies, critical evaluation of sources.
give a brief description of how you would reach as many people as possible in a report
In order to reach as many people as possible in a report, one could follow these general steps:
What are the steps?Define the target audience: Identify who the report is intended for, and what their interests, needs, and preferences might be.
Use clear and concise language: Use language that is easy to understand, and avoid technical jargon and complex terminology.
Use visual aids: Incorporate visual aids such as graphs, charts, and images to make the report more engaging and easier to understand. Visual aids can help convey complex information quickly and effectively.
Learn more about report on
https://brainly.com/question/26177190
#SPJ1
What is not an option when a user is exporting contacts to share with others?
VCARD files
Electronic business cards
XML
CSV
An option when a user is exporting contacts to share with others is the VCARD files option
What is VCARD?VCF, or vCard, is a file format standard for electronic business cards. vCards can be attached to e-mail messages, sent over MMS, the World Wide Web, instant messaging, NFC, or via QR code.
A vCard allows you to communicate contact information in a format that other e-mail systems can readily read. A vCard is saved as a. vcf file, which is the Internet standard for storing and distributing contact information.
Learn more about VCARD files here:
https://brainly.com/question/18240279
#SPJ1