Question: Unit 6-1: Programming Assignment Strings Submit Assignment Due Wednesday by 11:59pm Points 26 Submitting a file upload File Types py Write a program that asks
Unit 6-1: Programming Assignment Strings Submit Assignment Due Wednesday by 11:59pm Points 26 Submitting a file upload File Types py Write a program that asks the user to enter a series of single-digit numbers with nothing separating them. The program should display the sum of all the single digit numbers in the string. For example, if the user enters 2514, the method should return 12, which is the sum of 2, 5, 1, and 4. Think about loops: how many times do we loop? Do we know how to find the length of a string? How do we access each member of a string?? (if you are lost go back and review section 6.2 and section 6.3. Also make sure and look at the video.) Submit your code file. Programming Rubric - Strings Criteria Ratings Pts 2 pts O pts No Points Total points You should make sure there are NO syntax errors.. Code has NO syntax errors If the code has syntax errors you need to fix them before you submit them 2 pts 4 pts Code runs WITHOUT fatal errors O pts No Points Total Points If your code fails that is a bad thing... Sometime the code will hit an error due to the input or improper 4 pts
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
