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

Write a program to calculate the sum and average of your various courses and use it to determine your grading point



If grade is equal to or greater than 70 your grade is A



If grade equivalent or greater than 60 your grade is B



If grade equivalent or greater than 50 your grade is C



If grade equivalent or greater than 45 your grade is D



If grade equivalent or greater than 40 your grade is E



Anything below your grade is F.

Given two integers M, N as input. Write a program to print all the composite numbers present in the given range (including M and N)



Input:



2



9




Fiona has recently started acrylic painting and she is planning to order a few canvases and paints from an online stationery shop. The price of each 10 x 10 sized canvas is 120 tk and the price of each 25 ml paint tube is 75 tk. Depending on the total amount ordered from the shop, she will get some discounts. The table below shows the discount she will get on her total amount.


Total Amount (TK) Discount (TK)

0 - 299 No Discount

300 - 499 10

500 - 749 20

750 - 999 50

>= 1000 150

Write a python program and take two inputs from the user. The first input will be the number of canvases and the second input will be the number of paint tubes ordered. Based on the price of each item, calculate the total amount that Fiona needs to pay including the discount.


Construct a binary tree using the following 20,19,22,15,12,10,9,7,24,26,23,29,28,25

Write the Python code of a program that reads an integer, and prints the integer if it is NOT a multiple of 2 OR NOT a multiple of 5.

import java.util.*;



class App {



public static void main(String[] args) {

Scanner in = new Scanner(System.in);

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

String string = in.nextLine().toLowerCase();

System.out.print("Enter character to find: ");

String characterFind = in.nextLine().toLowerCase();

int index = string.indexOf(characterFind);

System.out.print("Index Position: ");

while (index >= 0) {

System.out.print(index + " ");

index = string.indexOf(characterFind, index + 1);

}

in.close();

}

}

Do this coding without using characterFind


Write a program in java.io package to take a String as input then display first word all capital letters, second word all small letters, third word all capital letters and so on.

Example:

Enter a String

Asia is the largest continent

ASIA is THE largest CONTINENT

Don't use array and split function


import java.util.*;



class App {



public static void main(String[] args) {

Scanner in = new Scanner(System.in);

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

String words[] = in.nextLine().toLowerCase().split(" ");

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

if (i % 2 == 0) {

System.out.print(words[i].toUpperCase() + " ");

} else {

System.out.print(words[i].toLowerCase() + " ");

}

}



in.close();

}

}

Do this programming without using array and split


Write a program to take a name as input then display the signature as the first letter of each word with dot.

Enter a String

Hubert Blaine Wolfeschlegelsteinhausenbergerdorff Sr

H.B.W.S.

Don't use array and split function


import java.util.*;



class App {



public static void main(String[] args) {

Scanner in = new Scanner(System.in);

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

String words[] = in.nextLine().split(" ");

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

System.out.print(words[i].toUpperCase().charAt(0) + ".");

}



in.close();

}

}

Do this coding without using array and split


LATEST TUTORIALS
APPROVED BY CLIENTS