Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

1. Write a complete program that does the following: In c++ - Declare a structure called employee with two elements: name : type string salary

1. Write a complete program that does the following: In c++ - Declare a structure called employee with two elements: name : type string salary : type float - Prompt user to enter number of employees - Create a dynamic array of structure employee (array size equals number of employees) - Prompt user to enter employee name and salary Sample Output : Enter number of employees: 2 Employee 1 Enter name: Amy Enter salary: 2520 Employee 2 Enter name: Brian Enter salary: 3500

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions