elevator control source code verilog
#1

Please help me out in lift controller project.
Reply
#2
#include<stdio.h>

int main(void) {
int M, F3, F2, F1;
printf(“Enter bit (either 0 or 1) for M: “);
scanf(“%d”, &M);
printf(“Enter bit (either 0 or 1) for F3: “);
scanf(“%d”, &F3);
printf(“Enter bit (either 0 or 1) for F2: “);
scanf(“%d”, &F2);
printf(“Enter bit (either 0 or 1) for F1: “);
scanf(“%d”, &F1);

if(M == 0 && F3 == 0 && F2 == 0 && F1 == 0) {
printf(“\nOpen: 0”);
}
else if(M == 0 && F3 == 0 && F2 == 0 && F1 == 1) {
printf(“\nOpen: 1”);
}
else if(M == 0 && F3 == 0 && F2 == 1 && F1 == 0) {
printf(“\nOpen: 1”);
}
else if(M == 0 && F3 == 0 && F2 == 1 && F1 == 1) {
printf(“\nOpen: X”);
}
else if(M == 0 && F3 == 1 && F2 == 0 && F1 == 0) {
printf(“\nOpen: 1”);
}
else if(M == 0 && F3 == 1 && F2 == 0 && F1 == 1) {
printf(“\nOpen: X”);
}
else if(M == 0 && F3 == 1 && F2 == 1 && F1 == 0) {
printf(“\nOpen: X”);
}
else if(M == 0 && F3 == 1 && F2 == 1 && F1 == 1) {
printf(“\nOpen: X”);
}
else if(M == 1 && F3 == 0 && F2 == 0 && F1 == 0) {
printf(“\nOpen: 0”);
}
else if(M == 1 && F3 == 0 && F2 == 0 && F1 == 1) {
printf(“\nOpen: 0”);
}
else if(M == 1 && F3 == 0 && F2 == 1 && F1 == 0) {
printf(“\nOpen: 0”);
}
else if(M == 1 && F3 == 0 && F2 == 1 && F1 == 1) {
printf(“\nOpen: X”);
}
else if(M == 1 && F3 == 1 && F2 == 0 && F1 == 0) {
printf(“\nOpen: 0”);
}
else if(M == 1 && F3 == 1 && F2 == 0 && F1 == 1) {
printf(“\nOpen: X”);
}
else if(M == 1 && F3 == 1 && F2 == 1 && F1 == 0) {
printf(“\nOpen: X”);
}
else if(M == 1 && F3 == 1 && F2 == 1 && F1 == 1) {
printf(“\nOpen: X”);
}
else {
printf(“Error: Your input is not correct!”);
}

printf(“\n\n\n”);
return 0;
}
Reply

Important Note..!

If you are not satisfied with above reply ,..Please

ASK HERE

So that we will collect data for you and will made reply to the request....OR try below "QUICK REPLY" box to add a reply to this page
Popular Searches: elevator vhdl code with state machines, vhdl code for a basic elevator, elevator control with plc ppt, 2 floor elevator vhdl code, rfid authentication protocol verilog source code, 8051 elevator code explanation, elevator vhdl code wiki,

[-]
Quick Reply
Message
Type your reply to this message here.

Image Verification
Please enter the text contained within the image into the text box below it. This process is used to prevent automated spam bots.
Image Verification
(case insensitive)

Possibly Related Threads...
Thread Author Replies Views Last Post
  simple java rmi chat application source code 2 19,853 20-07-2018, 12:08 PM
Last Post: Guest
  authentication schemes for session passwords using color and images project source code 2 2,264 03-02-2018, 09:35 AM
Last Post: Nischithnash
  free download source code for online movie ticket booking in java 2 19,297 15-08-2017, 03:21 PM
Last Post: Morshed
  source code for rsa encryption and decryption in java 2 8,231 29-05-2017, 04:21 PM
Last Post: Meghna Jadhav
  download liver tumor ct scan image in matlab with source code 4 8,275 21-05-2017, 09:54 PM
Last Post: abdulrahmanmashaal
  online cab booking source code in asp net 3 8,162 11-05-2017, 10:39 AM
Last Post: jaseela123d
Thumbs Up online catering management system on php with report and source code and ppt 4 9,049 29-04-2017, 10:59 AM
Last Post: jaseela123d
  New Techniques Of Erosion Control On Hill Roads Transportation kiranrj 3 3,661 28-04-2017, 10:56 AM
Last Post: jaseela123d
  source code for task scheduling using genetic algorithm using java 2 8,742 11-04-2017, 08:31 PM
Last Post: Guest
  automatic timetable generator source code vb 1 7,819 07-04-2017, 12:31 PM
Last Post: jaseela123d

Forum Jump: