Answer:
Check the explanation
Explanation:
Following are the things to be implemented immediately
Database should be maintained centralized manner so that any one can access data. Number should be given at the time of admission it should contain year of admission,course of admission …etc in the form of code eg. 2015FW1001 means year 2015 Fashion studies Winter admission no 1001. At the time of admission only they have to give the details of military status. Department which taking care of this issue should only have the permission to modify and delete the data. All the departments should be connected to the server by internet/intranet/network. Students should be given user id and password
Same database should be connected and given access through internet also with limited privileges so that user can update their status of military by submitting proof. By these information uploaded centralized administrative department update the status if they satisfied with the documents uploaded.
We can overcome the problem of mil status by giving the freedom to the student update their military status by uploading the documents.
Answer:
Explanation:
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#define MAX 1024
int total = 0 ;
int n1, n2;
char s1, s2;
FILE fp;
int readf(FILE fp)
{
if((fp=fopen("strings.txt", "r"))==NULL) {
printf("ERROR: can’t open string.txt!\n");
return 0;
}
s1=(char)malloc(sizeof(char)MAX);
if(s1==NULL) {
printf("ERROR: Out of memory!\n");
return 1;
}
s2=(char)malloc(sizeof(char)MAX);
if(s1==NULL) {
printf("ERROR: Out of memory!\n");
return 1;
}
/* read s1 s2 from the file */
s1=fgets(s1, MAX, fp);
s2=fgets(s2, MAX, fp);
n1=strlen(s1); /* length of s1 */
n2=strlen(s2)-1; /* length of s2 */
if(s1==NULL || s2==NULL || n1<n2) /* when error exit */
return 1;
}
int num_substring(void)
{
int i, j, k;
int count;
for(i=0; i<=(n1-n2); i++) {
count=0;
for(j=i, k=0; k<n2; j++, k++){ /* search for the next string of size of n2 */
if((s1+j)!=(s2+k)) {
break;
}
else
count++;
if(count==n2)
total++; /* find a substring in this step */
}
}
return total;
}
int main(int argc, char argv[])
{
int count;
readf(fp);
count=num_substring();
printf("The number of substrings is: %d\n", count);
return 1;
}
I can not give you the direct answer but I can give you some ideas. The videos that go viral have an effect that makes peoples ideas clear and shows what people are into and then more people can get to know about these things.
Answer:
Explanation:
Hello, great question. These types are questions are the beginning steps for learning more advanced Coding Problems.
If/Else statements receives an input and compares it to a true of false statement, if it is true then one function is called. Otherwise another function is called. IF/Else statements only have two outcomes which is why they are many times nested one on top of the other to be able to produce more outcomes.
Switch Statements receive and input and compares it to a set of predefined answers. If the right answer is found then the function relating to that answer is called. Otherwise the default function is called.
IF/Else is only more efficient than Switch statements if the inputted value is not predictable enough to make a predefined set.
I hope this answered your question. If you have any more questions feel free to ask away at Brainly.
Hey there!
Let's assume that this question is referring to every digital calendar ever made. As in, even those made on devices without internet connectivity or any other fancy features that we utilize with many digital calendars today.
If a planning device that came with a digital calendar didn't have internet connectivity, it wouldn't be able to be connected to the cloud. Back when these devices were around, it wasn't even plausible to store things like calendar events and contacts in what we know as the "cloud". Also, these devices probably had to be hardwired to a computer and new software had to be downloaded to them, so the updates weren't automatic. Archaic, right?
Also, consider the fact that even reputable websites/companies such as Google with Google Calendars or Apple with iCalendar will never go without their malfunctions or threats. Sometimes, these websites can be hacked and the data that they contain can be compromised, especially if they're stored on the cloud. Also, even though it's not realistic, Google or Apple could one day decide to completely get rid of their calendar programs altogether. So, this means that digital calendars are definitely able to be destroyed or lost.
That just leaves "They can be used anywhere". This is true, even with those archaic devices specifically used for scheduling events and such. Nowadays, you have your phone and possibly a laptop on you at all times, which will likely have a calendar on it as a stock application. So, I think this is your answer.
Hope this helped you out! :-)