Explanation:
What want help with i just see answer there maybe if you want to know the meaning of Gui it is : A graphizal user interface (GUI) is a type of user interface through which users interact with electronic devices via visual indicator representations.
and next time please make yourself clear with your sentence no Offense
Answer:
The program to this question can be given as follows:
Program:
//header file
#include <iostream> //defining header file
using namespace std;
//main
int main() //defining main method
{
string name; //defining main method
cout<<"enter name: "; //print message
getline(cin,name); //using getline method
cout<<"The name you inserted is: "<<name; //print value
return 0;
}
Output:
Please Enter Name: Brenda Clinton
The name you inserted is: Brenda Clinton
Explanation:
Firstly the header file is included in the above C++ program code, in the next line the main method is defined, inside this method the string variable is defined which takes value from user-ends.
- In the above specifies the getline method, which can be referred to as a standard library feature for reading an input stream string or a line. It removes characters from the input stream and applies this to the string object until the character is delimited.
- After taking input the print method "cout" is used to print "name" variable value.
Answer:
b) Tufts University Nutrition Web Page
Explanation:
The site that most likely provides a balanced information on eating a balanced diet is the Tufts University Nutrition Web Page
Tufts University is a moderate size, leading private research American higher education institution located in Massachusetts that offers degree programs on Food and Nutrition Policy and Programs
By comparison with the other sites which are;
a) Pork Producers Nutrition Page, which is expected to be related with pork production pork producers and pork consumers, based on the title focus, the information provided by the page is therefore, not meant for general use and therefore not meant to be balanced
c) The Eat What You Want Page, based on the of the page title literally which suggest the liberty for a user to eat what they want to eat does not appear to call for the input of an expert advice on nutrition, and therefore is not balanced.
Answer:
I don't know if it would work for what you need but you could try scratch. (sorry if this isn't what you needed.)
Answer:
import java.util.Scanner;
public class FindMatchValue {
public static void main (String [] args) {
final int NUM_VALS = 4;
int[] userValues = new int[NUM_VALS];
int i = 0;
int matchValue = 0;
int numMatches = -99; // Assign numMatches with 0 before your for loop
userValues[0] = 2;
userValues[1] = 2;
userValues[2] = 1;
userValues[3] = 2;
matchValue = 2;
numMatches=0;
for(i=0;i<NUM_VALS;i++)
{
if(userValues[i]==matchValue)//cheking if the array element is equal to match value.
{
numMatches++;
}
}
System.out.println(numMatches);//printing the matchvalue.
}
}
Output:-
3
Explanation:
First I have set the value numMatches to 0 before the loop.Then I have user the for loop to iterate over the array.In the for loop I am checking that the array element is equal to the matchValue or not if it is equal then increasing the numMatches by 1.Then at last print the value of numMatches.