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 C++ statement to do the following

a.make a point to the node containing info 23.

b.make a list point to the node containing 26.

c.make b point to the last node in the list

d.make list point to an empty list

e.set the value of the node containing 25 to 35.

f.create and insert the node with info 10 after the node pointed to by A.

g.delete the node with info 23,also deal locate the memory occupied by this node.



Challenging Numerical Triangles


by CodeChum Admin



You probably have encountered Triangle pattern problems before when you started learning programming. Let’s see how well you do with numbers this time. Try to look at the examples closely and think of an algorithm that replicates the outputs. Go for it!




The first line will contain a message prompt to width of the skyscraper.


The second line will contain a message prompt to height of the skyscraper.


The succeeding lines will contain the skyscraper pattern.

2. Write an application that contains an array of 10 multiple-choice quiz questions related to


your favorite hobby. Each question contains three answer choices. Also create an array


that holds the correct answer to each question—A, B, or C. Display each question and


verify that the user enters only A, B, or C as the answer—if not, keep prompting the user


until a valid response is entered. If the user responds to a question correctly, display


Correct; otherwise, display the correct answer is and the letter of the correct answer. After


the user answers all the questions, display the number of correct and incorrect answers.


Save the file as Quiz.java.



Programming


a. Create class name Employee


b. add the attributes: firstName, LastName, MiddleName, Age, Company,Salary and


IDNumber


c. create a getters and setter for the class


d. add constructors (with and without parameters)


e. add function in your class name it DisplayInfo to display all details of the employee


f. add a function name it SalWithVat, to calculate the salary with 12% tax deduction.


g. Create main class to test your Class

create a c-program that shows the comparative values of the elements of arithmetic, geometric and harmonic progression in table. inputs include a1-first term, d or r - common difference or ratio, and n-number of terms or elements

Write one dimensional array C++ program that ask to the user to enter the array size and reads n integers, finds the largest of them, and count its occurrences. Suppose that you entered 100, 200, 100, 50, 50, 50 as shown in sample input/output. The program finds that the largest is 200 and that the occurrence count for 200 is 1.

Question 1: Student

 

Write the class definition for a Student class that contains four private data members: 

Ø An int studNum to store the student number.

Ø A string studFirstName to store the student’s first name.

Ø A string studSurname to store the student’s surname.

Ø A one dimensional array subjectCode of type string that hold the five subjects that the student is registered for.

Ø A parallel array to the subject code array called finalMark that holds the final mark that the student obtained for the subject stored in the subject code array.

Ø A double overallAverage that will hold the overall average that the student has obtained for all the subjects that he/she is registered for.


Question 1: Student



Write the class definition for a Student class that contains four private data members:


An int studNum to store the student number.


A string studFirstName to store the student’s first name.


A string studSurname to store the student’s surname.


A one dimensional array subjectCode of type string that hold the five subjects that the student is registered for.


A parallel array to the subject code array called finalMark that holds the final mark that the student obtained for the subject stored in the subject code array.


A double overallAverage that will hold the overall average that the student has obtained for all the subjects that he/she is registered for.




1. Write a program using string function that will accept the name of the capital as input value and it will display the corresponding country.

CAPITAL                          COUNTRY

                  Ottawa                                  Canada

                  Washington D.C.                 United States

                  Moscow                                Russia

                  Rome                                     Italy


LATEST TUTORIALS
APPROVED BY CLIENTS