Programming & Computer Science Answers

C++ 9913
Python 5288
Java | JSP | JSF 3611
C 1680
C# 1362
Computer Networks 989
Algorithms 652
Databases | SQL | Oracle | MS Access 641
HTML/JavaScript Web Application 588
Other 537
Visual Basic 358
Assembler 209
Software Engineering 202
AJAX | JavaScript | HTML | PHP 166
MatLAB 150
MatLAB | Mathematica | MathCAD | Maple 124
Action Script | Flash | Flex | ColdFusion 112
UNIX/Linux Programming 89
Web Development 73
Excel 36
ASP | ASP.NET 23
Delphi | Pascal 21
Perl 16
Prolog 9
Functional Programming 9
MathCAD 5
Wolfram Mathematica 4
WPF 4
Ruby | Ruby on Rails 3
NodeJS Web Application 2

Questions answered by Experts: 26 876

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Search

Write an if statement which is equivalent to "if(!(x==0 || x==100))" but does not use the "||" operator.
Write a program which takes as input two floating point numbers and prints "equal" if the two are equal.
Write a program which takes as input two integers and then displays the maximum of the two numbers. You HAVE to use a ternary operator for this purpose.
Write a C++ program which repeatedly asks the user to enter their contact numbers. Create a string
variable named “Phone_No” and take the input in the following pattern: “+92423672123” where the
first three characters represent country code (e.g., +92 as shown in the example pattern), next two
characters (e.g., 42 according the shown example number) represent the city code, while next 7
characters represent the actual number.
Your task is to display appropriate messages for the numbers belonging to three cities: Islamabad (having city
code 51), Lahore (city code 42), and Karachi (city code: 21). Any number having different country code or city
code must be reported as “Un-known number“. Please also ensure that the user must enter the number
according to the shown pattern only and the size of the input string must be 12 characters.

Write a C++ program that asks the user to enter a string value in a variable named “Str”. The input string should be of size 20 characters (minimum). Next, apply following operation (in sequence) on the input string: 1) Find and print the length of the string. 2) Display string in reverse order. 3) Concatenate “Hello World” to the string. 4) Count number of words in updated string. 5) Convert whole string in lowercase.


Finally, create your own example of a function that modifies a list passed in as an argument. Describe what your function does in terms of arguments, parameters, objects, and references.

Write a C++ code that computes the sum of the following series. Sum = 1! + 2! + 3! + 4! + …n! The program should accept the number from the user.


Q3: See this code, [2]
struct emp
{
int id_num;
char name[20];
string address[40];
}e;
main()
{
cout<< “I am calling function from here “<<Quiz(e1);
return 0;
}
Blue function call
A. Provides start address of a the struct emp;
B. Makes a function to function Quiz()
C. Passes the whole structure to the functions
D. Prints the structure
E. All of the above
Reason:
Thoroughly explain the impacts of data structures and algorithms in the development
and implementation of computer programs using modern computer technologies
Write a program which takes two integers as input and displays the result of subtracting the second number from the first. You are not allowed to use the "-" operator. You can only use a for loop and the increment and decrement operators.
LATEST TUTORIALS
APPROVED BY CLIENTS