Answer:
Explanation:
c because it will hook the person
Answer:
#include <iostream>
using namespace std;
class Digits
{
public:
int num;
int read() //method to read num from user
{
cout<<"Enter number(>0)\n";
cin>>num;
return num;
}
int digit_count(int num) //method to count number of digits of num
{
int count=0;
while(num>0) //loop till num>0
{
num/=10;
count++; //counter which counts number of digits
}
return count;
}
int countDigits(int num) //method to return remainder
{
int c=digit_count(num); //calls method inside method
return num%c;
}
};
int main()
{
Digits d; //object of class Digits is created
int number=d.read(); //num is read from user
cout<<"\nRemainder is : "<<d.countDigits(number); //used to find remainder
return 0;
}
Output :
Enter number(>0)
343
Remainder is : 1
Explanation:
As program is missing to find errors , a logically write program is written to find the remainder when a number is divided by its number of digits. A class Digits is constructed which has public variable num and methods read(), digit_count(), countDigits().
- read() - This method reads value of num from the user and return num.
- digit_count() - This method takes a integer as parameter and counts the number of digits of a number passed as argument. while loop is used to increement the counter until num<0. This returns the value of count.
- countDigits() - This method takes a integer as a parameter and returns remainder when the argument is divided by number of digits of argument. Number of digits is calculated by using method digit_count().
At last in main method , object of Digits class is created and its methods are used to find the output.
Answer:
A. The key words help identify your reading audience.
Explanation:
Through the keyword, you can identify your reading audience. Like, suppose you are writing about Android developers as a keyword. Thus it clarifies that your reading audience will be Android developers mainly. However, the keyword has nothing to do with writing purposes or goals. We first analyze our goal, and then we search for the keyword that can be best for fulfilling our goals. Hence, keywords not in best identify the writing purpose or goal. Like I want to be rich by writing, Now keyword is Android developers, which is confirming that our reading audience will be Android developers mainly, but it does not confirm that we want to be rich, as we might write for charity as well. And keywords does not have anything to do with how much evidence you should cite or the appropriate length of your essay. And hence, A. is the correct option.
<u>Extensible Markup Language (XML)</u> is a markup language designed to transport and store data on the Web.
Explanation:
- Extensible Markup Language (XML) is a markup language that defines a set of rules for encoding documents in a format that is both human-readable and machine-readable
- Extensible means that the language is a shell, or skeleton that can be extended by anyone who wants to create additional ways to use XML.
- Markup means that XML's primary task is to give definition to text and symbols.
- It is a textual data format with strong support, Unicode for different human languages.
- Extensible Markup Language (XML) is used to describe data.
- The design goals of XML emphasize simplicity, generality, and usability across the Internet.
- It is a text-based markup language derived from Standard Generalized Markup Language (SGML).