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 reeds from a CSV file(marks.CSV stored in desired location)in a dataframe then add a column total storing total marks in there subjects and another column for storing average marks.Print the dataframe after adding these columns.
Write a program that, given an array A[] of n numbers and another number x, determines whether or not there exist two elements in S whose sum is exactly x.
Write an if-else statement that if userTickets is greater than 5, executes awardPoints = 15. Else, execute awardPoints = userTickets. Ex: If userTickets is 14, then awardPoints = 15.
Write a program that prompts the user to input three numbers. The
program should then output the numbers in nondescending order.
Rewrite the following expressions using an if...else statement. (Assume
that all variables are declared properly.)
(fuel >= 10) ? drive = 150 : drive = 30;
Rewrite the following expressions using the conditional operator. (Assume
that all variables are declared properly.)
if (hours >= 40.0)
wages = 40 * 7.50 + 1.5 * 7.5 * (hours - 40);
else
wages ¼ hours * 7.50;
Suppose that score is an int variable. Consider the following if statements:
if (score >= 90);
System.out.println("Discount = 10%");
a. What is the output if the value of score is 95? Justify your answer.
b. What is the output if the value of score is 85? Justify your answer.
Suppose that overSpeed and fine are double variables. Assign the value
to fine as follows: If 0 < overSpeed <= 5, the value assigned to fine is
$20.00; if 5 < overSpeed <= 10, the value assigned to fine is $75.00; if 10 <
overSpeed <= 15, the value assigned to fine is $150.00; if overSpeed > 15,
the value assigned to fine is $150.00 plus $20.00 per mile over 15.
What is the output of the following program?
public class Exercise9
{
public static void main(String[] args)
{
int myNum = 10;
int yourNum = 30;
if (yourNum % myNum == 3)
{
yourNum = 3;
myNum = 1;
}
else if (yourNum % myNum == 2)
{
yourNum = 2;
myNum = 2;
}
else
{
yourNum = 1;
myNum = 3;
}
System.out.println(myNum + " " + yourNum);
}
}
. Suppose that x, y, z, and w are int variables and x = 3, y = 4, z = 7, and w = 1.
What is the output of the following statements?
a. System.out.println("x == y: " + (x == y));
b. System.out.println("x != z: " + (x != z));
c. System.out.println("y == z – 3: " + (y == z – 3));
d. System.out.println("!(z > w): " + !(z > w));
e. System.out.println("x + y < z: " + (x + y < z));
LATEST TUTORIALS
APPROVED BY CLIENTS