Write a c program that includes a function called lobster

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

(1) Write a C program that includes a function called lobster() that accepts three arguments: a character and two integers. The character argument is the character to be printed by lobster(). The second argument is the number of times that the character will be printed on a row. The third argument is the number of rows to be printed. Call your function from within your program in order to demonstrate that it works (use 'z', 3, 5 as parameters). Comment your code, make sure it looks professional, and use meaningful variable names.

(2) Write a C program that includes a function called moveEm() that accepts the ADDRESSES of three double variables as input. The function should move the value of the smallest variable into the first variable, the middle value into the middle variable, and the largest value into the third variable. Call your function from within your program using the arguments 7.8, 3.5, and 1.1 in order to demonstrate that it works (make sure your logic works for any order of largest, smallest, middle however). Comment your code, make sure it looks professional, and use meaningful variable names. (NOTE: This function does something similar to swap3.c--I recommend using it as a model.)

For example: if I had three double variables as follows: x=7.8, y=3.5, z=1.1 then I would call moveEm like so:

moveEm(&x, &y, &z);

After moveEm() returned x would contain 1.1, y would contain 3.5, and z would contain 7.8.

Reference no: EM131320357

Questions Cloud

Implement d latch to include an enable line using logisim : Implement the D latch to include a synchronous clear line using Logisim. A clear line will set the value of the D latch to 0 on the next clock pulse.
Presentation of a historical event by different historians : Write a two-to three-page short paper (10 percent of your total grade) comparing and contrasting the presentation of a historical event by two different historians. Historians do not only provide accounts of events (themes, eras, people);
Change program in the breadboard to match this new logic : In Logisim implement a circuit similar to the one in figure 8-10, but which produces output which is the opposite of the input switch (e.g. the LEDs are 0 when the switch is 1, and 1 when the switch is 0). Change the program in the breadboard to m..
What other questions may you want to ask danny : After reviewing the scenario answer the following questions: Do we have enough information to make a diagnosis? What other questions may you want to ask Danny
Write a c program that includes a function called lobster : Write a C program that includes a function called lobster() that accepts three arguments: a character and two integers. The character argument is the character to be printed by lobster().
Expansion of the european union : While some countries tend to favor expansion of the European Union, others generally oppose it. Entering a union agreement with other countries has both benefits and drawbacks for each member country.
Explain whether you would use static or dynamic routing : Determine whether you would use static or dynamic routing to connect the routers. Justify your response with the key benefits that your choice provides.
Controversial issue in southeast asia : 1. What geographical and historical factors have led Singapore to develop such a particular, and highly valued, local form of the English language? 2. Why are the tiny Spratly Islands such a controversial issue in Southeast Asia?
Calculate any binary boolean function : Explain how a 1 bit 4-to-1 MUX can calculate any binary Boolean function. Because the MUX can calculate the result of any Boolean function, we call the MUX a univeral operation.

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