Writing a program to calculate the value of smallest integer


Project Description

Using the windows32 framework, write a program that will input an integer targetValue, and calculate the value of nbrTerms, where nbrTerms is the smallest integer such that

12 + 22 + 32 + ... + nbrTerms2 ≥ targetValue

For example, if you input 50, then the program would display 5 since 1 + 4 + 9 + 16 = 30, but 1 + 4 + 9 + 16 + 25 = 55.

Other requirements:

• Use appropriate prompts and labels

• Prompt for targetValue until the user enters a positive value

• Comment your code appropriately – including a comment block at the beginning of the file with your name, course information, and program information.

Request for Solution File

Ask an Expert for Answer!!
Programming Languages: Writing a program to calculate the value of smallest integer
Reference No:- TGS01909

Expected delivery within 24 Hours