Questions: 1 978

Answers by our Experts: 1 850

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

Write a program in C to split string by space into words.

Sample Input/Output Dialog:

Input string: I am a 1st year student of BCC.

Output: 

I

am

a

1st

year

student

of

CGA.


With the aid of the functions above, write a program that

a. Gets from the user the size of a data set, N.

b. Creates an array for real numbers using the value from (a) as size.

c. Uses the function from (1) to populate the array with values from the user.

d. Uses the function from (3) to get the mean, variance, and standard deviation. 

e. Uses the function from (2) to display the numbers in the array (data set).

f. Displays the mean, variance, and standard deviation of the data set.

SAMPLE RUN

Enter size of data set: 5

Enter 5 numbers

2.4

-3

6

11.2

3

DATA SET

Index 4: 3.000000

Index 3: 11.200000

Index 2: 6.000000

Index 1: -3.000000

Index 0: 2.400000

Mean: 3.920000

Variance: 21.673600

Standard Deviation: 4.655491


With the aid of the functions above, write a program that

a. Gets from the user the size of a data set, N.

b. Creates an array for real numbers using the value from (a) as size.

c. Uses the function from (1) to populate the array with values from the user.

d. Uses the function from (3) to get the mean, variance, and standard deviation. 

e. Uses the function from (2) to display the numbers in the array (data set).

f. Displays the mean, variance, and standard deviation of the data set.



Write a function that reads real (fractional) numbers, 𝑥1, 𝑥2, … , 𝑥𝑁 from the keyboard 

into an array of N, starting from index 0. The numbers are read after a prompt.



Write a complete C program that should be able to read ten alphabets between A, B and C from users. The program should then display a list of all entered alphabets and the total number of each alphabet. You are required to write the program by applying the modular programming concept as have been taught in the class. A list (an array) to store 10 characters should be created in the main function and as part of the program, you are required to:

a) Define a function named readAlpha() to read all the 10 alphabets from the user.

b) Define a function named listAlpha() to display all the entered alphabets as a list.

c) Define a function named findTotal() to count and display the total number for each alphabet entered. Also determine which alphabet has the highest number of hit then return the result to the main function and print the result from the main function.


1.Ask user to enter three words. You can assume that each word has the maximum 

length of five characters. 


2. Combine the three words to form a passphrase. For example, if the user enters the 

words “I”, “love” and “you”, the passphrase should be “Iloveyou”. 


3. Ask user to enter a passphrase. Check whether the passphrase entered by the user is 

the same as the passphrase generated in Step 2 above. If the passphrase entered is 

the same, prints out “Passphrase is correct!”. Otherwise, prints out “Wrong 

passphrase!”. 


Ask user to enter three words. You can assume that each word has the maximum length of five characters. 


I have an mpi programming assignment can you make an offer?


How to Write a c program using string functions that accepts a coded value of an item and display its equivalent tag price? Can someone enlighten me how you guys did it??


The base of the key is: 

0 1 2 3 4 5 6 7 8 9

X C O M P U T E R S


Sample input/output dialogue:

Enter coded value: TR.XX 

Tag price:         68.00


Note: the numbers below are the corresponding equivalent values of the letters. 



Write an encryption and decryption program using string functions which will display the substitution method of corresponding characters. 

* A 

$ E 

/ I 

+ O 

- U 


LATEST TUTORIALS
APPROVED BY CLIENTS