What are the injections into a circular flow of income?
1.Investment
2.Government spendings
3.Exports
Write a C plus plus program to convert a given number into years weeks and days?
#include<iostream>
void num_to_years_weeks_days(
unsigned num, unsigned& years,
unsigned& weeks, unsigned& days)
{
years = num / 365;
num -= years * 365;
weeks = num / 7;
num -= weeks * 7;
days = num;
}
int main()
{
unsigned years, weeks, days;
unsigned num = 1000;
num_to_years_weeks_days(num, years, weeks, days);
std::cout << num << " days is " << years << " years, " << weeks << " weeks and " << days << " days\n" << std::endl;
num = 12345;
std::cout << num << " days is " << years << " years, " << weeks << " weeks and " << days << " days\n" << std::endl;
}
C program to print 1 12 123 1234?
#include <stdio.h>
int main (void) { puts ("1 22 333 4444 55555"); return 0; }
What is the binary complement 8 bit representation for negative 19?
8-bit 2s complement representation of -19 is 11101101
For 1s complement invert all the bits.
For 2s complement add 1 to the 1s complement:
With 8-bits:
19 � 0001 0011
1s � 1110 1100
2s � 1110 1100 + 1 = 1110 1101
Write a program to print 'hello' in output?
Ah, the infamous "Hello World" program.
I'm assuming you have a compiler (if not Dev-C++ if a good)
the code is as follows:
#include <iostream>
using namespace std;
int main()
{
cout << "Hello World" << endl;
system("PAUSE");
return 0;
}
The idea of appeasing your enemy to keep him at arms length away from you is a good idea in theory to protect yourself. But, enemies do not always stay appeased. Appeasement does not really work if the enemy is not appeased as in the case of Adolf Hitler. He went against every nation that tried the appeasement tactic with him.
What is the limitation of linear queue and how do you overcome using circular queue?
in linear queue when any element is pop out than we do size-1 value changing ie
like in the pile of coin when we take out the last coin then all changes there places so likewise we have to change the position of each element.....
we can overcome by circular one as we have to change the value of the first and last not the values changes in the array....
but circular queue also had limitation that
either u have to use it as size-1 queue or
it will show you full even though it is empty fully....as first==last...
What is the task of dll and ocx in programming?
Dll is "dynamic link library" it provides all the information about built in methods which we used in program at run time. these could be keywords(main, if , for etc) or functions( pow(), main(), strcat() etc) or classes in opps.
An OCX is an Object Linking and Embedding (OLE) custom control, a special-purpose program that can be created for use by applications running on Microsoft's Windows systems.
You should be earning at least the minimum wage for an 18 year old (which is currently at £4.98/hr) unless you are doing an apprenticeship, in which case they can pay you as little as £2.65/hr.
5+ years with PHP and MySQL experience is pretty impressive for an 18 year old; it would mean developing since you were at least 13!
So let's assume you do 16 hours a week. That's what is usually agreed upon as "part-time" in the UK.
Let's say you do about 39 weeks out of 52 in the year. This is a rough estimate based on being part-time.
That's 16 hours * 39 weeks which is 624 hours in a year you work.
On 18 year old minimum wage that's (624*4.98) = ~£3108/yr.
On <19 year old apprentice minimum wage that's (624*2.65) = ~1654/yr.
Of course you may earn more or less depending on how much you work.
Work it out like so:
x = your total earnings
m = minimum wage for you
h = # hours you work a week
w = # weeks you work in the year
x = (m*(h*w))
No. The C drive is simply a partition that you create. The harddrive is hardware.
The main method of a program has?
The Java main method of a program is the place where the program execution begins. A main method would look like below
public static void main(String[] args){
}
When a function is passed by value the calling function makes a copy of the passed argument and works on that copy. And that's the reason that any changes made in the argument value does gets reflected to the caller.
Overloads cannot differ by return type alone. The only way to achieve this is to use output arguments. Since the implementation is exactly the same regardless of the output type, you can use a function template to generate the overloads.
#include<iostream>
#include<sstream>
template<typename T>
bool convert(std::string& s, T& value)
{
std::stringstream ss;
ss << s;
if (ss >> value)
return true;
return false;
}
int main()
{
int i;
float f;
std::string s {"3.14"};
if (convert (s, i))
std::cout << '"' << s << "" = " << i << std::endl;
if (convert (s, f))
std::cout << '"' << s << "" = " << f << std::endl;
}
Output:
"3.14" = 3
"3.14" = 3.14
Amazon has the book that you are looking for:
Ado means "a fuss," referring to the havoc ensuing from Don John's scheme. Alternately, it can just mean "busy activity," as often occurs about the return of Don Pedro and that of the weddings.
Is it possible to have two separate system calls with the same name in unix?
Yes, this is possible, though not recommended. A call to any library routine simply requires that one of the linked libraries contain that call. Problems may occur if more than one linked library containing an object module of the same name is used.
This might inadvertently occur if one were to accidentally instruct 'ld' to link an old and new version of the same library, though 'cc' and/or 'gcc' and/or 'ld' should complain if the prototype declarations in the header files differ from the object modules themselves or the source code call differs from the prototype declaration. [JMH]