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
weeeeeb [17]
3 years ago
12

Given that n refers to a positive int use a while loop to compute the sum of the cubes of the first n counting numbers, and asso

ciate this value with total. Use no variables other than n, k, and total in python
Computers and Technology
1 answer:
dybincka [34]3 years ago
7 0

Answer:

The program in Python is as follows:

n = int(input("n:"))

total = 0

for k in range(1,n+1):

   total+=k**3

print(total)

Explanation:

This gets input for n

n = int(input("n:"))

This initializes total to 0

total = 0

This iterates from 1 to n

for k in range(1,n+1):

This adds up the cube of each digit

   total+=k**3

This prints the calculated total

print(total)

You might be interested in
Alison retrieved data from a company database containing personal information on customers. When she looks at the SSN field, she
enyata [817]

Answer:

The correct option to the following question is an option (D) Masking.

Explanation:

The following option is correct because Masking is the ability to apply mask on the value with the help of bitwise AND, OR and XOR,  

That's why, when Alison looks the Social Security Number then it looks different and this is the 9 digits of Social Security Number which is in three parts, the first part is for the area, the next part is for group number and last part is for the serial number.

5 0
4 years ago
Jane wants to type a math assignment involving percentages she wants to insert the percent symbol after typing a number which ke
borishaifa [10]
To type a percent symbol. Press shift+5.
8 0
3 years ago
Explain The Two Way Communication in full.
zzz [600]

Two-way communication is when one person is the sender and they transmit a message to another person, who is the receiver. When the receiver gets the message, they send back a response, acknowledging the message was received.

5 0
3 years ago
As we learned in the unit, basic speech is developed during the toddler years. To what extent do you think a toddler’s speech is
lidiya [134]
I'm not a mother, of course, but I have babysat a lot. I have picked up toddlers language being incredibly influenced by their parents. One child's father is very vulgar, and she told me she would "spank a**" me yesterday. Whereas other children, with polite parents, are nothing but nice (unless their parents are strict, which may cause behavioural problems). They adapt to the habits of their parents.
5 0
3 years ago
When preparing to communicate a solution to a design problem, you must:?
damaskus [11]
You must Examine the viewpoint of ur audiences
7 0
3 years ago
Other questions:
  • The ______________ steps through the source code, converting each source code instruction into appropriate machine language foll
    7·1 answer
  • What can you say about the following Java class definition?
    10·1 answer
  • _____ creates a border or space that separates information.
    14·1 answer
  • 7. Four more than negative eleven times a number is 26.​
    7·2 answers
  • Pls help me!! I will give 35 points and mark brainliest !!!
    10·1 answer
  • Complete the getOdds method so it returns a new ArrayList of Integers containing all odd Integers from the parameter ArrayList v
    13·1 answer
  • ____ is an easy way to invitation through a web page​
    13·1 answer
  • 1. You are designing a program that will keep track of the boxes in a doctor’s office. Each box will have three attributes: date
    10·1 answer
  • Who would win in a fight, Noble 6 from halo reach or Master Chief??
    6·2 answers
  • When conducting memory and recall tests, some people make an effort to normalize memories by not reporting extreme cases. this l
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!