62 440
Assignments Done
99,5%
Successfully Done
In June 2018

Questions: 257

Free Answers by our Experts: 179

Ask Your question

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Search & Filtering

Main()
{
Int x=10;
Printf(“%d%d”,++x,++x);
}
i really need help regarding my c coding in my assignment. i did the raptor but cant seem to figure out how to do the c. i need someone to do it for me so i can understand it.
Problem 5B (50 points + 5 bonus)
Implement a program in C that checks the personnel file for two types of errors: (1) crew members
other than the captain who have no supervisor, and (2) crew members other than the captain who
have multiple supervisors. Note that your program does not need to check whether the captain
has a supervisor (or multiple supervisors); you may assume that the file is correct in that respect.
For instance, the file shown above has one error of each type: Person 100 has no supervisor, and
Person 300 has two supervisors. On the other hand, note that the duplicate record “200 100”
(lines 3 and 5) is not considered an error, since it shows the same supervisor for Person 200.
Input and output: Your program should input the name of the personnel file, and print (1) the
number of people other than the captain with no supervisor, and (2) the number of people with
multiple supervisors. The file name is a string, the length of which is between 1 and 60.

A list of integers is divided into two smaller lists of equal size. Two separate threads (which we will term sorting threads) sort each sublist using a sorting algorithm. The two sublists are then merged by a third thread—a merging thread—which merges the two sublists into a single sorted list. Because global data are shared across all threads, perhaps the easiest way to set up the data is to create a global array. Each sorting thread will work on one half of this array. A second global array of the same size as the unsorted integer array will also be established. The merging thread will then merge the two sublists into this second array
Write a function named shopping() that enables Monica and Pheebe to shop. This function needs to ask to enter which
one is shopping, in which store, which products and how many of the product is purchased. The products that they can
purchase can be seen in following table:
Product 1: G Store=10 $ W Store=15 $
Product 2: G Store =12.5 $ W Store=17 $
Assume that they can only shop from Store G or Store W
At the beginning Monica got 100 TL and Pheebe got 120 TL
After each purchase, print the remaining money
If any of them do not have enough money to buy, print a warning message
They will continue shopping unless any of them spend all the money

Sample Run:
Which one is shopping :M
Which store : W
Which product,how monay : 1 4
Remaning money for monica : 40.00

Which one is shopping :M
Which store : G
Which product,how monay : 1 5
Not enough money!
Remaning money for Pheebe : 40.00
Player who has health (integer) and a position (structure). Position structure must have two values (int x and int y). Player’s health will be initialized to 100 and player’s position will be initialized to (8, 8).
The map which the player will move must be a 2D structure matrix. This matrix must have 15 rows and 15 columns. Each cell in the matrix should consist of two integer values. These integer values must be initialized to 0.
W up: Increases the y coordinate of the player by 1
S down: Decreases the y coordinate of the player by 1
A left: Decreases the x coordinate of the player by 1
D right: Increases the x coordinate of the player by 1
There must be 30 enemies and 10 tokens. Both token and enemy coordinates are all random. Damage value varies between 1 to 30 which should be set randomly. Values of tokens may differ between -5 to 10, 0 excluded. After initialization of the map these values must be placed into map.
Full assignment : https://www.dropbox.com/s/pvfws9n3sm0fumh/HW.doc?dl=0
I need to program an tic tac toe game on MSP432 with the booster board programming in c.
In the main function, input one string and pass it to a function named cleanString. This function removes the non-alphabetic characters and writes the rest into a new character array (i.e. non-alphabetic characters are +, - ?, *, 1,2,3,…). After receiving a cleaned array, you should call another function named reverseWords. This function takes and returns the string as a parameter. String should be arranged in a reversed order for each word. All operations in this function should take place on the same string, you shouldn’t be using a temporary array for the reverse operation. Finally, print the result in the main function.

Sample run:

Enter first string: This-?=*is__12the**23%third?[]homework--_?().

Cleaned string: This is the third homework

Reversed string: sihT si eht driht krowemoh
The program must take the reverse of each of the words inside the string and outputs the resultant string without using any string library function except strlen(), gets(), puts(). In the main function, input one string and pass it to a function named cleanString. This function removes the non-alphabetic characters and writes the rest into a new character array (i.e. non-alphabetic characters are +, - ?, *, 1,2,3,…). After receiving a cleaned array, you should call another function named reverseWords. This function takes and returns the string as a parameter. String should be arranged in a reversed order for each word. All operations in this function should take place on the same string, you shouldn’t be using a temporary array for the reverse operation. Finally, print the result in the main function.
Sample run:
Enter first string: This-?=*is__12the**23%third?[]homework--_?().
Cleaned string: This is the third homework
Reversed string: sihT si eht driht krowemoh
Write a C program that prompts the user to input two strings. The program must output the total
number of times the second string appears in the first string without using any string library
function except strlen(), gets(), puts(). Length of the second string must be greater
than 1. In the main function, input two strings and pass them to a function named
countSubstrings. The function should return how many times the second string occurs inside
the first string. Finally, print the result in the main function.
Submit
Privacy policy Terms and Conditions