Find Jobs
Hire Freelancers

C++ work

$30-5000 USD

Completed
Posted about 22 years ago

$30-5000 USD

Paid on delivery
a) Odd & Even Consecutive Sums Write a program that takes a positive integer value as input. Continue to prompt the user if anything but a positive integer value is entered. Display all consecutive series of odd numbers or even numbers, in which the sums of the terms add up to the number originally entered. Have the program continue to run until the user enters 0 as a value. Sample Output: Please enter a positive integer : -32 Please enter a positive integer : 2.643 Please enter a positive integer : xcsadf Please enter a positive integer : 5 Found an even consecutive series from -3 to 5 Please enter a positive integer : 100 Found an even consecutive series from -98 to 100 Found an odd consecutive series from -47 to 51 Found an even consecutive series from -20 to 28 Found an even consecutive series from -14 to 24 Found an odd consecutive series from 1 to 19 Found an even consecutive series from 16 to 24 Found an even consecutive series from 22 to 28 Found an odd consecutive series from 49 to 51 Please enter a positive integer : 2002 Found an even consecutive series from -2000 to 2002 Found an even consecutive series from -998 to 1002 Found an even consecutive series from -278 to 292 Found an even consecutive series from -170 to 192 Found an even consecutive series from -140 to 166 Found an even consecutive series from -128 to 156 Found an even consecutive series from -68 to 112 Found an even consecutive series from -50 to 102 Found an even consecutive series from 52 to 102 Found an even consecutive series from 70 to 112 Found an even consecutive series from 130 to 156 Found an even consecutive series from 142 to 166 Found an even consecutive series from 172 to 192 Found an even consecutive series from 280 to 292 Found an even consecutive series from 1000 to 1002 Please enter an integer : 0 Thank you! reality:~] b) Word Triangle Write a program that prompts the user for a sentence that can possibly contain any number of whitespaces. Using the characters in the sentence, generate the symmetric triangular configuration with each subsequent row containing one more character on each side, as shown below. When forming the triangle using the characters, substititute all spaces, as well as any unfilled positions of the triangle, for the asterisk (*). Have the last row of the triangle be tangent to the edge of the output screen, as shown below. Sample Output : Please ## Deliverables Complete and fully-functional working program(s) in executable form as well as complete source code of all work done. Complete copyrights to all work purchased.
Project ID: 2837709

About the project

3 proposals
Remote project
Active 22 yrs ago

Looking to make some money?

Benefits of bidding on Freelancer

Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs
Awarded to:
User Avatar
See private message.
$13 USD in 14 days
5.0 (53 reviews)
5.4
5.4
3 freelancers are bidding on average $16 USD for this job
User Avatar
See private message.
$12.75 USD in 14 days
4.7 (32 reviews)
3.3
3.3
User Avatar
See private message.
$21.25 USD in 14 days
4.8 (21 reviews)
3.2
3.2

About the client

Flag of UNITED STATES
United States
0.0
0
Member since Feb 16, 2002

Client Verification

Other jobs from this client

MATH
$30-5000 USD
MATH 1
$30-5000 USD
Thanks! We’ve emailed you a link to claim your free credit.
Something went wrong while sending your email. Please try again.
Registered Users Total Jobs Posted
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Loading preview
Permission granted for Geolocation.
Your login session has expired and you have been logged out. Please log in again.