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

Write a program that computes the total ticket sales of a concert. There are three types of seating’s: A, B, and C and the price of a ticket for each of the three types of seats are 3000 Rs ,2000 Rs , and 1000 Rs respectively. The program accepts the number of tickets sold in each category. The total sales are computed as follows:

totalSales = numberOfA_Seats * pricePerA_Seat + numberOfB_Seats * pricePerB_Seat + numberOfC_Seats * pricePerC_Seat;


What number will the following code snippet print

double x = 3.5; 
double y = 0;

if ( x <= 2 ){
   y = 1;
}
else if( x <= 4){
   y = 2;
} 
else {
   y = 3;
} 

x = y;
cout << "Number:" << x << endl;

Please provide the numerical value of x which is printed at the end. This question will only accept numbers as answers.


The following expression has a mistake

if( x =! 0 )

Please provide the corrected version




Build an application which checks eligibility to enter a party venue. Prompts the user for their age and apply the following rules:

  • Younger than 18 is denied entry
  • Between 18 and 35 is allowed entry
  • 35 and older is too old.

Extend this application to prompt whether the person female or male. Females are granted free entry and males pay R10 per person in their group. After prompting for number of guests, display the price to be paid, if any.

Use JOptionPane


Let’s implement the concept of doubly linked list with a real time example.

For a bogie we need following information:

struct bogie{

string Name;

char type; //B for Business Class, F for First Class, and E for Economy class

int capacity; //Between 50-70

int fare; //For Business Class 1200, For First Class 1000, For Economy class 500

bogie *next;

bogie *prev;

};

bogie *engine //use as head for the train

Define a class, name it Train and write following functions for that class:

i. Insert a bogie at front();

ii. Insert a bogie at given position() //position will be defined based on name of bogie

iii. Insert a bogie at the end()

iv. return seating capacity of each type()

v. return total number of seats()

vi. return maximum fare collection based on total capacity of train()


Instructions


• Develop a 9-puzzle (3 by 3) as shown in Fig.1 below, with the following features:


I. A graphical user interface (GUI)


II. Button for reset


III. Show time taken to solve the puzzle


IV. Number of moves taken to solve the puzzle


V. Display win if the puzzle is solved



Create a database for Car dealership.


What is your favorite genre of movies? Are you a John Wick, Marvel or a fast and furious fantic?


There is a lot of data we can use for our task but we will use our PA to get the latest and precise


queries. Use the PA.py file to get your favorite actors' movies. Save all your findings in a


dataframe.


e.g.


Actor Movie Name


Will smith Bad Boys


Will smith Hancock


Modify your dataset to display the top 3 rated movies.


Visualize using your own graph i.e. only use Seaborn or Matplotlib.


Furthermore, modify the code to allow the user to get the directors of the Top 3 rated movies.


Reuse and modify Test.py to get the data of all the movies. Test.py should execute based on results in IMDb.py (top rated data).



The software shall calculate the monthly home loan repayment for buying a property



based on the values that the user entered. (See



https://www.sivavula.com/read/maths/grade-10/finance-and-growth/09-finance-and



growth-03 for more information on how to calculate this).



6.



If the monthly home loan repayment is more than a third of the user's gross monthly income, the software shall alert the user that approval of the home loan is unlikely.



7.



The software shall calculate the available monthly money after all the specified deductions



I have been made.



8.



The software shall not persist the user data between runs. The data shall only be stored in



memory while the software is running.

2. The user shall be able to choose between renting accommodation or buying a property. 3.



If the user selects to rent, the user shall be able to enter the monthly rental amount. 4. If the user selects to buy a property, the user shall be required to enter the following



values for a home loan:



a. Purchase price of the property



b. Total deposit



c. Interest rate (percentage)



d. Number of months to repay (between 240 and 360)

LATEST TUTORIALS
APPROVED BY CLIENTS