Multiple choice question on c programming

Assignment Help C/C++ Programming
Reference no: EM13161612

  1. Create a function to print "88 is a great port number"
    • function name is yourName_PrintFunction
    • no input
    • no return type
    • print "88 is a great port number"
  2. create a function to print a float
    • function name is yourName_PrintFloat
    • input parameter is a float
    • no return type
    • print the float input parameter
  3. create a function to square a value
    • function name is yourName_SquareValue
    • input parameter is a int
    • return type is an int
    • you will multiply the input int with the input int (int X int) and return this value
  4. create a function to add two number together
    • function name is yourName_AddValues
    • input parameter is an int (pass by value)
    • input parameter is a pointer to a int (pass by reference)
    • add the value input parameter to the reference input parameter
  5. create a function to print the values of an array
    • function name is yourName_PrintArray
    • input parameter is an int array
    • input parameter is the size of the array
    • create a for loop or while loop to print each element of the array
  6. Main function
    • declare and initialize a float variable to have the value .88
      • name the float variable yourName_floatEightyEight
    • declare a int variable
      • name the int variable yourName_firstInt
    • declare an int variable
      • name the int variable yourName_secondInt
      • initialize yourName_secondInt to be 8
    • call the function yourName_PrintFunction
    • call the function yourName_PrintFloat
      • pass in the yourName_floatEightyEight variable
    • call the function yourName_SquareValue
      • pass in the value 88
      • save the return value to the variable yourName_firstInt
    • call the function yourName_addValues
      • the value input parameter will be yourName_firstInt
      • the reference input parameter will be yourName_secondInt (pointer)
    • declare and initialize a int array of int values from 0 - 10
      • name the int array yourName_intArray
    • call the function yourName_PrintArray
      • pass in the yourName_intArray
      • pass in the size of the array
  7. Move the function yourName_PrintFunction into a separate file

 

 

Reference no: EM13161612

Questions Cloud

Create the class airplane : Your missions is to create the class Airplane. Each Airplane object should store the following information (fields):
How the differences in chromosome between chimps and humans : What can you say about the relationship between chimp and human chromosomes? Explain how the differences in chromosome number between chimps and humans represented an opportunity to test a prediction of common ancestry?
Depict the lewis structure of tartaric and malic acids : Draw the Lewis structure of tartaric and malic acids in a way that shows the geometry of the acid functional groups. Indicate the hybridization of each carbon
What is the marginal opportunity cost : Given the above prices, will the firm adopt a new method which involves 10 units of land, 3 of labor, 2 of capital, and 2 of entrepreneurial ability?
Multiple choice question on c programming : Create a function to print "88 is a great port number" function name is yourName_PrintFunction no input no return type print "88 is a great port number"
Draw a bidirectional replication fork : Draw a bidirectional replication fork and label the origin of replication, the leading strands, lagging strands, and the 5' and 3' ends of all strands shown in your diagram.
What is the difference between covalent bonds : What is the difference between covalent bonds, hydrogen bonds, van der waals interactions and ionic bonds?
Multiplexor and demultiplexor? : statistical time division multiplexing with 24 stations inputting data at 9600 bps, and assuming that only 60 percent of those stations transmit at one time, what is the minimal speed necessary for the high speed link connecting multiplexor and demul..
Each salesperson passes : Thus, each salesperson passes between 0 and 5 slips per day. Assume that the information from all of the slips from last month are available. Write an app that will read all the information for last months sales and summarize the total sales by sales..

Reviews

Write a Review

C/C++ Programming Questions & Answers

  Create program that uses functions and reference parameters

Create program that uses functions and reference parameters, and asks user for the outside temperature.

  Write a program using vectors and iterators

Write a program using vectors and iterators that allows a user to maintain a personal list of DVD titles

  Write the code required to analyse and display the data

Calculate and store the average for each row and column. Determine and store the values for the Average Map.

  Write a webservices application

Write a webservices application that does a simple four function calculator

  Iimplement a client-server of the game

Iimplement a client-server version of the rock-paper-scissors-lizard-Spock game.

  Model-view-controller

Explain Model-View-Controller paradigm

  Design a nested program

How many levels of nesting are there in this design?

  Convert celsius temperatures to fahrenheit temperatures

Write a C++ program that converts Celsius Temperatures to Fahrenheit Temperatures.

  Evaluate and output the value in the given base

Write C program that will input two values from the user that are a Value and a Base with which you will evaluate and output the Value in the given Base.

  Design a base class shape with virtual functions

Design a base class shape with virtual functions

  Implementation of classes

Implementation of classes Chart and BarChart. Class barChart chould display a simple textual representation of the data

  Technical paper: memory management

Technical Paper: Memory Management, The intent of this paper is to provide you with an in depth knowledge of how memory is used in executing, your programs and its critical support for applications.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd