1,486 Answered Questions for the topic computer programming
Computer Programming Computer Science
09/17/21
Create three separate files for this code: 1. Computer.h holds the class' declaration 2. Computer.cpp holds the class' functions' definitions 3. Main.cpp holds the test code (i.e. the main function)
#include <iostream>
#include <string>
using namespace std;
class Computer {
private:
int year;
string model;
string purpose;
public:
Computer(int y, string m, string m2)...
more
Computer Programming Computer Science
09/16/21
Boolean Expression Grammar
Write a grammar for Boolean expressions , assuming that we already have rules in our grammar for arithmetic expressions . Arithmetic expressions might be simple literals like 3 or 97 or may be...
more
09/16/21
Given the following method definitions for the Date class, identify the type of method (accessor or mutator),
Given the following method definitions for the Date class, identify the type of method (accessor or mutator), the return data type, if any, the explicit parameter data types, if any, and...
more
Computer Programming Computer Science
09/15/21
Draw a circuit for the following: A'+B*C'
Computer Programming
09/13/21
Questions about R Programming
I want to know how to write the R code for these:Consider a game of throwing 2 fair dice at the same time. You win $6 if the total of these 2 dice is greater than or equal to 10; or you lose $1 if...
more
Computer Programming C++
09/12/21
complete the member function ( fdeviation(….)) of class Stats :
#include <iostream>#include <cmath>using namespace std;class Stats{ double mean, deviation; public: /** Function for computing mean of an array of double values */ double...
more
Computer Programming
08/25/21
Please help me I don’t understand
Problem StatementDesign and implement a class named "Sport" in pseudocode which uses the OOP conventions discussed in this course and includes the following:• a data field which represents an...
more
08/24/21
Slove the code in C++ .Do not copy paste from net please.
#include <iostream> using namespace std; struct TreeNode { int data; TreeNode *left; TreeNode *right; }; class BinarySearchTree{ private: TreeNode* root; void insertNode(TreeNode *&tree,...
more
08/23/21
Solve it in python
2) Implement a recursive algorithm which will print all the elements of a non-dummy headed singly linked linear list in reversed order.Example: if the linked list contains 10, 20, 30 and 40, the...
more
08/22/21
Not able to print the first element in an array (Inputed by user)
I am trying to print the types of vehicles that are being rented. The issue I'm currently having is that the print statement only prints the second type of input from the user.Here I have the do...
more
08/22/21
Print all the elements of a given array recursively in python. Don't use any built-in functions.
pseudo code is :print_array(array, index=0)if last index: print array[index]else: print_array[index] print_array(array,index+1)Please execute the code in python
08/19/21
Java Code: Generating random numbers with Math.random() within a certain range. Math.random() range: 0.0 <= x < 1.
Math.random() range: 0.0 <= x < 1.
Generate a random integer "i" such that "i" is in the following range: 10 <= i < 20; 10 <= i <= 50.
Write an expression that returns '0' or...
more
Computer Programming
08/19/21
Please help I’m so lost
1. Creates a functioninputNumbersthat uses a loop to allow the user to input 5 numbers between 1 and 10 and store them in an array called numArray. All input should be validated as a number between...
more
08/18/21
Memory Operations and Arrays in ARM Assembly
Open the find_min_array.s file, and open it up in a text editor of your choice. Note that word processors (e.g., Microsoft Word, Pages, Google Docs) will probably not work for this purpose, as you...
more
Computer Programming
08/18/21
Help me please I can’t figure this out
Creates a functioninputNumbersthat uses a loop to allow the user to input 5 numbers between 1 and 10 and store them in an array called numArray. All input should be validated as a number between...
more
08/17/21
Given a function prototype ( void findtotal (int[ ]) ), write a full program with a main() that :
The answer must be in C++ and use #include<iostream>Given a function prototype ( void findtotal (int[ ]) ), write a full program with a main() that :-Gets user input for 5 numbers. The...
more
Google collaboratory assignment. Python coding. PlZ HELP
Create a ColabTurtle program (within one code block) that creates a Turtle that will draw based on the commands you give it. The program should contain at least 200 lines of commands. You must use...
more
08/16/21
Introduction to Branching in ARM Assembly
Open the factorial.s file, and open it up in a text editor of your choice. Note that word processors (e.g., Microsoft Word, Pages, Google Docs) will probably not work for this purpose, as you must...
more
Coding assignement help? Need assistance PLZ
Create a ColabTurtle program (within one code block) that creates a Turtle that will draw based on the commands you give it. The program should contain at least 200 lines of commands. You must use...
more
08/15/21
need any help plz!
Create 2 int variables, return the statement “There is one negative and onepositive number” if one is negative and one is positive, return thestatement “One of the integers is positive” if one of...
more
08/15/21
JAVA HELP ASAP!!
Write a program that continues to ask to enter a passcode and compares it with a predetermined 4 digit integer:a) prompts the user to enter a # and checks every digit one by one. If the user enters...
more
JAVA HELP ASAP!!
Write a program to scan a text file and capitalize each word. To do that:
change the first letter of each word to Capital then
print the resulting text to the console.
Systems In A Park
Part A: A mistake was made in mixing the lemonade for the concession stand, but you can fix it! The lemonade comes in 100% juice concentrate, but you only serve it as 70% solution. Unfortunately,...
more
08/14/21
Unprotected computers turns into zombies under the control of the malicious hacker
A successful distributed denial-of-service attack requires the downloading of software that turns unprotected computers into zombies under the control of the malicious hacker. Should the owners of...
more
Computer Programming C++
08/12/21
Binary search in c++,please slove the code so i can copy paste.I also mentioned the code in the comment.
#include <iostream>
using namespace std;
struct TreeNode
{
int data;
TreeNode *left;
TreeNode *right;
};
class BinarySearchTree{
private:
TreeNode* root;
...
more
Still looking for help? Get the right answer, fast.
Ask a question for free
Get a free answer to a quick problem.
Most questions answered within 4 hours.
OR
Find an Online Tutor Now
Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.