Answer:
// program in C++.
#include <bits/stdc++.h>
using namespace std;
// main function
int main()
{
// variable
int inp_month;
cout<<"Enter month:";
// read month
cin>>inp_month;
// if month is february
if(inp_month==2)
cout<<"Number of days in month:28"<<endl;
// if month is 4 or 6 or 9 or 11
else if(inp_month==4||inp_month==6||inp_month==9||inp_month==11)
cout<<"Number of days in month:30"<<endl;
else
// for others month
cout<<"Number of days in month:31"<<endl;
return 0;
}
Explanation:
Read month from user and assign it to variable "inp_month".If month is 2 then there is 28 days in the month.If input month is 4 or 6 or 9 or 11 then there is 30 days in the month.For other month there will be 31 days in month.We assume there is no leap year.
Output:
Enter month:4
Number of days in month:30
Answer:
void delete_record(student_record *arr, int &size, int age, string name, double gpa) {
int index = -1;
if (arr != NULL && size > 0) {
for (int i = 0; i < size; ++i) {
if (arr[i].age == age && arr[i].name == name && arr[i].gpa == gpa) {
index = i;
break;
}
}
}
if (index != -1) {
for (int i = index; i < size - 1; ++i) {
arr[i] = arr[i + 1];
}
size--;
}
}
Try resetting the phone if that doesn’t work do a hard reset
<span>(news doctors, consultants) said people should be young, attractive, smile and look happy.</span>