Answer:
Creating objects which people are going to interact with, designers have to be aware of those traits and take them into account in the process. ... Continuing the theme, user-centered design is more focused and concise version of human-centered design with deeper analysis of target audience.The user interacts directly with hardware for the human input and output such as displays, e.g. through a graphical user interface. The user interacts with the computer over this software interface using the given input and output (I/O) hardware.Human-centered design is a creative approach to problem solving and the backbone of our work at IDEO.org. It's a process that starts with the people you're designing for and ends with new solutions that are tailor made to suit their needs. ... Human-centered design consists of three phases.
Explanation:
Answer:
<em>#include <iostream></em>
<em>using namespace std;</em>
<em>//function definition</em>
<em>void send_variable(int num){</em>
<em> cout<<"The Number is "<<num<<endl;</em>
<em>}</em>
<em>// main function begins here</em>
<em>int main()</em>
<em>{</em>
<em> int x =15; //declares an it variable and assigns 15</em>
<em> // Calls the function send_variable</em>
<em> send_variable(x);</em>
<em> return 0;</em>
<em>}</em>
Explanation:
Using C++ programming language we created the function called send_variable and in the main function we call this function which only displays the value of an int variable passed unto it.
Answer:
See explaination
Explanation:
#input
o_t_n=int(input('Enter a string of octal digits: '))
#required variables
i = 1
dc = 0
#loop for conversion
while (o_t_n != 0):
#to find remainder
rmd = o_t_n % 10
o_t_n //= 10
dc += rmd * i
i *= 8
#print the results
print('The integer value is ',dc)
# decimalToOctal.py
#input
d_c_n=int(input('Enter a decimal integer: '))
print("Quotient Remainder Octal")
#required variables
i = 1
o_c_n = 0
num=""
#loop for conversion
while (d_c_n != 0):
#to find remainder
rm = d_c_n % 8
d_c_n //= 8
o_c_n = o_c_n + rm * i
i *= 10
num = str(rm)+num
print("%5d%8d%12s" % (d_c_n, rm, num))
#print the results
print('The octal representation is ',o_c_n)
Answer:
// here is code in c++.
#include <bits/stdc++.h>
using namespace std;
// function that return greatest common divisor
int g_c_d(int num1, int num2)
{
if (num1 == 0)
return num2;
return g_c_d(num2 % num1, num1);
}
// main function
int main()
{
// variables
int num1,num2;
cout<<"enter two numbers:";
// read two numbers from user
cin>>num1>>num2;
// call the function and print the gcd of both
cout<<"greatest common divisor of "<<num1<<" and "<<num2<<" is "<<g_c_d(num1.num2)<<endl;
}
Explanation:
Read two numbers from user and assign them to variables "num1" and "num2".Call the function g_c_d() with parameter "num1" and "num2".According to Euclidean algorithm, if we subtract smaller number from the larger one the gcd will not change.Keep subtracting the smaller one then we find the gcd of both the numbers.So the function g_c_d() will return the gcd of both the numbers.
Output:
enter two numbers:5 9
greatest common divisor of 5 and 9 is 1
enter two numbers:-25 15
greatest common divisor of -25 and 15 is 5