In java script please help me. Below, I've written the pseudocode for this portion of processChoice a little different

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

In java script please help me. Below, I've written the pseudocode for this portion of processChoice a little different

Post by answerhappygod »

In java script please help me. Below, I've written
the pseudocode for this portion of processChoice a little
differently. It's a little closer to code, but not quite all
the way there. please help me write the correct code in the
comments that I have made
In Java Script Please Help Me Below I Ve Written The Pseudocode For This Portion Of Processchoice A Little Different 1
In Java Script Please Help Me Below I Ve Written The Pseudocode For This Portion Of Processchoice A Little Different 1 (120.83 KiB) Viewed 25 times
if (true) { // main sentence structure drawMainSentence(); // call drawMainSentence } else if (true) { // direct object structure /* call drawDirectObjectLine */ } else if (true) { // modifier structure (adj or adv) if (true) { // modifier structure (adj) /* call drawAdj Line */ } else { // modifier structure (adv) /* call drawAdvLine */ } } else { // word /* set idx equal to e- 4 */ // shift values, so idx is in range [0,4] if (true) { // bottom if (true) { eft (adj) drawAdj (words [idx]); // call drawAdj and send it the value stored at location idx of words } else { // right (adv) /* call drawAdv and send it the value stored at location idx of words */ } } else { // top if (true) { // left (subject) /* call drawSubject and send it the value stored at location idx of words [idx] */ } else { // right (predicate or direct object) if (true) { // predicate (diagram with no direct object) /* call drawPredicate and send it the value stored at location idx of words [idx] */ } else { // diagram with direct object (predicate or direct object) if (true) { // predicate /* call drawPredicate and send it the value stored at location idx of words [idx] */ else // direct object /* call drawDirectObject and send it the value stored at location idx of words [idx] */ }
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply