Ultimate Engineering Study Guide - Questions & Answers
can anyone help me fix my C++ program to get it to run properly? Thank you./*** Program Name: cis6Spring2022Hw4Ex1.c* Discussion: HW #4 Ex 1* Written By: John Smith* Date: 2022/05/16*/// Headers/Include Files#include // Function Prototypesint displayClassInfoYourName(int n);// Application Driverint main() {printf("\nCIS 6 - Introduction to programming (Using C++)""\n""\n""\n""\n Information--""\n\tAssignment: \t\t\tHW #4 Exercise #1""\n\tImplemented by: \t\t\t\John Smitht\t""\n\tSubmitted Date:\t\t\t2022/05/16""\n\tCurrent Number of LEB available: 2""\n\tAllowed Number of LEB Used:\t1""\n\tRemaining Number of LEB:\t1");return 0;}void displayAllDigitYourName(int n){int i, ld, even = 0, odd = 0, c = 0, list[100];if (n == 0)printf("The given value is ZERO\n\n");else{{if (n < 0)printf("%d is a negative number\n\n", n);n *= -1;else (n > 0)printf("%d is a postive number\n\n", n);}}while (n > 0){ld = n % 10;list[c] = ld;n = n / 10;c; ++;}printf("There is/are %d digit(s).\n\n", c);printf("The digit(s) would be \n");for (i = 0; i < c; i++){printf("%d\n", list[i]);if (list[i] % 2 == 0)even++;elseodd++;}printf("\n\nThere is/are %d even digit(s)\n", even);for (i = 0; i < c; i++){if (list[i] % 2 == 0)printf("%d\n", list[i]);}printf("\n\nThere is/are %d odd digit(s)\n", odd);for (i = 0; i < c; i++);{if (list[i] % 2 != 0);printf("%d\n", list[i]);}}// Function Definitionsint main() {void displayClassInfoJohnSmith();int ch, n;do{(printf("****************");while}
By now you should have an understanding of how relational databases work and how to use SQL to create and manipulate data. Now its time to put that knowledge into practice. For your semester project, you are going to create a database that you might find at a college. You will be building this database from the ground up so you have many decisions to make such as naming conventions, how to organize data, and what data types to use. Deliverables: Document "Relationship report" showing Table names used in the database Table relationships Keys Table Fields names Field Data types Constraints SQL (code) to create the following Faculty contact list Course Book List by Semester Course Schedule by semester Student Grade Report by semester Faculty Semester grade report (number of A's, B's, C's, D's, F's per course) Student GPA report by semester and overall (semester and cumulative) Mailing list for Diplomas Student Demographics over time (how many were under 18 last year, this year) Sample query output (at least 10 entries per query) Faculty contact list Course Book List by Semester Course Schedule by semester Student Grade Report by semester Faculty Semester grade report (number of A's, B's, C's, D's, F's per course) Student GPA report by semester and overall (semester and cumulative) Mailing list for Diplomas Student Demographics over time (how many were under 18 last year, this year)I need this in screen shots please. I just dont get it when i read it thanks!
Write a C program to implement the following requirement:Input:The program will read from standard input any text up to 10,000 characters and store each word (a string that does not contain any whitespace with a maximum of 100 characters) into a node of a linked list, using the following struct:struct NODE {char *word;struct NODE *next;struct NODE *prev;};Output:The program will print out 2 things- On the first line, the original list of words, each word is separated by a single comma "". - On the second line, the list of words after removing duplicate words, each word is separated by a single comma ",".Note: If there is no word in the input text, the program must print the empty string to stdout.SAMPLE INPUT 1hello world this is a single lineSAMPLE OUTPUT 1hello, world, this, is, a, single, line hello, world, this, is, a, single, lineSAMPLE INPUT 2This is thethis is the secondfirst lineline lineSAMPLE OUTPUT 2This, is, the, first, line, this, is, the, second, line This, is, the, first, line, this, second
PLEASE SOLVE IN JAVA. THIS IS A DATA STRUCTURE OF JAVAPROGRAMMING! PLEASE DON'T COPY FROM ANOTHER WRONG IF NOT YOU GETTHUMB DOWN. THIS IS SUPPOSED TO BE CODE, NOT A PICTURE OR CONCEPT!!!! A LOT OF R-11.21 Consider the set of keys K={1,2,3,4,5,6,7,8,9,10,11,12,13,14,15). a. Draw a (2,4) tree storing K as its keys using the fewest number of nodes. b. Draw a (2,4) tree storing K as its keys using
Write a C program to implement the following requirement:Input:The program will read from the standard input: - On the first line, an integer n (n> 0).- On the next n lines, each line will contain 4 pieces of information (separatedby a single comma ",") of a student:Student ID (String) -First name (String)- Last name (String) - Grade(Float)Output:The program will print out the list of sorted students based on their grades from highest to lowest. If two student have the same grade, student with smaller ID will appear first.For each student, print out their Student ID, First Name, Last Name, and Grade (2decimal places float number) separated by a single commaRequirements:Use the following struct to store the student information:struct STUDENT {char student ID [7];char *firstName;char *lastName;float grade;}You MUST use pointer to do the sorting. If you don't use pointerSAMPLE INPUT 12100200, Elon, Musk, 3.25 123456, John, Oliver,4.00SAMPLE OUTPUT 1123456, John, Oliver, 4.00 100200, Elon, Musk, 3.25SAMPLE INPUT 23678900, Mark, Henry, 4.00100200, Elon, Musk, 3.75123456, John, Oliver, 4.00SAMPLE OUTPUT 2123456, John, Oliver, 4.00 678900, Mark, Henry, 4.00 100200, Elon, Musk, 3.75
Write a C function that takes as arguments three integer arrays,A,B, and Calong with integers m,nindicating the number of elements in AandB, respectively. The arrays A is assumed to be sorted in ascending order andBis assumed to be sorted in descending order. You arerequired to store inCall elements that are present in both A and B, in ascending order. You may assume that A and B individually may have duplicate elements within them. In the result,there should not be any duplicates inC. The function should return the number of elements in C . For example, if A={8,8,12,12,15,67} and B={88,67,67,45,15,12,12,9,1}withm= 6,n= 9, the resulting C should be{12,15,67}and 3 should be returned. Do not use any additional arrays or any library functions other than standard input and output. Write only the required function. No need to write the main function.