Reference no: EM131314557
CS 2410
Workshop Make-Up Assignment
Write a C++ program that will output to a file called output.txt EVERY 10 digit phone number from 713-000-0000 through 713-000-0998. These numbers MUST only contain an odd number of even digits.
Example:
713-000-0000
713-000-0002
713-000-0004
713-000-0006
713-000-0008
713-000-0011
...[Several numbers are not shown here]
713-000-0484
713-000-0486
713-000-0488
713-000-0491
713-000-0493
713-000-0495
713-000-0497
713-000-0499
713-000-0501
...[Several numbers are not shown here]
713-000-0989
713-000-0990
713-000-0992
713-000-0994
713-000-0996
713-000-0998
There should only be one number displayed per line. The numbers need to have the appropriate ‘-‘ as shown above. Do not hard code this solution. You need to use Boolean expressions to determine which number gets outputted. This Boolean expression must use at least 1 bitwise operator.
Notes:
Turn this into the Blackboard Dropbox labeled "Workshop Make-Up Assignment". Do not email me your solution. Name your .cpp file as "Your_Name.cpp". Only turn in the .cpp file.
You can only turn in this assignment if you have not attended any workshops. This is worth half of your attendance grade. You do not need to do this assignment if you have attended at least 1 workshop.
The bitwise operators can be found in Appendix J. This has been uploaded to Blackboard.
You will only be allowed to turn in a C++ program once for this assignment.
Create a new class called soda that is also a beverage
: Create a new class called Soda that is also a caffeinated beverage by default it will have no option for condiments. Have it called in main. Main also calls the old addLemon function on Tea so that the customer gets two lemons.
|
Construct a loop which will allow for the daily fan count
: Construct a loop which will allow for the daily fan count to be entered for each game. The games number (1-4) should be part of the prompt displayed to the user.
|
Determine the required density of the log
: A circular log of radius r is to be used as a barrier as shown in the figure below. If the point of contact is at O, determine the required density of the log.
|
Relatively low rate of glass recycling
: What are the factors that contribute to our relatively low rate of glass recycling? Discuss three ways that we might be able to improve upon this rate.
|
Write a cpp program that will output to a file called output
: CS 2410- Workshop Make-Up Assignment: Write a C++ program that will output to a file called output.txt EVERY 10 digit phone number from 713-000-0000 through 713-000-0998. These numbers MUST only contain an odd number of even digits.
|
Expected return standard deviation stock fund
: A pension fund manager is considering three mutual funds. The first is a stock fund, the second is a long-term government and corporate bond fund, and the third is a T-bill money market fund that yields a sure rate of 5.9%. The probability distributi..
|
Summarize the video and the main themes contained in it
: Topic:Louis Theroux - MIAMI MEGA JAIL part 1). Summarize the video and the main themes contained in it.Connect these themes to what we have covered and what you gave learned during the course.
|
How many pounds should groundz order at a time
: a. How many pounds should Groundz order at a time? b. What is total annual cost (excluding item cost) of managing this item on a cost-minimizing basis? c. In pursuing lowest annual total cost, how many orders should Groundz place annually?
|
Which areas require further analysis and investigation
: Common-size statement analysis A common-size income statement for Creek Enterprises’ 2014 operations follows. Using the firm’s 2015 income statement presented in Problem 3–18, develop the 2015 common-size income statement and compare it with the 2014..
|