435 Answered Questions for the topic general computer

05/07/21

Write method to calculate Stimulus Amount. name: calculateStimulus, Parameters; Integer Array called Ages that contains ages of people &return type: void& works for any array size

Write the method to calculate Stimulus Amount:        Method name: calculateStimulus       Parameters:  Integer Array called Ages that contains ages of people       Return type: void        Logic:... more

05/03/21

Fibonacci functions. You will write three functions, each of which computes Fibonacci numbers.

Write the assembly code for the functions fibonacci_recursive.s, fibonacci_iterative.s, fibonacci_closed.s. Provide the assembly code as the answers for all three functions separately.main.c... more
General Computer Computer C++ Computer Programming

04/26/21

Tag Remover. Read in a string that may have spaces (use getline!).

Read in a string that may have spaces (use getline!). In the string will be something that looks like [TAG]text inside tag[/TAG] where TAG can be any string. Print out the TAG, a colon, and the... more
General Computer Computer C++ Computer Programming

04/26/21

Sher. Write a word shortener.

Write a word shortener. Read in a string (you may assume no spaces). If it is 4 characters or less, print it back out. If it is more than 4 characters, print just the first two followed by the last... more
General Computer Computer C++ Computer Programming

04/26/21

Caturday Check. Read a string (will not have spaces).

Read a string (will not have spaces). Print "true" if the word "cat" appears starting at the first or second letter. Otherwise print false.Samples: Input: catch Output: true Input: scatter ... more
General Computer Computer C++ Computer Programming

04/26/21

First Middle Last Letter. Read in a string from cin (it will not have any whitespace).

Read in a string from cin (it will not have any whitespace). Print out the first character, middle character (if string is an even length, print the second of the two middle letters), and last... more
General Computer Computer C++ Computer Programming

04/26/21

All To Upper. Read a string from cin into word and modify it so that it has all uppercase letters.

Read a string from cin into word and modify it so that it has all uppercase letters.Samples: Input: hello Output: HELLO Input: h3Llo Output: H3LLO Hints: You can only change the code in the... more

04/26/21

String Compactor. Write code that will read in a string and then print out every other character of the string.

Write code that will read in a string and then print out every other character of the string. You should use getline to read in the string... it may have spaces.Samples: Input of "Hello" should... more

a program that reads names from a file  However, the program does not work as expected. It gives an ArrayOutOfBounds exception. Correct this without changing the size of the array.

Here is a program that reads names from a file Friends-1.txt  download  and stores them in an array called friends.It then asks the user for a name and searches the array for the friend. If it... more

Explain ways Scanner class create objects that can input data from the three types of input sources. Give 3 examples of the use of Scanner objects. Describe 1 Scanner method

Explain the ways in which the Scanner class can be used to create objects that can input data from the three types of input sources.Give 3 examples of the use of Scanner objects. Describe 1 Scanner... more

Method called searchGenius inputs information from user& tries to find a genius student.. Not work as expected. debug the method by 1. What line does error occur? 2. what is the error & why 3. correct

Here is a method called searchGenius inputs information from the user and tries to find a genius student. A "genius" student is considered to be one who is between 18 and 21 years of age, has... more

For each of the following while loops, how many times will the loop execute its body? Remember that "zero," "infinity," and "unknown" are legal answers.

For each of the following while loops, how many times will the loop execute its body? Remember that "zero," "infinity," and "unknown" are legal answers.a) int x = 1; while (x < 100) { ... more

04/19/21

Counting 1. Write a program that reads in a number, and writes out from 1 to that number. An input of 5 would produce 12345.

Write a program that reads in a number, and writes out from 1 to that number. An input of 5 would produce 12345.Code:#include <iostream>using namespace std;int main(){ //YOUR_CODE}

04/13/21

Compilation is normally encapsulated so that all of the necessary steps happen behind the scenes. Type the following C code into a file named count.c.

CompilationCompilation is normally encapsulated so that all of the necessary steps happen behind the scenes. Type the following C code into a file named count.c.#include <stdio.h>#include... more

Zookeeper and kafka

What is the role of kafka in zookeeper
General Computer

04/08/21

how many decimal numbers does 64 bits represent?

General Computer Computer C++ Computer Programming

04/05/21

C++. Write a program that reads three integers from cin and outputs them in order from smallest to largest.

C++.Write a program that reads three integers from cin and outputs them in order from smallest to largest.Example: input of 3 8 5 should result in output of:3 5 8Hints: You do not have to actually... more
General Computer Computer C++ Computer Programming

04/05/21

C++. An international phone call is billed by the minute according to this scheme: Calls up to 10 minutes cost a flat $5.

An international phone call is billed by the minute according to this scheme: Calls up to 10 minutes cost a flat $5. Calls over 10 minutes but less than 30 cost $.50 per minute. Calls 30 minutes or... more

04/05/21

In a dice game, you get the total you roll on two dice, unless they are the same, in which case you get double what they total. Write a program that helps score the game.

C++. In a dice game, you get the total you roll on two dice, unless they are the same, in which case you get double what they total. Write a program that helps score the game.Read in two integers... more
General Computer Computer C++ Computer Programming

04/05/21

Orders from a company that cost $100 or more get a 10% discount. Orders less than $100 do not get a discount.

C++.Read in an decimal value representing the undiscounted order price, and print out what the order should cost.Just print the value - do not add a $ or try to make it look like... more
General Computer Computer C++ Computer Programming

04/05/21

Read in a single integer from cin. If it is 7, output "Lucky". If it is not 7, output nothing.

C++#include <iostream>using namespace std;int main(){ //YOUR_CODE}
General Computer Computer C Computer Programming

04/05/21

C Programming. First, fully parenthesize the following expressions according to the precedence and associativity rules.

First, fully parenthesize the following expressions according to the precedence and associativity rules. Then, replacing the variables and constants with the appropriate type names, show how the... more

04/05/21

C Programming Questions: 1. What is unusual about the logical operators? 2. What is a possible problem using continue in while statements?

1. What is unusual about the logical operators? 2. What is a possible problem using continue in while statements?
General Computer Computer C++ Computer Programming

03/31/21

The Rectangle class has been declared and main makes use of it. Add the function implementations so the code compiles and runs successfully.

The Rectangle class has been declared and main makes use of it. Add the function implementations so the code compiles and runs successfully.Hint: Every function name is going to need Rectangle:: in... more
General Computer Computer C++ Computer Programming

03/31/21

Your job is to implement the constructor that takes an hour and minute value. Hint: The constructor is going to need Time:: in front of its name.

Read the existing code for Time. It stores a time of day in 24 hour format with 0 hours indicating midnight and 12 hours indicating noon.Your job is to implement the constructor that takes an hour... 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.