ical operator to include all values. Don’t forget to add curly brackets with each condition. Feel free to use logical operators in the conditions - this is not required. Review the output below to check your work. Paste the following three it
ical operator to include all values. Don’t forget to add curly brackets with each condition. Feel free to use logical operators in the conditions - this is not required. Review the output below to check your work. Paste the following three it
C++ Programming: From Problem Analysis to Program Design
8th Edition
ISBN:9781337102087
Author:D. S. Malik
Publisher:D. S. Malik
Chapter7: User-defined Simple Data Types, Namespaces, And The String Type
Section: Chapter Questions
Problem 7PE
Related questions
Question
Write a flowchart and C code for a program that does the following:
Asks a user the number of years of employment service
Uses an else...if statement to display the following messages
Service greater than 25 years – You receive a gold watch
Service greater than 15 but less than 25 years – You receive a silver pen
Service greater than 5 but less than 15 years– You receive an attractive pin
Service between 0 and 5 years – You receive a pat on the back
Be sure that you are using a logical operator to include all values.
Don’t forget to add curly brackets with each condition.
Feel free to use logical operators in the conditions - this is not required.
Review the output below to check your work.
Paste the following three items into a Word document (.docx):
Your flowchart in Flowgorithm
A screenshot of your code
A screenshot of your output (including the Title Bar showing the path and name of your code) into a Word document (.docx)
Submit the following three files using the instructions below:
The Word document containing your three screenshots (flowchart, code, and output)
Your “.c” code file, which should include a comment line with your name and the date. You should NOT save your file with a .cpp file extension
Your Flowgorithm (.fprg) file
Expert Solution
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
This is a popular solution!
Trending now
This is a popular solution!
Step by step
Solved in 3 steps with 1 images
Knowledge Booster
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.Recommended textbooks for you
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT