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

Identify the errors in the following programs, and explain how you would correct them to

make them do what they were apparently meant to do.

a). Give two ways to x this code: 2

#include <iostream >

int main()

{

printNum(35);

return 0;

}

void printNum( int number)

{

std::cout << number;

}


Create a class called Match that will have team the class must have the following data members and methods:









Data Members:





• This class has two data members named HomeTeam and VisitorTeam which are of type Team, they will store that two teams that will play the Match.





Methods:





• This class doesn’t have a default constructor, it only has one constructor which receives two Team object that will be assigned to HomeTeam and VisitorTeam.





• setTeams(),which receives two Team object that will be assigned to HomeTeam and VisitorTeam.





• playMatch(), simulates match play by calling the scoreGoals methods of each team.





• getPlayGound(), returns the ground of play which is the HomeGound of the HomeTeam.





• isDrawMatch(), will return true if the Match is a draw and false if there is a winner. The match is a draw if the goals of the teams are equal.





• getWinner(), returns the team which won the match, a team wins if its goals is higher than the goals of the other team.









6. Write a Python program that reads a number and finds the sum of the series of 1 +11 + 111 + 1111 + ….+N terms. 

===================================================== 

Sample Input1

Sample Output1: 

1 + 11 + 111 + 1111 + 11111 

The Sum is: 1234




In Java , Write a class Marks with three data members to store three marks. ... Create two constructors and a method to calculate and return the sum 

4. Write a Python program to Capitalize the first character of each word in a String [You cannot use the built-in upper() function]

Sample Input: 

I love python programming 

Sample Output: I Love Python Programming


2. Write a Python program to find the largest and smallest word in a string. 

[you are not allowed to use max() and min()]

Sample Input

It is a string with the smallest and largest word. 

Sample Output

The largest word is “smallest” and the smallest word is 'a'.





you are given a undireevted tree with n nodes numbered from 0ton-1 each node has a value represented by the array arr of length n you have to divode this tree into two components by removing a single edge moreover you need to ensure the bitwise and of both trees obtained is same find total number of ways to divide the given tree

Morse code has been one of the most basic communication protocol and still used to convey SOS

messages and other urgent communication. In Morse code each English alphabet is encoded by a sequence of ’.’ and’-’, see Figure 1 for complete mapping between English alphabets and Morse codes. Your task is to design a program

that can (i) convert any given string into a Morse code sequence and (ii) a morse code sequence to string. You are not authorized to used string data type, however you can use char *


Write a c++ program using two dimensional array that will store the student id number, average quiz score, midterm exam score, and final exam score maximum of 25 students(score must from 0 to) and Instead of forcing the user to enter all of the data at once and displaying all of it, the program will provide menu options that allows user to add new records, delete, update and view all records. It should also provide an option called settings that allows the user to set the grading criteria that will be used in the computation of grades. You may include an additional functionality that allows the user to search a specific record of a student given the student number. A sample menu driven application is given below

Mini Grading System

1. Add New Record

2. Edit Record

3. Delete Record

4. View All

5. Settings

6. Search

7. Exit

Enter your choice:


Create a java program of following output.

Output:

My name is Nico Sumpang

The sum is: 10

The difference is: 5

The product is: 20

The quotient is: 2.5

St. Augustine SY 2020-2021


LATEST TUTORIALS
APPROVED BY CLIENTS