Reference no: EM132095869
Please help ASAP!!! Thank you so much!
1. Write a C program that inputs your first name, last name and U number as strings. Shown a menu with 3 different options to either
print your first name, your last name, or your U#. Use a function for each option.
2. Write a C program that creates an Array of integers dynamically (using malloc). You need to ask the user the size of the array. Define a function and pass the array to the function. Inside the function multiply each value by 2 and print them.
3. What is wrong or missing in this code to avoid errors or warnings?
#include <stdio.h>
int main()
{
int x;
printf( "Please input two numbers to be multiplied: " );
scanf( "%d", &x );
printf( "The product of your two numbers is %d\n", mult( x, y ) );
getchar();
}
int mult (int a, int b)
{
return a * b;
}
4. What is wrong or missing in this code to avoid errors or warnings?
#include <stdio.h>
int main( )
{
int p;
int val[7] = { 11, 22, 33, 44, 55, 66, 77 } ;
p = val[0];
for ( int i = 0 ; i <= 6 ; i++ )
{
printf("val[%d]: value is %d and address is %u", i, *p, p);
p++;
}
return 0;
}
Write a main program to call the function
: Write a main program to call the function using an integer of your choice and print the contents.
|
What is the ending inventory using the average cost method
: Sales for the year totaled 270 units, leaving 10 units on hand at the end of the year. What is the ending inventory using the average cost method (rounded)
|
What is the saving in the average time to retrieve a webpage
: The time for A to obtain the remaining web object after the reception of the HTML file, assuming all the web objects are cached at the proxy.
|
Prepare journal entries for first interest payment on june
: Woodwick Company issues 6%, five-year bonds, on December 31, 2014, Prepare journal entries for first interest payment on June
|
Creates an array of integers dynamically
: Write a C program that creates an Array of integers dynamically (using malloc). You need to ask the user the size of the array.
|
Defining characteristics of companies
: Fortune magazine and hay group found that a clear, stable strategy is one of the defining characteristics of companies on the list
|
Simulate the transmission and reception of a text message
: The purpose of this assignment is to simulate the transmission and reception of a text message over a noisy communications channel.
|
Representations of business data flow and processes
: Assignment - Literature Bonanza - Select appropriate IT solutions for business functions - Apply business information software for data visualization
|
Prepare january journal entry to record the bond issuance
: Legacy issues $710,000 of 8.0%, four year bonds dated January 1, 2015, Prepare the January 1, 2015, journal entry to record the bond's issuance
|