276 Answered Questions for the topic computer programming

#### Java String class

So we are given to write the exact output of the following code:class stri123{ public static void main(String[] args) { String name = "University Grants Commission"; boolean sword...
more

#### Java Program / methods

One sales shop offer following discount rates to customers based on their bill value.Bill value Range Discount ratebill value >= 10000 discount 20%bill value >= 5000 disocunt 10%bill value...
more

#### what do microelectronic parts in a computer operate on?

What do microelectronic parts in a computer operate on? Is it A. Low voltage alternating current, B. high-voltage direct current, C. +120 volts AC power, D. low-voltage direct current

#### Java Number Patterns

How do we print,_ _ _ _1_ _ _2 1_ _3 2 1_ 4 3 2 1In Java?Please help, I don't know how to get started

#### Write a function quartersToDollars which takes quarters of type int as an argument and return the equivalent number of dollars as double.

The prototype of the function is double quartersToDollars(int)For ex if you pass 4 as an argument the method should return 1.0 and if you pass 7 as an argument the method should return 1.75...
more

#### Write a function timesTenthat returns a value that is ten times the value of the parameter passed to it. The prototype of the function is shown below.double timesTen(double);

Output:Enter a number: 12.34The value of ten times of 12.34 is 123.4

#### Write a function that calculates the first 50 prime numbersYou can do this program with two functions

1) bool isPrime(int number)2) void printPrimeNumbers(int numberOfPrimes)

#### I can anyone help me understanding this problem

Let F and G be sequences which satisfy the joint recursion:𝐹𝑛+1 = 𝑎𝐹𝑛 + 𝑏𝐺𝑛𝐺𝑛+1 = 𝑐𝐹𝑛 + 𝑑𝐺𝑛Where a, b, c, and d are non-zero constants. Find recursions for F and G individually.

#### How do I program this problem?

Write a program to read 10 integers from an input file, “num.txt”, and output the average, minimum, and maximum of those numbers to an output file “out.txt”. Also make sure to test for the...
more

#### Find a function called temp of seawater with latitude (as a number in the interval [0, 90]) and depth?

Just as the atmosphere may be divided into layers characterized by how the temperature changes as altitude increases, the oceans may be divided into zones characterized by how the temperature...
more

#### Recursive function in Pascal for division of numbers

Write a Pascal code which, given two integers, divides them (integer division) using only substraction. Use recursion.

10/11/19

#### I stick with this question to write a code if you help me I'm happy

Light travels at 3 × 108 meters per second. A light-year is the distance a light beam travels in one year.Write a program that calculates and displays the value of a light-year.Useful...
more

10/11/19

#### How does one set about learning how to use a python3 module

I have recently started to learn python and i have fine understanding of the python 3 syntax. I wanted to start learning more about numpy ,scipy tenserflow. I have tried reading the documentation...
more

10/04/19

#### How do I properly fill in and create a While Loop Flowchart and Pseudo code for this? I also need to perform 3 desk checks, details below...

"Farmer Pete’s pigs and sheep are all intermingled. He wants to be able to determine how many pigs and sheep he has by just walking out and counting them one at a time. He also needs to know what...
more

10/03/19

#### Java Programming

Hi, I'm new to Java. I've been working on this question, wrote the code and checked the results with some examples and it seems to be doing fine. I would be glad if any of the tutors can check the...
more

10/02/19

#### Since C++ is an old language why it is still taught in universities and colleges?

Since C++ is an old language why it is still taught in universities and colleges?

10/01/19

#### Java Switch Case

Why is the output of the code 14, not 8 : alpha=3+5=8?public class Application4{public static void main(String[] args) {int alpha=3;int beta=5;switch (beta){case 3:alpha=alpha+3;case...
more

09/28/19

#### how do I find the total cost of four years’ worthof tuition after the tenth year (11thto 14thyear).

#include <iostream>#include <iomanip>using namespace std;int main(){ double initialTuition = 10000; double theRate = 0.05; double startOfFourYearTuition = initialTuition; ...
more

09/24/19

#### I need a good explanation for this problem please

We’ll call a set of numbers un-average if the average of any two numbers in the set is not in the set. So {1, 3, 6, 7, 10} is un-average, but {1, 3, 6, 7, 9} is not. What is the largest set of...
more

09/23/19

#### anyone can help me with this problem with some explanation

We’ll call a set of numbers un-average if the average of any two numbers in the set is not in the set. So {1, 3, 6, 7, 10} is un-average, but {1, 3, 6, 7, 9} is not. What is the largest set of...
more

09/20/19

#### How do I get the company name to show all of it?

My output:Enter the name of the companyEnter shares of stockEnter purchase priceEnter sale price Company: "Still"Expected Output (should look like)Enter the name of the companyEnter sale price...
more

09/17/19

#### Find the next two terms of sequence

U0 = 1U1 =3And Un is defined by Un+2 = 2 * Un+1 + 3 * UnFind the next two terms

09/12/19

#### program that can change all string input into A except the middle input

Example:Input: bears Input: moneyOutput: AAaAA Output: AAnAAJAVASCRIPT please help me!

## 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.