objective: Wirete code in C++ .you need to mainly demonstrate your ability in us
ID: 3763061 • Letter: O
Question
objective: Wirete code in C++ .you need to mainly demonstrate your ability in using structs.
Description
See above figure which shows numbers-letters association used in phone keys. Your task is to
1- Keep those association in an array of struct, such as
A, 2
B, 2
C, 2
D, 3
...
...
Z, 9
You will build your array of struct with hard-coded values.
2- Ask user repeatedly a four-letter combination, and find corresponding numbers for the combination.
Once user enters CSCI
Your program should output 2724. Similarly,
TOMY should be map to 8669
GONE should be map to 4663
Exit the program if user enters EXIT.
Explanation / Answer
// pointers to structures #include #include #include using namespace std; struct movies_t { string title; int year; }; int main () { string mystr; movies_t amovie; movies_t * pmovie; pmovie = &amovie; cout title); cout > pmovie->year; coutRelated Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.