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 a program that prompts the user to enter the weight of a person in kilograms and outputs the equivalent weight in pounds (Note that 1 kilogram equals 2.2 pounds). Format your output with two decimal places.


Consider the following C++ program in which the statements are in the incorrect order.

Rearrange the statements so that it prompts the user to input the radius of a circle and outputs the area and circumference of the circle.

#include <iostream>
 
{
 
int main()
 
cout << "Enter the radius: ";
 
cin >> radius;
 
cout << endl;
 
double radius;
double area;
 
using namespace std;
 
return 0;
 
cout << "Area = " << area << endl;
 
area = PI * radius * radius;
 
circumference = 2 * PI * radius;
 
cout << "Circumference = " << circumference << endl;
 
const double PI = 3.14;
 
double circumference;
}

Consider the following program segment:

//include statement(s)
//using namespace statement
 
int main()
{
//variable declaration
 
//executable statements
 
//return statement
}

Write a C++ statement that includes the header file iostream.


Write a program that produces the following output:

CCCCCCCCC       ++              ++
CC              ++              ++
CC        ++++++++++++++  +++++++++++++++
CC        ++++++++++++++  +++++++++++++++
CC              ++              ++
CCCCCCCCC       ++              ++

Note: The letter C in the output must be uppercase.


Write a program that produces the following output:

**********************************

*    Programming Assignment 1    *

*     Computer Programming I     *

*           Author: ???          *

*   Due Date: Thursday, Jan. 24  *

**********************************

In your program, substitute ??? with your own name. If necessary, adjust the positions and the number of the stars to produce a rectangle.



Write program to input a multi-word string from keyboard and write this input string along

with first letter of each of its word into a file “initials.txt”. Data already present in the file

initials.txt must be preseved. Display suitable error message if the file opening/writing

operation fails.


Write a python program that prompts the user to enter a few details: fullname, age, job, country and salary which are going to be included in an html file. 



 In a python module, define two functions:

  • 1. A function that finds the number of words contained in a text file. 
  • 2. A function that finds the number of occurrences of a given word in a given file. 
  • • In another file, use these functions by asking the user about the name of the file and the word he/she wants to search for. 
  1. Create a Web page "FriendInfo.aspx" with the following elements:
  2. When the Web page loads, the "Email" property contained in the query string passed from the "MemberHome.aspx" Web page is stored in a global "Email" variable of type string
  3.  
  4. A "Submit" asp:Button control that when clicked submits the global "Email" string variable in a query string to the "MemberHome.aspx" Web page

 





For each of the following, write an algorithm and draw a flow chart then write a MATLAB code in separate script:

1. Finding the area of a rectangle and show it as below: The Area of This rectangle = ?

2. Finding sum of the even numbers from 2 to 100,

3. Finding the volume of a cylinder and show it as: The volume of This cylinder = ?

4. Finding the maximum number among three numbers entered by the user.


LATEST TUTORIALS
APPROVED BY CLIENTS