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

A new taxi service based on electric vehicles is offering



services within a metro city. Following is the fare chart



including the type of taxi used to commute and price per



kilometer. Write a java program to calculate total fare



depending on the distance travelled in kilometers.



Note: Use if Control statement



Angle from the positive x axis Quadrant



Between 0 and 90 degrees I



Between 90 and 180 degrees II



Between 180 and 270 degrees III



Between 270 and 360 degrees IV



Type Fare



Micro Php15.00/Km



Macro Php35.50/Km



Shared Php8.50/Km

The quadrant in which line drawn from the origin resides



is determined by the angle that the line makes with the



positive x axis as follows:



Using this information, write a Java method that accepts the



angle of the line as user input and determines and displays



the quadrant appropriate to the input data. (Note: if the



angle is exactly 0, 90, 180, or 270 degrees the corresponding



line does not reside in any quadrant but lies on an axis).



Note: Use if Control statement

5. Write a C Program to calculate the Average of an array elements where the elements are received as input.




All years that are evenly divisible by 400 or are evenly



divisible by four and not evenly divisible by 100 are



leap years. For example, since 1600 is evenly divisible



by 400, the year is was a leap year. Similarly, since



1988 is evenly divisible by four but not by 100, the year



1988 was also a leap year. Using this information write



a Java method that accepts the year as user input,



determines if the year is a leap year, and displays an



appropriate message that tells the user if the entered



year is or is not a leap year.



Note: Use if Control statement


4. Write a C program to input number from user and check number is palindrome or not using while loop.

3. Write a C program to input a number from user and print multiplication table of the given number using for loop.

Write a java program to convert car consumption from one unit to another. Offer the user the choice of either conversion, kpl to mpg or mpg to kpl. The interface should be: PREFERRED CONVERSION: 1. kpl to mpg 2. mpg to kpl Enter your choice: 2 Enter miles per gallon value: mpg_value The equivalent kilometers per liter is: kpl_value Use the constants 1 mile = 1609 meters and 1 gallon = 3.785 liters. Useful formula: mpg = (kpl / 1.609) * 3.785 kpl = (mpg * 1.609) / 3.785 Note: the output of the program above should be formatted to 2 decimal places using the method System.out.printf(). Note: Use switch Control statement


2. Write a C program to perform addition, subtraction, multiplication and division of two integer numbers, respectively 2 and 6 and show the result on the screen.





1. Write a C program to print your name, date of birth, mobile numbers and university’s name on separate line.




A large school categories its students as Year 1, Year 2, up to year 7. The school is interested in finding out  how many Year 1 students are taller than 135 cm and how many year 7 students are shorter than 175 cm.  Write an algorithm, in the form of a flowchart, which inputs the year number and height of all 1000  students. The output will be how many students in year 1 were taller than 135 cm and how many  students in year 7 were shorter than 175 cm. 




LATEST TUTORIALS
APPROVED BY CLIENTS