Entries by Student

write my assignment 15049

Write a program that will do the following steps:

– generate 2 random integer numbers between 1 and 20 inclusive ( 1-20, no 0 values)

– calculate the square root of each number

– calculate the average of the 2 numbers

– print the 2 random numbers

– print the square root of each random number with 3 digits after the decimal point

– print the average of the 2 numbers with 1 digit after the decimal point

Example program output:

The two random numbers are 2 and 3

The average is 2.5

The square root of 2 is 1.214

The square root of 3 is 1.372

I write the my code but I do not know how I need to write the square roots. This is my code. Please someone explain to me step by step.

#include <iostream>

#include <ctime> // Needed for the true randomization

#include <cstdlib>

#include<cmath>

#include<iomanip>

using namespace std;

int main ()

{

int xRan=0;

int xRan1=0;

double root1;

double root2;

double average;

srand( time(0)); // This will ensure a really randomized number by

using computer clock

xRan=rand()%20 + 1; // Randomizing the number between 1-15.

xRan1=rand()%20 + 1;

cout << “The two random numbers between 1-20 are: ” << xRan;

cout<<” and “<<xRan1<<endl;

return 0;

}

 

"Not answered?"


Get the Answer

write my assignment 1683

Enhanced communication has allowed for the growth of “networks” of organizations.  What are the pros and cons of these new actors on the international stage?  Refer to both civil and uncivil networks- use examples.  Support your responses with references to the course material – be sure to read and reference the articles.

Instructions: Your initial post should be at least 350 words. Orignial Work. References needed.

SEE ATTACHMENTS FOR READINGS THIS WEEK.

 

"Not answered?"


Get the Answer

write my assignment 19417

Hi, need to submit a 500 words essay on the topic Marketing in France Report II.

Some countries have banned some or all the forms of alcohol advertising (http:// In France, advertising for any drink that has alcohol content that is above 1.2% is prohibited on television, radio (between 5 pm to midnight, and on Wednesdays) and on print media that are targeted at teenagers and kids (http:// Advertising is allowed in the remaining printed media, on radio between midnight and 5 pm, billboards, posters, and leaflets. Since 2009, using the Internet was allowed except on websites that target the youth or related to sports (Nic, Gormley, and Usher 61). Given this information, we will gear our advertising more towards internet marketing because of the media restrictions through television. The French government is stepping up its effort so as to gather more of the taxes that owners of TV set are to pay to assist public service broadcasting. This has led to the private TV companies to respond by increasing up their rates of advertising making the advertising cost high and this contributes towards effective regulation of liquor consumption and moral responsibility (http:// Overall use of TV for advertising in France stands at 35.4% (Austin, Barnard, Galli and Hutche, 3).

The competition between Television stations in France has become intense. TV also has to compete against the other media, i.e. radio stations that are commercial, public sector and the press. At the same time, expansion in the TV sector has led to jockeying for dominating the market so as to win for advertisers and audience. The market in supplying through the TV is relatively open and the costs are lower as compared to the other forms of media. Print media advertisements greatly vary and this depends on the publication, number of insertions, circulation, quantities (if it is flyers, direct mail, handouts,

 

"Not answered?"


Get the Answer

write my assignment 7413

An airline with operations in San Diego, California must staff its ticket counters inside the airport. Ticket attendants work six-hour shifts at the counter. The requirements for number of agents are a function of the numbers of people expected to pass through the airline’s ticket counters during various hours. The airline believes that the need for agents between the hours of 6 a.m. and 9 p.m. are as follows: 6a – 9a 9a – 12 n 12 n – 3p 3p – 6p 6p – 9p Ticket Agents Needed 12 20 16 24 12 The shifts are designated as Shifts A, B, C, and D, respectively. It is the policy of the airline that at least half of the agents will speak English as the first language. Further, at least one-quarter of the agents should be fully bilingual (English and Spanish). How many and what type of agents should be hired for each shift to meet the language and staffing requirements for the airline?

 

"Not answered?"


Get the Answer