1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
spin [16.1K]
4 years ago
7

Can someone please help me write a code for this

Computers and Technology
1 answer:
Anon25 [30]4 years ago
5 0
When in doubt, decompose (break into smaller parts) the problem!

You need to display a GUI.
You need to accept input from two widgets and convert it integers.
You need to add a range of numbers.
You need to concatenate a string of what you're doing with the addition.
You need to display an answer in a widget and maybe redraw the window.

I've been having success copying the assignment into my source file and decomposing it as comments to frame out my program.
You might be interested in
Decision making process
Zanzabum
Choice is the answer you want 
7 0
3 years ago
Question 15 of 28 (1 point) Jump to Question: Among many other responsibilities, a competent person is responsible for: A. All o
Archy [21]

I think the answer is

A) All of the answers are correct

I hope this helps :)

4 0
4 years ago
When is the next Great Conjunction between Jupiter and Saturn?​
defon

Answer:

November 2040

Jupiter, which is the larger planet, takes 12 years to revolve around the sun, while Saturn takes 29 years. Every 20 years or so, they appear to observers on Earth to come closer to each other. The next Great Conjunction between the two planets – although not nearly as close together – is due in November 2040.

7 0
3 years ago
Write a program that applies the Euclidean algorithm to find the greatest common divisor of two integers. Input should be two in
laila [671]

Answer:

// here is code in c++.

#include <bits/stdc++.h>

using namespace std;

// function that return greatest common divisor

int g_c_d(int num1, int num2)

{

if (num1 == 0)

 return num2;

return g_c_d(num2 % num1, num1);

}

// main function

int main()

{

// variables

int num1,num2;

cout<<"enter two numbers:";

// read two numbers from user

cin>>num1>>num2;

// call the function and print the gcd of both

cout<<"greatest common divisor of "<<num1<<" and "<<num2<<" is "<<g_c_d(num1.num2)<<endl;

}

Explanation:

Read two numbers from user and assign them to variables "num1" and "num2".Call the function g_c_d() with parameter "num1" and "num2".According to Euclidean algorithm, if we subtract smaller number from the larger one the gcd will not change.Keep subtracting the smaller one then we find the gcd of both the numbers.So the function g_c_d() will return the gcd of both the numbers.

Output:

enter two numbers:5 9

greatest common divisor of 5 and 9 is 1

enter two numbers:-25 15

greatest common divisor of -25 and 15 is 5

6 0
4 years ago
what occurs when two adjacent conductors make electrical contact and by-pass a portion of the circuit?
Naily [24]
Its  a short circuit.
5 0
3 years ago
Other questions:
  • Which description best describes how mass spectroscopy is useful in the field of forensic toxicology
    6·1 answer
  • Suppose that you are developing an application in which you want to connect to a server to upload some data. You create a socket
    6·1 answer
  • What are the most significant differences among structured, object-oriented, and agile methods? what do have in common?
    10·2 answers
  • 5. Drawing Conclusions If you were a person in
    10·1 answer
  • Design a Ship class with the following members:
    13·1 answer
  • Beth wants to add information to her powerpoint presentation that is hiden from her audience and only she will see. Which featur
    5·1 answer
  • Which is the best reason for why it is important to be careful about entering personal information online?
    10·2 answers
  • Fill in the blacks
    13·1 answer
  • THE DIFFERENCE BETWEEN COPY AND PASTE AND CUT AND PASTE IS: *
    5·2 answers
  • What do you mean by computer ethics?​
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!