Questions: 1 680

Answers by our Experts: 1 680

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 complete C program to declare two one-dimensional arrays, each with 10 integer data items. Then, write a function called readData()¸to read the data items into each array separately. Once the data have been read into each array, you are required to write another function called printLarger(), which prints the contents of an array which is larger than the other array. In other words, you are required to calculate the sum of all the data items in each array, and then compare these sums. If the sum of the first array is larger than the sum of the second array, then you should print the message “array A is larger than array B”, and then print the contents and sum of array A, and vice versa. You can use any names for the arrays as long as they are meaningful. Note that you are required to pass the arrays to the respective functions by reference.
Write a complete C program to read a single string using the input function gets(). Then test whether the string contains all integers, or all alphabets or a combination of both (i.e., alphanumeric). If the string contains all integers, then print the string as it is. If the string contains all alphabets, then check whether the alphabets are in lowercase or uppercase. If any of the characters in the string is in lowercase, then convert them to uppercase, and vice versa. Finally, print the string. On the other hand, if the string is an alphanumeric, then check whether the alphabet(s) in it is/are in lowercase, then convert it/them to uppercase and vice versa. Finally, print the converted string with the same numeric characters as in the original string. Use the output function puts() whenever you are printing the string.
Write a c program using a recursive solution that reads a single positive integer, N, and prints out all possible distinct lists that include each positive integer from 1 to N. So, for example, if N is three, your output should be the following 6 lines:
1 2 3
1 3 2
2 1 3
2 3 1
3 1 2
3 2 1
Write a c program that lets the user input something like the example below only using scanf():
c 1
c 2
c 3
c 4
a 1 2 1900
a 1 3 1950
a 1 4 1400
a 2 3 150
a 2 4 3100
a 3 4 3150

And after the user is finished use printf() to output the following sentence example:
The tour 2 1 3 4 2 costs 10100.
write a programm for finding square of numbers?
(This is actually in C, it just won't let me select C as the category...)

I'm writing a 2D array where each integer in the array gets "smoothened" (as in pixel smoothening, except with ints) and then displayed. In a 5x5 array, for example, I can get all the rows to smoothen correctly except for the last (bottom) row, which displays very large or small numbers outside the array range. What's going on?
Write a C program to read marks of a student for 3 subjects (Math, Chemistry and Computer Science) from keyboard. The program should calculate the total and average marks for the student.
Write the assignment statement to add variables A, B, and C and store the result in variable X
Write a dimension statement for the variable intRate which starts with a value of 25.
Write the dimension statement for the constant named Pi with a value of 3.1415.
LATEST TUTORIALS
APPROVED BY CLIENTS