What must be the magnitude and direction of E that will balance the weight of
a.) an electron
b.) a proton
show your solution
In your opinion, state three long-term effects of workplace bullying and discuss three ways in which one can deal with the effects
A ten-centimeter thick rectangular metal slab with dimensions one and a half feet by fifteen meters undergoes a three-point bend test. Compute for the flexural strength if the load at fracture is five and sixty-five hundredths kilonewtons.
Give three possible ways in which work place bullying may be resolved
suppose we have two investment ptojects , both with initial cost of one billion.Both projects have zero return in period year 1, when they are built. project 1 return 0 in period 1 and 4 in period 2. project two on the other hand returns 2 million in period 1 and 1 million in period 2. the costs and returns of two projects are summarized in the table below?
Some companies market their products without first identifying their target market. After several months of operation, they profile their customers and classify them geographically, demographically and psycho-graphically. The most recurring profile of customers is identified as the "target market" is this workable? explain briefly.
Implement your own string class using only primitive data types. Your string class should contain some of the same functionality as the string class in C++.
Your class should have the following member variables:
1. char *data
2. int length
Your object should have the following constructors and destructor:
1. String(): default constructor
2. String(int size)
3. String(char* str)
Note: You can assume that any character array that is sent as str will be terminated
by a null character (‘\0’)
4. String(const String &str)
5. ~String()
Your class should have the following functions:
1. int strLength()
2. void clear()
3. bool empty()
4. int charAt(char c)
5. char* getdata()
6. bool equals(char*str)
7. bool equalsIgnoreCase(char* str)
8. char* substring(char* substr, int startIndex)
9. char* substring(char* substr, int startIndex, int endIndex)
10. void print()
first letters
you are given three strings are inputs. write a program to print the first character of each string.
input
the first,second and third lines of input are strings.
explanation
consider the given strings to be apple, banana and carrot.we need to consider the first character in each of these strings we get the character a from the string apple. we get the character b from the string banana. we get the character c from the string carrot. so the final output should be abc
sample input 1
apple
banana
carrot
sample output 1
abc
sample input 1
very
important
person
sample output 2
vip
Some companies market their products without first identifying their target. After several months of operation, they profile their customers and classify them geographically, demographically and psycho-graphically. The most recurring profile of customers is identified as the "target market" is this workable? Explain briefly.
compare last three characters
write a program to check if the three last characters in the given two strings are the same
input
the first and second lines of inputs are strings
output
the output should be either true or false
explanation
given strings are apple ,pimple. in both strings, the last three characters ple are commom
so the output should be true.
sample input 1
apple
pimple
sample output 1
true
sample input 2
meals
deal
sample output 2
faslse