17, 12.5, 6, and 10. HOPE THIS HELPS
Answer:
// here is code in C++.
#include <bits/stdc++.h>
using namespace std;
// function to compute sum and product
void square(int input)
{
// variable to store the square of number
long long squ_num;
calculate the square of number
squ_num=pow(input,2);
// print the output
cout<<"square of "<< input<<" is: "<<squ_num<<endl;
}
// driver function
int main()
{
int n;
// read the number until user enter 0
do{
cout<<"enter a number!! (0 to stop):";
// read the input from user
cin>>n;
// call the function to calculate square of input number
square(n);
}while(n!=0);
return 0;
}
Explanation:
Declare a variable "n" to read the input number from user.Call the function square() with parameter "n".In this function, it will calculate the square of the input number and print it.This will repeat until user enter 0 as input.Program will ends when user give 0 as input.
Output:
enter a number!! (0 to stop):5
square of 5 is: 25
enter a number!! (0 to stop):7
square of 7 is: 49
enter a number!! (0 to stop):11
square of 11 is: 121
enter a number!! (0 to stop):0
Answer:
Double eleventh = 11.50;
David_Tennant = eleventh.intValue();
Explanation:
These two statements are correct. Method intValue() converts Integer to int which is is called unboxing. In this case intValue() method converting Integert part of eleventh variable then storing it in int variable David_Tennant. Output will be 11.
Answer:
Functions with a boolean return type.
Explanation:
If the return type is boolean, the only possible values are true or false.
Answer:
e) None of the above
Explanation:
Software engineers should make the analysis, specification, design, development, testing and maintenance of software a respected and beneficial profession. In accordance with the obligation with the welfare, health and safety of society, software engineers should adhere to the following Eight Principles:
Society: Software engineers will act in a manner consistent with the social interest.
Client and Entrepreneur: software engineers will act in a way that produces the best result for client and entrepreneur, and in a manner consistent with the social interest.
Product: Software engineers will ensure that their products and corresponding modifications meet the highest possible professional standards.
Valuation: software engineers will maintain integrity and independence in their professional valuations.
Management: Software engineering leaders and managers will subscribe and promote an ethical approach in software development and maintenance management.
Profession: software engineers will advance in the integrity and reputation of the profession, to drive consistent with the social interest.
Partners: Software engineers will be fair and support their partners.
Staff: Software engineers will participate in continuous learning regarding the practice of their profession and will promote an ethical approach to the practice of the profession.