This Python program continually prompts the user for numbers, calculating the sum and count. Once the sum surpasses 100, it outputs the sum and the count of entered numbers.
Here's a simple Python program that achieves the described functionality:
```python
def main():
sum = 0
count = 0
while sum <= 100:
try:
num = float(input("Enter a number: "))
sum += num
count += 1
except ValueError:
print("Invalid input. Please enter a valid number.")
print(f"\\Sum: {sum}\\Numbers Entered: {count}")
if __name__ == "__main__":
main()
```
Copy and paste this code into a Python environment, and it will prompt you to enter numbers until the sum exceeds 100. It will then display the sum and the count of entered numbers based on the sample run you provided.
The complete question is:
Write a program that inputs numbers and keeps a running sum. When the sum is greater than 100, output the sum as well as the count of how many numbers were entered.
Sample run:
Enter a number: 1
Enter a number: 41
Enter a number: 36
Enter a number: 25
Sum: 103
Numbers Entered: 4