Questions: 1 680

Answers by our Experts: 1 680

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Search & Filtering

The airline tickets are most expensive if you are purchasing on the same day and least expensive if purchased earlier. If a ticket is reserved 7 days before the flight then it charges no extra amount, on the 6th day the price is incremented by 10%, on the 5th day 15%, on the 4th day 17%, on the 3rd day 20%, on the 2nd day by 15% and on the final day it is double the original price. Write a program that asks the user the current date and city from which the user will take the flight and the city to which he is traveling as well as the date of flight. Provided the following prices calculate the amount user has to pay. From To Amount Lahore ‘L’ Karachi ‘K’ 13,940 Islamabad ‘I’ Karachi ‘I’ 13, 940 Islamabad ‘I’ Lahore ‘L’ 32,500 Islamabad ‘I’ Gilgit ‘G’ 25,850
We want to replicate the Covid-19 Vaccination notification system. The user input the date of a person who has received the first dose of vaccine they should receive the text message telling them the next date for the 2nd dose. Vaccine Name Waiting Period for 2nd Dose Pfizer ‘F’ 24 Moderna ‘M’ 25 Sinopharm ‘S’ 15 Sinovac ‘V’ 18 Pakvac ‘P’ 21 AstraZeneca ‘A’ Not Required Sample Input Enter the Day of the first dose of vaccination: 12 Enter the Month of the first dose of vaccination: 7 Enter the Year of the first dose of vaccination: 2021 Enter the vaccination Name: P
Ask the user to enter 10 positive integers and find the maximum and minimum number, if the user enters a negative number exit the program displaying the message “NOT COOL”. If all numbers are positive display the maximum and minimum numbers as well as if they are even or odd. We can exit the program using exit(1); statement. Sample Input 20 12 891 981 750 400 3 5 20 2 Sample Output The maximum number is 981 and it is an Odd Number. The minimum number is 2 and it is an Even Number.
#include<stdio.h> int main() { int x=5,y,z; y=x=15; z=x<15; printf("x=%d y=%d z=%d\n",x,y,z); return 0; }

In-Lab Task 2: Testing if a mathematical expression is balanced or not. Write a function that checks whether parentheses in a mathematical expression are balanced or not. The input to the function will be a pointer to a null-terminated array of characters (string). Assume that all the operands in the expression are single-digit numbers. You should call this function from ‘main’ function to demonstrate that it works as intended. The function should return 0 if the expression is balanced, and the index of mismatch otherwise. The function prototype is given below: int isBalanced(char * ptr_array);


In-lab Task 1: Reversing an array of numbers. You have to write a function to reverse the order of integers in an array. Call this function from your main function to demonstrate that this function successfully reverses (in-place) the contents of the input array. You should declare and use a stack within this function. The functions for stack implementation are already given to you. The prototype for the function is given below; void reverse_num_array(int * num_array);


Write a function solution that given a three digit integer N and Integer K, returns the maximum possible three digit value that can be obtained by performing at most K increases by 1 of any digit in N



Write a C code of O(n) order to remove all the odd numbers from the array. Example: the

array contains 10, 2, 3, 7, 8, 6, 11. The output should be 10, 2, 8, and 6


Write a C code to add two polynomials having two numbers of unknown variables. 


Write a C code to delete all prime numbers present in a doubly linked list. For example, if

input: 5->6->11->4->12->16, then output 6->4->12->16.


LATEST TUTORIALS
APPROVED BY CLIENTS