CES 230), Computer Fregina • Sri 103. Ser av Date: May 2, 1922 Top Team Project se nane SP-22 Teatre • Team Meer aanhor

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: 899604
Joined: Mon Aug 02, 2021 8:13 am

CES 230), Computer Fregina • Sri 103. Ser av Date: May 2, 1922 Top Team Project se nane SP-22 Teatre • Team Meer aanhor

Post by answerhappygod »

Ces 230 Computer Fregina Sri 103 Ser Av Date May 2 1922 Top Team Project Se Nane Sp 22 Teatre Team Meer Aanhor 1
Ces 230 Computer Fregina Sri 103 Ser Av Date May 2 1922 Top Team Project Se Nane Sp 22 Teatre Team Meer Aanhor 1 (33.04 KiB) Viewed 35 times
Ces 230 Computer Fregina Sri 103 Ser Av Date May 2 1922 Top Team Project Se Nane Sp 22 Teatre Team Meer Aanhor 2
Ces 230 Computer Fregina Sri 103 Ser Av Date May 2 1922 Top Team Project Se Nane Sp 22 Teatre Team Meer Aanhor 2 (68.06 KiB) Viewed 35 times
CES 230), Computer Fregina • Sri 103. Ser av Date: May 2, 1922 Top Team Project se nane SP-22 Teatre • Team Meer aanhor Alberta - Instructie - This is to project. Your your work Mesday, May 31 - Complete the code with the required instruction .hr / include <iostres using Race and // Method prototypes int nene(); bool execute(int,string).int, it).int) string getuckyColorfstring).) Int qullu kumber(intl. Int). int in // declare a string array and colors which contains the following values // Red,Green,Blue, Purple, Yellow, Black // declare an integer constant med COLORS and assign the size of colors W declare an Integer array named anders which contains the following values 1/3, 7, 11, 11, 21, 33, 57 // declare an integer constant named LABERS and assign the size of numbers // DO NOT DECLARE ANY OTHER VARIABLES TN mint 11 develop while iteration control structure which uses the return value // of the execute method as sentinel. The execute method use the return value of // the method as parameter, along with the names and sizes to the two arrays. cout << endl; // print the phrase "Pregras developed by [tean bester 1 nine), 10etan ber 1 ID MOER HERE). 11 and (ten meber 2 none), 10ean her 2 ID NUMBER HERE" // where the square brackets and the text within must be replaced with your Information cout << endl; systen("pause"); // For Visual Studio only! return;

// The menu method prints a menu with the list of options. // The text to be printed is: // Select one of the following options: // 1. Find my lucky number // 2. Find my lucky color // - 3. Exit the program // [blank line) Your selection: // [blank line) // The method declares a local variable noned option, which must be // initialized to e, where the selected option value is stored. // The method returns the value of the selected option. int menu ) // The execute method receives the option value, the two arrays, // and their respective sizes as parameters. It implmenets a switch 1/ selection control structure to call the methods to find either the // lucky number or lucky color. // The method returns true unless the value of the option is 3, in this // case it returns false. Make sure to include the default case which // prints the error message "\n\tERRORI Incorrect option value! \n" // NO VARIABLES ARE DECLARED IN THIS METHOD bool execute(int,string[], int, int[], int) { } // The getLuckyColor method receives an array of strings and its size // as parameters. It prompts the user for the lucky number using the // phrase "Enter your lucky number: ", and returns the corresponding color. // Declare an integer variable named number and initialize it to e. // The method uses the value of the number, modulus 6, to select the // correct index number from the array. You must ensure that the value // entered is a positive value. string getLuckyColor(string[], int){ } // The getLucky Number method receives an array of integers and its size 11 as parameters. It prompts the user for their day of birth using the // phrase "Enter your day of birth: ", and returns the corresponding number. // Declare an integer variable named birthday and initialize it to @. // The method use the value of the birthday, modulus 7, to select the // correct index number from the array. You must ensure that the value // entered is a positive number. int getLuckyNumber(int[], int){
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply