What is the command that you would use to compile the code

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

UNIX systems programming and Perl

Add to your Perl script the ability to kill a user's processes. The requirements for this task include the following:

Add this option to the menu.
Add the code/process into a subroutine.
Use an array to store the list of processes that need to be reviewed and killed.
Process the kill using the array.

Next, you have been asked by different users to explain how to compile a program in a UNIX environment.

Finally, take the following C program (save it as "power2.c"), and create it as a file in your UNIX environment:

/* power2.c -- Print out powers of 2: 1, 2, 4, 8, .. up to 2^N */
#include <stdio.h> <stdio.h>

#define N 16
int main(void) {

int n; /* The current exponent */

int val = 1; /* The current power of 2 */

printf("/t n /t 2^n/n");

printf("/t================/n");

for (n=0; n<=N; n++) {

printf("/t%3d /t %6d/n", n, val);

val = 2*val;

}

return 0;

}

/* It prints out :

n 2^n

===============

0 1

1 2

2 4

3 8

4 16

5 32

6 64

7 128

8 256

9 512

10 1024

11 2048

12 4096

13 8196

14 16384

15 32768

16 65536

*/

Describe the behavior when you compile the program, with no options. What is the command that you would use to compile the code and create the executable "power2"?

Finally, compare and contrast the usage of a compiled and interpreted program.

Reference no: EM13963242

Questions Cloud

What are the challenges faced by online instructors : What are the challenges faced by online instructors? What are the required components for the online delivery of education?
Book value ratio for comparable firms : a. Estimate the average price/book value ratio for these comparable firms. Would you use this average P/BV ratio to price the IPO? b. What subjective adjustments would you make to the price/book value ratio for this firm and why?
Descripe what is web cache about secure computer network : Descripe what is each topic about secure computer network and why its important? Describe these topics to somone that has no knowledge in computer networks to deliver the idea to him?
Estimate the price-book value ratio for nch : a. Based on these inputs, estimate the price/book value ratio for NCH. b. How much would the return on equity have to increase to justify the price/book value ratio at which NCH sells for currently?
What is the command that you would use to compile the code : Describe the behavior when you compile the program, with no options. What is the command that you would use to compile the code and create the executable "power2"?
Estimate the value of office : Illiquidity Discount = 0.30 - 0.04 (ln [Revenues in millions]) Estimate the value of Office Help for sale in a private transaction (to an individual).
Who is the intended audience for this product? : Answer the following questions in your paper: Who is the intended audience for this product? What needs does the product or service propose to fulfill? What are the positive aspects of the advertising campaign
Estimate the correct value for the firm : You also know that the market value of equity is three times the book value of equity, and the market value of debt is equal to the book value of debt. Estimate the correct value for the firm.
Identify a system process or service in your organization : Assess three (3) critical sources of data-gathering initiatives for an HRIS needs analysis and highlight the advantages and disadvantages of using each of those sources. Identify a system, process, or service in your organization's HRIS that could ..

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