Answer:
okokikhjhghjjjkkkkkokoloo
Let P(n) be "a postage of n cents can be formed using 5-cent and 17-cent stamps if n is greater than 63".Basis step: P(64) is true since 64 cents postage can be formed with one 5-cent and one 17-cent stamp.Inductive step: Assume that P(n) is true, that is, postage of n cents can be formed using 5-cent and 17-cent stamps. We will show how to form postage of n + 1 cents. By the inductive hypothesis postage of n cents can be formed using 5-cent and 17-cent stamps. If this included a 17-cent stamp, replace this 17-cent stamp with two 5-cent stamps to obtain n + 1 cents postage. Otherwise, only 5-cent stamps were used and n 65. Hence there are at least three 5-cent stamps forming n cents. Remove three of these 5-cent stamps and replace them with two 17-cent stamps to obtain n + 1 cents postage.Hence P(n + 1) is true.
Answer:
The correct answer is C. Sometimes.
Explanation:
A database index is a structure that aims to speed up selections and selective operations on a database. An index reduces the number of comparisons required to find one or more database records. This avoids having to perform a so-called full table scan, whereby all records in the table have to be run through sequentially.
Therefore, if the search does not focus correctly on the necessary data, this search will not always determine the index of the goal. Therefore, the user must correctly handle the search keywords to collaborate with the system.
Answer:
A costumers credit card information is stolen and used by someone else.
#include <iostream>
#include <vector>
using namespace std;
class Student
{
public:
Student(int mark)
{
this->mark = mark;
if (mark >= 90 && mark <= 100)
grade = 'A';
else if (mark >= 80 && mark <= 89)
grade = 'B';
else if (mark >= 70 && mark <= 79)
grade = 'C';
else if (mark < 70 && mark >= 0)
grade = 'D';
else
cout << "Invalid mark, grade not assigned";
}
int getMark()
{
return mark;
}
char getGrade()
{
return grade;
}
private:
int mark;
char grade;
};
int main()
{
vector<Student> students;
int num, mark;
cout << "Enter number of students: ";
cin >> num;
if (num <= 0)
cout << "Invalid number of students, exiting";
else
{
for (int i = 1; i <= num; i++)
{
cout << "Enter marks for student " << i << ": ";
cin >> mark;
Student s(mark);
students.push_back(s);
}
}
// do whatever you like with the vector from here onwards, such as:
/*
for (int i = 0; i < students.size(); i++)
{
cout << "Student " << i + 1 << " grade: " << students[i].getGrade() << endl;
}
*/
return 0;
}