The reasons that the if statement is not working may be due to
Syntax errorsVariable typesLogic errorsScope issuesWhat is the program about?If statement not working, one need to Check syntax and variable types. Check for logic errors when comparing different data types, as the intended comparison may not occur as expected.
Therefore, the a possible logic error causing if statement to work incorrectly. Check variable scope. Declaring a variable outside the function may make it inaccessible inside.
Learn more about program from
https://brainly.com/question/1538272
#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)
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
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
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:
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