(a) reads a user input integer that computes and displays the sum id the digits in the integer. (b) Computes and display

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899603
Joined: Mon Aug 02, 2021 8:13 am

(a) reads a user input integer that computes and displays the sum id the digits in the integer. (b) Computes and display

Post by answerhappygod »

(a) reads a user input integer that computes and displays the sum id the digits in the integer.
(b) Computes and displays 3 times the sum found in part (a)
(c) test the program with the three trial integers given: 256, 2310 , and an 8 digit integer picked by you.
these are the simplified requirements i will post a picture of an example.
A Reads A User Input Integer That Computes And Displays The Sum Id The Digits In The Integer B Computes And Display 1
A Reads A User Input Integer That Computes And Displays The Sum Id The Digits In The Integer B Computes And Display 1 (35.42 KiB) Viewed 16 times
1. (28%) Write a C# program (console application project or any other project type you are comfortable with) that (this question is the same as exercise 1 question). (a) (10%) Reads an integer from keyboard and computes and displays the sum of digits. (for example, if you input 2310, it should compute 2+3+1+0=6 and display "The sum of digits of 2310 is 6" Note: you should not have special logic using integers like 100, 1,000, 10.000 etc. However integer 10 is needed. Also do NOT use arrays or strings to do this question, it can be done by for loop and arithmetic expressions: +-*/%. (b) (8%) Computes and displays 3 times the sum of digits in part (a). For example, if 2310 is read in, you will compute and display "3 times the sum of digits of 2310 is 18" (c) (10%) Test your program with 3 integers: 256, 2310, and an integer of 7 digits or 8 digits picked by you.
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply