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

§Construct a flowchart that will convert an inputted number in Fahrenheit to its equivalent measure in Celsius using Formula: C = (5/9)*(F-32)


use flowchart to Find Cube of a Number  

String Slicing


Given two strings

inputString and subString as inputs, write a JS program to slice the inputString if it includes the subString. Slice the inputString starting from the subString to the end of the inputString.
Input

  • The first line of input contains a string inputString
  • The second line of input contains a string subString

Output

  • The output should be a sliced string or inputString (if the inputString does not include the subString)



function main() {

 let inputString = readLine();

 const subString = readLine();

  

 /* Write your code here */

  

  

}


DRAW FLOWCHART TO Calculate area of a rectangle using  area = base * height



Write an inline function sum() with four parameters that calculates the

arguments

provided and returns their sum.

Parameters: Four variables of type long.

Returns: The sum of type long.

Use the default argument 0 to declare the last two parameter.


Using flowcharts, write an algorithm to read 100 numbers and then display the sum.


 Design an algorithm and the corresponding flowchart for finding the sum of the numbers 2, 4, 6, 8, …, n


algorithm to read 100 numbers then display the largest.


In a company an employee is paid as under: If his basic salary is less than Rs. 1500, then HRA = 10% of basic salary and DA = 90% of basic salary. If his salary is either equal to or above Rs. 1500, then HRA = Rs. 500 and DA = 98% of basic salary. If the employee's salary is input by the user write a program to find his gross salary.


Design a class TBills to include customer_id, customer_name, phone number, calls and usagecost and also include the following member functions


-getCustomerData()- To input customer data(customer_id, customer_name, phone number,calls)


-usage_cost() - to calculate the monthly telephone bills and calculate the usage cost of telephone bill as per the following rule:


• Minimum Rs. 200 for upto 100 calls.


• Plus Rs. 0.60 per call for next 50 calls.


• Plus Rs. 0.50 per call for next 50 calls.


• Plus Rs. 0.40 per call for any call beyond 200 calls.



-monthlyTelephoneBills() - to display monthly telephone bills of customer


LATEST TUTORIALS
APPROVED BY CLIENTS