Find Jobs
Hire Freelancers

C++ work

$30-5000 USD

已完成
已发布大约 22 年前

$30-5000 USD

货到付款
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.
项目 ID: 2837709

关于此项目

3提案
远程项目
活跃22 年前

想赚点钱吗?

在Freelancer上竞价的好处

设定您的预算和时间范围
为您的工作获得报酬
简要概述您的提案
免费注册和竞标工作
颁发给:
用户头像
See private message.
$13 USD 在14天之内
5.0 (53条评论)
5.4
5.4
3威客以平均价$16 USD来参与此工作竞价
用户头像
See private message.
$12.75 USD 在14天之内
4.7 (32条评论)
3.3
3.3
用户头像
See private message.
$21.25 USD 在14天之内
4.8 (21条评论)
3.2
3.2

关于客户

UNITED STATES的国旗
United States
0.0
0
会员自2月 16, 2002起

客户认证

这个客户的其他工作

MATH
$30-5000 USD
MATH 1
$30-5000 USD
谢谢!我们已通过电子邮件向您发送了索取免费积分的链接。
发送电子邮件时出现问题。请再试一次。
已注册用户 发布工作总数
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
加载预览
授予地理位置权限。
您的登录会话已过期而且您已经登出,请再次登录。