The world’s Largest Sharp Brain Virtual Experts Marketplace Just a click Away
Levels Tought:
Elementary,Middle School,High School,College,University,PHD
| Teaching Since: | Apr 2017 |
| Last Sign in: | 103 Weeks Ago, 3 Days Ago |
| Questions Answered: | 4870 |
| Tutorials Posted: | 4863 |
MBA IT, Mater in Science and Technology
Devry
Jul-1996 - Jul-2000
Professor
Devry University
Mar-2010 - Oct-2016
This is c++ programming assignment. I need code  The following problem was recently given to members of the American Mensa Society. Find all five digitnumbers, abcde, where 0 showing this. Could you please send me the file of notepad++? Files are attatched
Â
Â
Lab 12
Source File:
Input:
Output:
Value: Due Date: See Blackboard
~/1337/12/lab12.(C|CPP|cpp|c++|cc|cxx|cp)
None
Screen
1 The following problem was recently given to members of the American Mensa Society. Find all five digit
numbers, abcde, where 0 < a ≤ 9 and 0 ≤ b, c, d, e ≤ 9 such that:
• ab is the product of d and e,
• b is four times e,
• e is seven less than d, and
• c is the sum of a and b.
The Mensa members were asked to solve this problem without the aid of computers. Since this is a programming class, write a computer program to find all such numbers satisfying the above criteria. All such
numbers should be written to the screen, one per line.
Commands to compile, link, and run this assignment are shown in Figure 1. Some of the output
generated from executing this program has intentionally been removed.
1
2
3
4
5
6
7
8
9
10Â newuser@csnew ~> cd 1337
newuser@csnew ~/1337> mkdir 12
newuser@csnew ~/1337> cd 12
newuser@csnew ~/1337/12> cp /usr/local/1337/data/12/* .
newuser@csnew ~/1337/12> touch lab12.cpp
newuser@csnew ~/1337/12> # Edit lab12.cpp
newuser@csnew ~/1337/12> g++ -c -g -Wall lab12.cpp
newuser@csnew ~/1337/12> g++ -o lab12 lab12.o
newuser@csnew ~/1337/12> lab12
Your Name - CS 1337 - Lab 12 11
12
13
14
15 18992
newuser@csnew ~/1337/12> lab12 > my.out
newuser@csnew ~/1337/12> diff 01.out my.out
newuser@csnew ~/1337/12>
Figure 1. Commands to Compile, Link, & Run Lab 12 CS 1337 — Computer Science II Page 1
-----------