2. Write a C statement to store "Ali" in a string variable name. Assume name is already declared. (2m)

C++ Programming: From Problem Analysis to Program Design
8th Edition
ISBN:9781337102087
Author:D. S. Malik
Publisher:D. S. Malik
Chapter6: User-defined Functions
Section: Chapter Questions
Problem 12SA
icon
Related questions
Question
Can u answer this?
1. Write a C statement to get a subject name (eg: "Basic Programming") from user. (2m)
2. Write a C statement to store "Ali" in a string variable name. Assume name is already
declared.
(2m)
3. Given the following function prototype, write a function call for CalculateSum().
(Im)
int CalculateSum (float x, float y):
4. Write a function header for a void user-defined function that accept and display a name of a
(2m)
person.
5. Write a C statement to represent the following formula
(2m)
2b
cos (b+a)
ans =
6. Write a C statement to generate a random number in range of 1 to S0?
(2m)
Transcribed Image Text:1. Write a C statement to get a subject name (eg: "Basic Programming") from user. (2m) 2. Write a C statement to store "Ali" in a string variable name. Assume name is already declared. (2m) 3. Given the following function prototype, write a function call for CalculateSum(). (Im) int CalculateSum (float x, float y): 4. Write a function header for a void user-defined function that accept and display a name of a (2m) person. 5. Write a C statement to represent the following formula (2m) 2b cos (b+a) ans = 6. Write a C statement to generate a random number in range of 1 to S0? (2m)
Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
InputStream
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning