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
Of the three different types of résumé formats (chronological, functional, or combination), which format would you use to create
Varvara68 [4.7K]

Of the three types of resume formats (chronological, functional, or combination), I would select the combination format.

Explanation

Choosing the type of Resume depends on what you want your employer to see and the circumstances you are currently in. Some would prefer the chronological Resume because it the most popular Resume used. However, choosing a chronological resume while you are in the process of switching careers or have recently joined the job market is not a good idea. It is specifically meant for those people who have experience. Functional Resume, on the other hand, works well in situations where people have gaps in their work history or looking to switch from one career to the another one.

Combination Resume, in my opinion, stands out as the most preferred Resume to use. It is a combination of chronological and Functional Resumes. A combination Resume;

  • Helps you highlight both your transferable skills and work history
  • It can be used by older workers, those in internship programs, people seeking to switch careers, and experienced workers.
  • It helps showcase your skillset and helps highlight “why you think you are the best fit for the role” question.

Learn more about interview process and Resume structure

brainly.com/question/9018115

#LearnwithBrainly

3 0
3 years ago
Read 2 more answers
I need help with this plz! It’s for a test and I really need help
Bas_tet [7]

Answer:

c

Explanation:

assuming you are coding in python and have not install any calculation codes, the answer is most likely c

4 0
3 years ago
A researcher is interested in whether working memory is influenced by lack of sleep. The researcher administered a measure of wo
ale4655 [162]

Answer:

Dependent sample t-test

Explanation:

The Dependent sample t-test compares the mean score of measurements in one group to that of another other group. It mainly used when analyzing comparable sample units as it pairs repeatable observations within a time frame.

For example, a researcher administered a measure of working memory to a group of subjects at 8am on Day 1 of the study and then again at 8am on Day 2 of the study, after keeping the subjects awake the entire night.

5 0
3 years ago
Given the function definition void something ( int a, int& b ) { int c; c = a + 2; a = a* 3; b = c + a; } what is the output
timurjin [86]

Answer:

1 14 3

Explanation:

If that code fragment is put under a main() function and then it will yield the above output. According to the function something(), only changes in value second parameter will be reflected and first will be unchanged because second is passed by reference and the first one is passed as value so only address of 's' is passed, so, only its value is changed and the rest are same.

8 0
3 years ago
Where is voice data stored in Android?
Dafna1 [17]
Inside its internal hard-drive and your google account!
8 0
3 years ago
Other questions:
  • OSHA requires that employers pay for most required personal protective equipment (PPE), including: A. Hard hats B. Logging boots
    5·1 answer
  • Name size of machine screw that is used to secure switches and receptacles to device boxes
    13·1 answer
  • What daily life problems does the algorithm quicksort solve?
    14·1 answer
  • Page No.:
    11·1 answer
  • What is the output of the following code? public class Test { public static void main(String[] args) { String s1 = new String("J
    9·1 answer
  • jason works for a restaurant that serves only organic local produced what trend is this business following?
    6·2 answers
  • 9. DIMMs used in servers can provide additional reliability if they use what specific technology.
    8·1 answer
  • Class C Airspace inner ring begins at the __________ and extends vertically (by definition) to MSL charted values that generally
    5·1 answer
  • Different search engines available on the internet​
    7·1 answer
  • What is bigger that terbites
    10·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!