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

3.Take user input and insert the data at the respective position in the sorted 1) stack 2) queue and 3) linked list.


Take integer input from user and store it in the form of 1) stacks 2) queues and 3) Linked list.




Write a program that simulates rolling a 6-sided die until you get 3 odd numbers in a row.


Sample run

Let’s roll some dice!

You rolled a 3

You rolled a 5

You rolled a 4

You rolled a 1

You rolled a 6

You rolled a 1

You rolled a 4

You rolled a 1

You rolled a 3

You rolled a 5

Three in a row in 10 rolls.

 


Complete the program by filling in the code (areas in bold). This problem requires 

that you study very carefully the code and the data file already written to prepare you to complete the program.Add another field called letter to the record which is a character that holds the letter grade of the student. This is based on the average of the grades as follows: test1 and test2 are each worth 30% of the grade while final is worth 40% of the grade. The letter grade is based on a 10 point spread. The code will have to be expanded to find the average. 

90-100 A

80-89 B

70-79 C

60-69 D

0-59 F 


Exercise 1:

 

1.     //The max function the max between a and b, it returns a if a == //b

public double max(double a, double b);  

 

2.     //The mult function returns the result of a * b public double mult(double a, double b);

 

3.     //The exist in array function returns the index of the element //‘a’ if //‘a’ exist in array ‘arr’ otherwise returns ‘-1’ public int existsInArray(int [] arr, int a);

 

4.     //Are array equals method compares two arrays and returns true // if the elements of array ‘a’ are equal to elements of array

// ‘b’, element by element. If equals it returns 0, it returns -

// 1 if not

public int areArrayEquals(int [] a, int [] b); 

 

 

Devise four executable test cases for every method in the JUnit notation. See the attached handout for a refresher on the notation.  

 


1. Assume that the data file has hours, pay Rate, state Tax, and fedTax on one line for 

each employee. state Tax and fedTax are given as decimals (5% would be .05). Complete this program by filling in the code (places in bold). 




Suppose that you are hired by a High-End “Gola Ganda” shop, this shop offers Gola Gandas of all shapes and sizes. They have basic gola gandas of three sizes: Small, Medium and Large. All have different prices  

A customer can add as many toppings on it as they want, the toppings could be more “Sauce”, Condensed Milk, Nutella, etc (more can be added). Every topping has a different cost, and the cost of each topping will be added on top of the cost of the size of gola ganda.  

For example, if a small gola ganda cost, 50 rupees, and a topping of condensed milk cost 10 rupees, and a topping of Nutella cost 20 rupees, and if a customer has ordered a small gola ganda with condensed milk and Nutella then the total cost will be 80 rupees (50 for small gola ganda, 10 for condensed milk, and 20 for Nutella).  

 


Write a C++ Program to Multiply Two Matrix Using Multi-dimensional Arrays. You can use int or double

2D array and takes it input from user. This program takes two matrices of order r1*c1 and r2*c2

respectively. Then, the program multiplies these two matrices (if possible) and displays it on the screen,

please take input from user.


Bookmark Maker

In this assignment, let's build a Bookmark Maker by applying the concepts we learned till now.

Refer to the below image.



Instructions:

  • The page should have HTML form element with id bookmarkForm
  • The HTML form element with id bookmarkForm should have HTML input elements with ids siteNameInput and siteUrlInput
  • The HTML form element with id bookmarkForm should have HTML button element with id submitBtn
  • Add HTML label elements for HTML input elements with ids siteNameInput and siteUrlInput
  • The HTML form element with id bookmarkForm should have HTML p elements with ids siteNameErrMsg and siteUrlErrMsg
  • The page should have HTML unordered list element with id bookmarksList
  • Each bookmark item should contain a HTML anchor element to navigate to the bookmarked site





Write a C++ program to accept a sentence

in one line from user and displays its individual words

on seperate line along with their length as below...

 

This --> 4

is --> 2

a --> 1

Test --> 4

 

String -->6


LATEST TUTORIALS
APPROVED BY CLIENTS