Question: how do i do problem 1? it's due soon. thanks. please write c++ code using for statement and it statement X x Printing out numb
X x Printing out numb x.g 04-Nestedloop 1-X y M ECE 175 Lab2 . isal Prove That- i Secure l https://mail.google.com/mail/u/0/#inbox/15e7doeSd9148f587projector 1 Lab2 _Wed.pd Open with DocHub-View, Edit . ECE 175: Computer Programming for Engineering Applications Lab Assignment #2 (Wednesday sessions) To be demonstrated in the lab during the week of September 11-15 Relevant Programming Concepts: Conditional branching structures (if-else statements) Loop Structure Problem 1: Multiples of 9 Develop a C program that displays all positive integers from I to n that are divisible by 9.1t also prints the total number of values that are found and the total sum of all values that are found. The value of n is entered by the user Sample Code Execution: Red text indicates information entered by the user Enter the value of n: 48 9 18 27 36 45 Total numbers found: 5 Total sum of numbers found: 135 Total sum of numbers found: 0 Total sum of numbers Enter the value of n: 110 9 18 27 36 45 54 63 72 8190 99 108 Total numbers found: 12 Enter the value of n 5 Total numbers found: 0 Enter the value of n: 212 9 18 27 36 45 54 63 72 8190 99 108 117 126 135 144 153 162 171 180 189 198 207 Total sum of numbers found: 2484 Problem 2 Converting Positive Integers to Binary Representation We would like to write a C program to intege convert a decimal representation of a positive w chart on the next page describes how the r to binary representation The flo algorithm works Use appropriate loop types to construct the al Make sure your algorithm prints out 0 for an input of 0 section 2.23 in the textbook for Binary and Decimal. Decimal number 181 Page 1 o
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
