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

Refer to the code segment below and answer the questions in the comments labelled Question i – vi. For each answer; provide a brief explanation for your answer.

public class Scope {

private int x = 2;

private int x = 1;


public void start() {

int x = 5;

int x = 2;


//Question i

System.out.printf( "The value of x is %d\n", x );

int x = 2;


//Question ii

System.out.printf( "\nThe value of x is is %d\n", x );

} // end method begin


public void middle() {

int x = 25;


//Question iii

System.out.printf( "\nThe value of x is %d\n", x );

++x;


//Question iv

System.out.printf( "The value of x is %d\n", x );

} // end method middle


public void end(){


//Question v

System.out.printf( "\nThe value of x is %d\n", x );

x *= 10;


//Question vi

System.out.printf( "The value of x is %d\n", x );

} // end method end

} // end class Scope


Given a M x N matrix, write a program to print the matrix after ordering all the elements of the matrix in increasing order.


Write a program that lets a lecturer keep track of test scores for their students. Your program should begin by asking the lecturer for a number of students in their class as well as the total number of exams that will be given to the class. Validate this information to ensure that the numbers entered are positive.

 

Next, give the message to lecturer to enter scores for each student. Make sure that the values entered are valid (marks cannot be neagtive) —if they aren’t you will need to prompt them again. You may need to use nested loops for this; a “while” loop can be placed inside of a “for” loop as necessary.

 

Once your program has collected all exam scores for a student it should display that student’s average and move on to the next student. When all students have been calculated the program should compute the overall average score for the entire class.



Write a program in BASIC that compute total charges for phones sold and displays this information to the screen.


The program must prompt the user for the price of a phone. Compute the sales tax for this value, and then display the phone price, the dollar amount of the sales tax, and the total charge for this purchase. Sales tax is calculated as 7% of the price of the phone. Total charge is the price plus the sales tax amount.

After all the data has been entered, display a grand total of number of phones sold, and a grand total of all total charges.

This program must use at least two subroutines.


Explain disadvantages associated with Virtual reality. 


flow chart to Calculate area of a rectangle area = base * height


flow chart to Calculate Marks Percentage (marks obtained / total marks) *100


flow chart to Calculate Sales Tax amount using (tax percent / 100)


flow charts to find whether the sum of two numbers is greater than 50


flowchart that displays a person's name x times Using loops


LATEST TUTORIALS
APPROVED BY CLIENTS