In a right triangle, the square of the length of one side is equal to the sum of the squares of the lengths of the other two sides. Write a program that prompts the user to enter the length of the three sides of a triangle and then outputs a message indicating whether the triangle is a right triangle. Use functional programming paradigm on this problem.
Create and reverse a doubly linked list.
.Write a program to find the sum of all the prime numbers in the range n to m. Display each prime number and the final sum. using java
.Write a program to find the sum of all the prime numbers in the range n to m. Display each prime number and the final sum.
WORLD CUP DATA ANALYSIS
1 What player on a team with "ia" in the team name played less than 200 minutes and made more than 100 passes? Print the player surname.
2 How many players on a team with ranking <10 played more than 350 minutes?
TITANIC DATA ANALYSIS
1 Write a loop that asks the user to enter an age, then returns the number of married women over that age who embarked in Cherbourg. Terminate the loop when the user enters a number that is less than 0.
// build and run this example #include #include #include int main(void) { BOOL bRet; STARTUPINFO si; PROCESS_INFORMATION pi; ZeroMemory(&si,sizeof(si)); si.cb=sizeof(si); ZeroMemory(&pi,sizeof(pi)); bRet=CreateProcess(NULL,"notepad.exe",NULL,NULL,FALSE,0,NULL,NULL,&si,&pi); if(bRet==FALSE) { printf("Error: %u\n",GetLastError()); return 1; } CloseHandle(pi.hProcess); CloseHandle(pi.hThread); // close handles to kernel objs return 0; }
// build and run this example #include #include #include void _tmain( int argc, TCHAR *argv[] ) { STARTUPINFO si; PROCESS_INFORMATION pi; ZeroMemory( &si, sizeof(si) ); si.cb = sizeof(si); ZeroMemory( &pi, sizeof(pi) ); if( argc != 2 ) { printf("Usage: %s [cmdline]\n", argv[0]); return; } // Start the child process. if( !CreateProcess( NULL, // No module name (use command line) argv[1], // Command line NULL, // Process handle not inheritable NULL, // Thread handle not inheritable FALSE, // Set handle inheritance to FALSE 0, // No creation flags NULL, // Use parent's environment block NULL, // Use parent's starting directory &si, // Pointer to STARTUPINFO structure &pi ) // Pointer to PROCESS_INFORMATION structure ) { printf( "CreateProcess failed (%d).\n", GetLastError() ); return; } // Wait until child process exits. WaitForSingleObject( pi.hProcess, INFINITE ); // Close process and thread handles. CloseHandle( pi.hProcess ); CloseHandle( pi.hThread ); }
1.Write and build your C program which creates a txt file and write into your name and your number 10 times. (You can use FileIO.pdf samples or you can write it on your own ). 2. And use yourprogram.exe file in another process in createProcess method as parameter. Example: bRet=CreateProcess(NULL,"yourprogram.exe",NULL,NULL,FALSE,0,NULL,NULL,&si,&pi); 3. Finally you should submit two C file 1 yourprogram.c (which creates a txt and write into your name and your number 10 times.) 2 mainprogram.c