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

C++ programming

Correct the following invalid identifiers

a) num +3

b)Avg num

c)1st value2s

d)character




Example of Insertion in Red Black Trees in Data Structures.


Write a program that reads in 5 marks. Your program must use the getMark method to ensure that valid marks are processed. You need to calculate the sum and the average of the marks. Your program must also use the isPass method to determine the number of pass marks entered. When the 5 marks have been processed you need to display the sum, average and number of passes (from these marks).


Write a user defined method named isPass that can be used to determine whether a mark is a pass mark (greater or equal to 50). The method must take as input a mark, and return a boolean, indicating whether the mark was a pass mark.


Write a user defined method named getMark that can be used to get a valid mark from the user. Your method must continuously ask the user for a mark, until a valid mark is entered (valid marks are between 0 and 100). If a user enters an invalid mark, display an error message before asking for a valid mark to be entered. The method must return the valid value to the calling program.


Identity and correct the errors in each of the following statements

1)answer = 2Y + 4(z*)2;


2)if(x=1);

printf("Equal to 1");

printf("End of if");

else

printf("Not Equal to 1");

printf("End of else");


3)x =1;

while (x<=5)

total =total + x;

x++;


What is heap. Create maximum heap using built in function or using array list. Use any one method for creation max heap.



Write the final value of k in the following statments.

Int k =7, i =6, j = 25,m;

m= i++*100+j*10;

k = m/100+i;

k =m%k;



(with GUI) developed with Java programming language.Use NetBeans Application.

Create a project named “FavoriteBooks” which keeps a list of the books that a user has read and liked.

Book id, Title, Category, First Author Name and Surname, Award Winner, Rating, Year, Number of Pages, and Short Description.

Functions:

1. Add a Book to the list with the given book id from a JTextField.

a) Data to be entered using JTextField components are: Title, Category, Author Name and Surname, Award Winner, Rating, Year, Number of Pages and short Description. This task should add the book to the text document.

b) Rating option can be selected from a JComboBox.

c) JTextArea can be used to enter a short description of the book.

d) Do not create a JTextField to enter the book id. Instead, the book id should be incremented automatically by checking the last book id in the text document.


1 Write the pseudocode that will accurately represent the application you are designing.


LATEST TUTORIALS
APPROVED BY CLIENTS