Other Programming & Computer Science Answers

Questions: 537

Answers by our Experts: 537

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 & Filtering

Create a program that takes in the following CMD arguments: A car’s plate number (registration
number), arrival time and departure time plus the cost for staying in the parking lot. Your task then
is to take these given information to print a simple receipt as indicated below (Don’t worry about the
calculations for now.)
Sample run 1:
Java lab01_task04 N88W 8h30 9h45 6.25
Output:
Vehicle Details
N88W
++++++++++++++++++++++
Arrival 8h30
Departure 9h45
++++++++++++++++++++++
Total Cost: N$ 6.25
++++++++++++++++++++++
Create a program to print out the following statement in three different lines: WELCOME TO LAB01

1.2 A lecturer wants to know if his statistics class has a good grasp of basic maths from matric level. Eleven students are chosen at random from the class and given a maths proficiency test. The lecturer wants the class to be able to score above 75 on the test to show that they had a good grasp of basic maths. The eleven students get scores shown below: 62 88 71 50 67 70 92 75 68 83 95 Can the lecturer be 95 percent confident that the students had a good grasp of basic maths? 


The four branches of a bakery in new York made sales(in millions us dollars). As shown below

A 1.13 1.71 1.39 1.68 1.74 1.19 1.15 1.36

B 1.34 1.47 1.74 1.53 1.74 1.19 1.15 1.36

C 1.15 1.33 1.01 1.28 1.20 1.59 1.59 1.68

D 1.03 1.68 1.78 1.51 1.23 1.91 1.34 1.82

Write a well commented program in R that uses the data to compute the following parameter estimates


a) CS =(( (n1-1)s21 +(n2-1)s22 +(n3-1)s23 +(n4-1)s24)/(n1+n2+n3+n4-4))1/2


b)CM= (n1x1+n2x2+n3x3+n4x4)/(n1+n2+n3+n4)

where

ni =sample size for the ith branch

xi =sample mean for the ith branch

s2i=sample variance for the ith branch

i=1,2,3,4



How do I do code for the number of words in a sentence

A ticket selling booth in a cricket stadium, people has to buy the ticket from this booth to enter into the stadium. Price of the each ticket is Rs. 500. The booth keeps track of the number of people visited the stadium. Model this ticketing booth with a class called Counter A including following members Data members (i) Number of people visited (ii) Total amount money collected Member functions (i) To assign initial value (ii) To increment people total as well as amount total if a ticket is sold out. (iii) To display two totals Write a program to test this class.



If x= 50.7,y=25.3 and z is defined as integer z, calculate z=x+y?

YWrite a class LocalPhone that contains an attribute phone to store local phone number. The class contains member functions to input and display phone number. Write a child class NatPhone for national phone number that inherits LocPhone class. It additionally contains an attribute to store city code. It also contains member functions to input and display the city code. Write another class intPhone for international phone number that inherits NatPhone Class. It additionally contains an attribute to store country code. It also contains member functions to input and show the country code.


Write a class array that contains an array of integers as data member. The class contains the following member functions: (Marks 8)

• A constructor that initializes the array element to -20.

• Input function to input the values in array.

• Show function to display the values of the array.

• Overload == operator to compare the values of 2 objects. The overloaded function return 1 if all values of both objects are same and return 0 if not same.



Write a class template that inputs the index of the array and displays the value in the specified index.


LATEST TUTORIALS
APPROVED BY CLIENTS