Question

In: Computer Science

Create an ASP.NET Core MVC solution, edit the main view to contain an HTML form that...

Create an ASP.NET Core MVC solution, edit the main view to contain an HTML form that asks for first name, last name, and email address. The form should also have a submit button, though the submit button doesn't have to do anything yet. looking for an HTML mockup inside an ASP.NET Core MVC Solution.

Solutions

Expert Solution

Please comment below, If you find any difficulty in understanding

Answer :

# include<stdio.h>
# include <stdlib.h>
int stack[10];
int MAX=10;
int left=-1;
int right=-1;
void input_right(){
   int num;
   printf("enter element");
   scanf("%d",&num);
   if((left==0 && right==MAX-1)|| left==right+1){
       printf("Overflow");
   }
   else if(left==-1 && right ==-1){
       left++;
       right++;
       stack[left]=num;
   }
   else if(left!=0 && right==MAX-1){
       right=0;
       stack[right]=num;
   }
   else{
       right++;
       stack[right]=num;
   }
}
void input_left(){
   int num;
   printf("enter element");
   scanf("%d",&num);
   if((left==0 && right==MAX-1)|| left==right+1){
       printf("Overflow");
   }
   else if(left==-1 && right ==-1){
       left++;
       right++;
       stack[left]=num;
   }
   else if(left==0 && right!=MAX-1){
       left=MAX-1;
       stack[left]=num;
   }
   else{
       left--;
       stack[left]=num;
   }
}
void delete_left(){
   if (left==-1 && right==-1){
       print("Overflow");
   }
   else if(left==right){
       left=-1;
       right=-1;
   }
   else if(left==MAX-1){
       stack[MAX-1]=0;
       left=0;
   }
   else{
       stack[left]=0;
       left++;
   }
}
void delete_right(){
   if (left==-1 && right==-1){
       print("Overflow");
   }
   else if(left==right){
       left=-1;
       right=-1;
   }
   else if(right==0){
       stack[0]=0;
       right=MAX-1;
   }  
   else{
       stack[right]=0;
       right--;
   }
}
void display(){
   int i;
   for (i=0; i<MAX;i++){
       printf("%d\t",stack[i]);
   }
}
int main(){
   int i, j;
   printf("\n1-input resticted \n 2-output resticted");
   scanf("%d",&i);
   if (i==1){
       do{
           printf("\n 1- insert right\n2-delete left\n3-delete right\n4-exit\n");
           scanf("%d",&j);
           switch(j){
               case 1:
                   input_right();
                   break;
               case 2:
                   delete_left();
               case 3:
                   delete_right();
               case 4:
                      exit(0);
                   break;
           }
          
       }while(1);
   }
   else if(i==2){
       do{
           printf("\n 1- insert right\n2-insert left\n3-delete left\n4-exit\n");
           scanf("%d",&j);
           switch(j){
               case 1:
                   input_right();
                   break;
               case 2:
                   input_left();
               case 3:
                   delete_left();
               case 4:
                   exit(0);
                   break;
          
           }  
       }while(1);
   }
   else
       printf("wrong option ");

   display();
}


Related Solutions

HTML document containing a form. The title bar should display “Voting Form”. The form should contain...
HTML document containing a form. The title bar should display “Voting Form”. The form should contain the following: Text boxes to accept the person’s name and e-mail address At least five radio buttons the user can use to vote for a candidate for some office. (You make up some names) Text box for write-in alternative Checkboxes with name and value attributes for these options: oThis is the first time I have voted online. o I have periodically voted online. o...
Create a form using the following HTML elements at a minimum. Style the form in your...
Create a form using the following HTML elements at a minimum. Style the form in your CSS. You do not need to include a form action (i.e. the form doesn't have to do anything - we're designing the front end of the form). textarea textbox input type of "email" select radio button checkbox submit button style at least three elements of your form in your stylesheet, including your submit button Use a comment to delineate the beginning and end of...
- Create an html form (bank form) and the PHP code with 2 accounts with options...
- Create an html form (bank form) and the PHP code with 2 accounts with options to transfer, deposit or withdraw money.
This should be done in JavaScript. The HTML file should only contain an empty main tag....
This should be done in JavaScript. The HTML file should only contain an empty main tag. All other HTML on the page should be created with JavaScript. The JavaScript file should be a separate file.   Make an empty HTML file, put an empty main tag inside the body. In your JavaScript, use querySelector to get a reference to the main tag and save it in a variable named main. Look up three good jokes and store them as separate variables...
HTML Create a page of texts that uses inline elements. The page should contain a citation,...
HTML Create a page of texts that uses inline elements. The page should contain a citation, a term definition, a subscript, a superscript and some highlighted texts.
Create a Home Page using HTML and CSS Part 1 • Contain an image or logo...
Create a Home Page using HTML and CSS Part 1 • Contain an image or logo about your website. • Must contain three navigation links. Home link. Registration link. Animations link. • Footer will contain links to web pages to any other site you wish (just be outside your webpage, like YouTube,etc.) Open links in new tab, not current tab. Create a Registration page: • Registration Fields: 1) User Name - Input Text 2) Password - Input Password 3) Repeat...
HTML 5 (Website Registration Form with Optional Survey) Create a website registration form to obtain a...
HTML 5 (Website Registration Form with Optional Survey) Create a website registration form to obtain a user’s first name, last name and e-mail address. In addition, include an optional survey question that asks the user’s year in college (e.g., Freshman). Place the optional survey question in a details element that the user can expand to see the question.
HTML 5 (Creating an Autocomplete Form with a datalist) Create an autocomplete input element with an...
HTML 5 (Creating an Autocomplete Form with a datalist) Create an autocomplete input element with an associated datalist that contains the days of the week.
using PDO, MYSQL, and Html, how can i create a simple registration and login form for...
using PDO, MYSQL, and Html, how can i create a simple registration and login form for cPanel?
Create an HTML form with the following: 2 text input fields 1 text area 2 radio...
Create an HTML form with the following: 2 text input fields 1 text area 2 radio buttons or 3 checkboxes 1 button Include labels for fields
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT