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

Step 1 (2 pts). Read from input student status (string), homework points, quiz points, midterm exam score, and final exam score (double). Valid student status includes undergrad (UG), grad (G), and distance leaner (DL). Calculate each category average using maximum points for homework (800), quizzes (400), midterm exam (150), and final exam (200). Output an error message if student status is not one of the three options. Otherwise, output category averages as a percentage using cout << "Homework: " << homework << "%" << endl;. Submit for grading to confirm two tests pass.


input is UG 600.0 300.0 120.0 185.0


Define a variable called first_name which asks the user to enter their name


Define a variable called first_name which asks the user to enter their name


how to create a program that retrieves the user 's car make , model designation , year model and number_km (how far the car has traveled). For example, let the program ask:

"Which car brand and model?"

"Which model year?"

"How far has it gone?"


Write a program to prompt the user for hours and rate per hour to compute gross pay.

Enter hours:35

Enter rate:2.75

Pay:96.2


Create class named PIZZA. Data field include a string for toppings( such as pepperoni), an integer for diameter in inches(such as 12), and a double for price(such as 23.70).

Include methods to get and set values for each of these fields. 


B. Create an application name TESTPizza the intantiates one demonstrate the use of Pizza set and get methods.

Save the application TestPizza.java




import java.util.*;



class App {


public static void main(String[] args) {

Scanner in = new Scanner(System.in);

System.out.println("Enter a String: ");

String line = in.nextLine();

boolean space = true;

boolean first = false;

for (int i = 0; i < line.length(); i++) {

if (line.substring(i, i + 1).equals(" ")) {

System.out.print(line.substring(i, i + 1));

space = !space;

first = false;

} else if (space) {

if (!first) {

System.out.print(line.substring(i, i + 1) + ".");

first = true;

}

} else {

System.out.print(line.substring(i, i + 1));

}

}

System.out.println();

in.close();

}

}

Do the coding without using boolean, array and split


you have been an integer array A of size N.you need to pfint the number with the value closest to zero.if there are multiple elements print the number with greater value.





You are going to make an employee management system. In this lab, you have to create




an Employee class only. Employee class fields are: Employee Name, Employee ID, and Employee Gender. The member functions include the getters and setters for all the member variables and display () function to display the data. In the main function, first create two Employee objects and allow the user to enter data in these objects. Secondly, display the data from these objects.



A company decided to give bonus of 5% to employee if his/her year of service is more than 5 years. Ask user for their salary and year of service and print the net bonus amount.

LATEST TUTORIALS
APPROVED BY CLIENTS