#include<iostream.h>
#include<conio.h>
void main()
{
char g;
int m;
cout<<”\nEnter the marks”;
cin>>m;
if(m>=90&&m<=100)
g=’A’;
else if(m>=81)
g=’B’;
else if(m>71)
g=’C’;
else if(m>61)
g=’D’;
else if(m>51)
g=’E’;
else if(m>41)
g=’F’;
else
g=’U’;
if(g==’A’)
cout<<”\nGreat!”;
else
cout<<”\nNot Great”;
getch();
}
<u>Explanation:</u>
Here, we are declaring two variables g(char data type) and m(int data type) to get the grade and the mark respectively. We’ll enter the mark less than 100 and check it under certain conditions to assign the grade to the variable g.
So at the end we will check whether the grade given is ‘A’. If condition is true, the program will display “Great!”. Otherwise it’ll print “Not Great”.
D. an artricle supporting the goverment's new policy for increasing property taxes
Answer:
The code to this question can be given as:
class Sample //define class Sample.
{
//define private member.
private int count;
private String name;
Sample(int count, String name) //define parameterized constructor.
{
this.count = count; //holding values.
this.name = name;
}
public int getCount() //define function with returntype.
{
return count;
}
public String getName() //define function with returntype.
{
return name;
}
public void setCount(int count) //define function with no returntype.
{
this.count = count;
}
public void setName(String name) //define function with no returntype.
{
this.name = name;
}
}
Explanation:
In the above code firstly we define the class that is Sample. In this class, we define two variable that is not public. Then we define the constructor. This code we parameterized constructor because it takes the values as a parameter. To assign the value in the constructor we use this keyword. Then we used the get and set method. when we use get method because it returns a value (getcount and getname). When we use the set method it does not return any value (setcount and setname).
Answer:
C
Explanation:
Every form of media has different resources.
The answer is True.
In accounting, the account in the chart of accounts is assigned in random. The accounts start in assigning a range of number in every accounting type. It doesn't matter what number you assign them as long as it is assigned in order by accounting type.