c++ Write 3 Functions A( ), B( ) & C(int) - For A( ) use a Global counter, but for B( ) use a static counter within B( )

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899603
Joined: Mon Aug 02, 2021 8:13 am

c++ Write 3 Functions A( ), B( ) & C(int) - For A( ) use a Global counter, but for B( ) use a static counter within B( )

Post by answerhappygod »

c++
Write 3 Functions A( ), B( ) & C(int) - For A( ) use aGlobal counter, but for B( ) use a static counter within B( ) andfor C(int) pass a local counter from main( )
In main( ), create a loop and prompt the user toenter A, B, C or Q and depending on the answer, go to that Functionand display the Function name
The 2nd time that the user enters A display AA andthe 3rd time display AAA (continue until Q is entered)
The user should be able to enter the 3 letters inany order and display them independently of the other 2
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply