[solved] – Question 98965

Draw a student schedule by using a while loop. Ask the user for their first and last names, and then a list of their classes and room numbers. Output should look like this:
What is your first name? Ada
What is your last name? Lovelace
Student ID: 3456
*************************************************
* *
* Lovelace, Ada ID: 3456 *
* *
*************************************************
* *
Enter the next class, STOP to end: English 11
Enter the room number: 456
* Block 1: English 11 Room: 456 *
Enter the next class, STOP to end: STOP
* *
*************************************************
* *
*************************************************

Expert Answer


[solved] – Question 98998

Modify the example in the Arduino to such that the red LED light flashes 3 times for 0.5 seconds, followed by 2 one-second flashes of the green LED light.

Example:
/* PRIZM Controller example program
* Blink the PRIZM red LED at a 1 second flash rate
* author PWU on 08/05/2016
*/

#include <PRIZM.h> // include the PRIZM library

PRIZM prizm; // instantiate a PRIZM object “prizm” so we can use its functions

void setup() {

prizm.PrizmBegin(); // initialize the PRIZM controller

}

void loop() { // repeat this code in a loop

prizm.setRedLED(HIGH); // turn the RED LED on
delay(1000); // wait here for 1000ms (1 second)
prizm.setRedLED(LOW); // turn the RED LED off
delay(1000); // wait here for 1000ms (1 second)

}

Expert Answer


[solved] – Question 98999

Modify the example in Adruino to such that when the motors turn clockwise, the green light blinks, and when the motor turns counter-clockwise, the red light blinks.

Example:

void setup() {

prizm.PrizmBegin(); // Initialize the PRIZM controller
}

void loop() { // repeat in a loop

prizm.setMotorPower(1,25); // spin Motor 1 CW at 25% power
delay(5000); // wait while the motor runs for 5 seconds
prizm.setMotorPower(1,0); // stop motor (coast to stop)
delay(2000); // After stopping, wait here for 2 seconds
prizm.setMotorPower(1,-25); // spin Motor 1 CCW at 25% power
delay(5000); // wait while the motor runs for 5 seconds
prizm.setMotorPower(1,0); // stop motor (coast to stop);
delay(2000); // After stopping, wait here for 2 seconds, then repeat

}

Expert Answer


[solved] – Question 99009

Write the Matlab expression and the result.

A= F=
12343 6 9 12
681518 24 3 15
942727 12 6 21
947 2 27 12 21 6

Expression
1.3A+4F

Matlab expression= ???
Result= ?????

Expert Answer


[solved] – Question 99010

A= C= E=
1234 16 2 3 13 1000
6815 5 11 10 8 0100
9427 9 7 6 12 0001
9472 4 14 15 1 1000

B= D= F=
1111 1000 36912
1111 0300 1824315
1111 0050 2712621
1111 0007 2712216

Create this matrix from the given matrices (Use matrix shortcuts)

T=
123422224333
681522223433
942722223334
947222224333
147101623131000
16221135111080300
2510419976120050
25101944141510007

Write Matlab expression and Result

Expert Answer


[solved] – Question 99012

A= C=
1234 162313
6815 51110 8
9427 97 612
9472 414151

B=F=
1111 3 6 912
1111 18 24 315
1111 27 12 6 21
1111 27 12 21 6

Expression:

ABC /4F

Write the Matlab expression and result.

Expert Answer


[solved] – Question 99013

E=
1000
0100
0001
1000

B=D= F=
1111 1000 36912
1111 0300 1824315
1111 0050 2712621
1111 0007 2712216

Expression

2DEF+4B

Write Matlab Expression and Result

Expert Answer


[solved] – Question 99014

C= E=
162313 1000
5 11108 0100
9 7612 0001
4 14151 1 000

B=D=F=
1111 1000 3 6 912
1111 0300 18 24 315
1111 0050 27 12 621
1111 0007 27 12 21 6

Expression

FEB/2CD

Write Matlab Expression and Result.

Expert Answer


[solved] – Question 99015

C= E= A=
162313 1000 1 2 3 4
5 11108 0100 6 8 1 5
9 7612 0001 9 4 2 7
4 14151 1 000 9 4 7 2

B=D=F=
1111 1000 3 6 912
1111 0300 18 24 315
1111 0050 27 12 621
1111 0007 27 12 21 6

Expression

(2B-3D)*(2ABC)

Write Matlab Expression and Result

Expert Answer


[solved] – Question 99016

C= E= A=
162313 1000 1 2 3 4
5 11108 0100 6 8 1 5
9 7612 0001 9 4 2 7
4 14151 1 000 9 4 7 2

B=D= F=
1111 1000 3 6 9 12
1111 0300 18 24 3 15
1111 0050 27 12 6 21
1111 0007 27 12 21 6

Expression

(4B+3D)/(2A2BC)

Write Matlab Expression and Result

Expert Answer