Answer:
# Program is written in Python Programming Language
# Comments are used for explanatory purpose
# Program starts here
# Accept input
Steps = input (Number of Steps: ")
# Calculate distance
distance = float(2000) * float(steps)
#Print Formatted Result
print('%0.2f' % distance)
# End of Program
.--------
The above program converts number of steps to miles.
At line 5, the number of steps is inputted and stored in variable named Steps.
At line 6, the number of miles is calculated by multiplying 2000 by the content of variable Steps
The result is printed at line 8
Answer:
- using System;
- public class Program
- {
- public static void Main()
- {
- Console.WriteLine("Enter number of students: ");
- int num = Convert.ToInt32(Console.ReadLine());
- string [] firstName = new string[num];
- string [] lastName = new string[num];
-
- for(int i=0 ; i < num; i++){
- Console.WriteLine("Enter first name: ");
- firstName[i] = Console.ReadLine();
-
- Console.WriteLine("Enter last name: ");
- lastName[i] = Console.ReadLine();
- }
-
- for(int j=0; j < num; j++){
- Console.WriteLine(lastName[j] + "," + firstName[j]);
- }
- }
- }
Explanation:
Firstly, prompt user to enter number of student to be stored (Line 6- 7). Next, create two array, firstName and lastName with num size (Line 8-9).
Create a for-loop to repeat for num times and prompt user to enter first name and last name and then store them in the firstName and lastName array, respectively (Line 11 - 17).
Create another for loop to traverse through the lastName and firstName array and display the last name and first name by following the format given in the question (Line 19 - 21).
The professional ethics for computer engineers are:
- They will Contribute to society and to human well-being.
- They will Avoid harm.
- Be honest and trustworthy.
- They will be fair and take action that do to discriminate others.
<h3>What are the Characteristics of Code of Ethics?</h3>
The code of ethics are known to be a kind of a universal moral values, that is one that state that what a person expect of any given employee such as been trustworthy, respectful, responsible, and others.
Note that Rules of Practice, Professional Obligations and Codes of Ethics. are known to be put in place to avoid issues that may lead to conflict.
Therefore, i believe that As Engineering and Computing students, the respective professional bodies, Rules of Practice, Professional Obligations and Codes of Ethics are good and acts as a check and balance to us.
Therefore, The professional ethics for computer engineers are:
- They will Contribute to society and to human well-being.
- They will Avoid harm.
- Be honest and trustworthy.
- They will be fair and take action that do to discriminate others.
Learn more about Engineering rules from
brainly.com/question/17169621
#SPJ1
Answer:
modulus of elasticity for the nonporous material is 340.74 GPa
Explanation:
given data
porosity = 303 GPa
modulus of elasticity = 6.0
solution
we get here modulus of elasticity for the nonporous material Eo that is
E = Eo (1 - 1.9P + 0.9P²) ...............1
put here value and we get Eo
303 = Eo ( 1 - 1.9(0.06) + 0.9(0.06)² )
solve it we get
Eo = 340.74 GPa
Answer:
<em>hi</em><em> </em><em>sa</em><em>m</em><em>e</em><em> </em><em>here</em><em>.</em><em> </em><em>hru</em><em> </em><em>btw</em>
<em>안녕하세요 모두가 잘되기를 바랍니다. 안전 유지</em>