Questions: 856

Answers by our Experts: 763

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

Solve for the Greatest Common Divisor (GCD) of the following pair of numbers using the Basic Euclidean Algorithm. (Show your complete solution.) 1. GCD (700, 105)


You are to write a program that will allow the user to select from a menu of 3 movies available to watch. The menu should look like the following:

  1. Movie 1: Venom: Let There be Carnage
  2. Movie 2: Halloween Kills
  3. Movie 3: Vivo

If the user asks to watch Movie 1, ask for the number of tickets to buy and print the total to pay. The price per ticket for Movie 1 is $8.

If the user asks to watch Movie 2, then the program must ask for his/her age before it proceeds. If the user is younger than 18 years old, the program must print a message saying "Sorry you must be 18 or older to watch this movie." If the user is 18 or older, then proceed to ask how many tickets the user wants and print the total to pay. Price per ticket for Movie 2 is $10.

If the user asks to watch Movie 3, ask for the number of tickets to buy and print the total to pay. The price per ticket for Movie 3 is $6.50.



Write a program in C++ that will simulate a basic calculator. The program should present a menu to the user and ask the user to type an option. You should use the switch statement to execute the operation selected. The menu should have the following options: 


1. Add

2. Multiply

3.Subtract

4.Divide


The program should then ask for 2 numbers and perform the operation. For the 'Subtract' option, the program should check to see which number is greater then subtract the smaller number from the larger.



You are to write a program that will allow the user to select from a menu of 3 movies available to watch. The menu should look like the following:


  1. Movie 1: Venom: Let There be Carnage
  2. Movie 2: Halloween Kills
  3. Movie 3: Vivo

If the user asks to watch Movie 1, ask for the number of tickets to buy and print the total to pay. The price per ticket for Movie 1 is $8.

If the user asks to watch Movie 2, then the program must ask for his/her age before it proceeds. If the user is younger than 18 years old, the program must print a message saying "Sorry you must be 18 or older to watch this movie." If the user is 18 or older, then proceed to ask how many tickets the user wants and print the total to pay. Price per ticket for Movie 2 is $10.

If the user asks to watch Movie 3, ask for the number of tickets to buy and print the total to pay. The price per ticket for Movie 3 is $6.50.




Switch Statement


Write a program to determine whether character is a vowel or not.



Switch Statement


Write a small program that displays a menu with the following options:


   Program that will calculate either the diameter, circumference or area of a circle. Select your choice.

  1. Diameter
  2. Circumference
  3. Area 

Use the switch statement. The program is to ask for the radius of a circle. Present the menu and execute the corresponding calculation.



Create algorithms for the following three ideas:



1.Stabilize political-administrative interface- this can be achieved through a focus on skills and professionalism by clarified political-administrative which ensures a clear separation between roles.

 

2.The increase in life expectancy can be attributed to the constant improvement in the implementation of comprehensive strategies to combat the quadruple burden of diseases inclusive of communicable disease, primarily HIV and AIDS and Tuberculosis, and the reduction in infant and child mortality rates

 

 

3.Development of technical and specialist professional skills- this can be arrived at by reinvigorating role in producing the specialist technical skills that are essential to fulfill its core functions and provide appropriate career paths for technical specialists.

 



Using MS-Excel, make a table for n=1 to 10 and generate a graph to show how the following functions grow. Using the table and the graph, determine which function grows faster.

  1. n log n
  2. n2
  3. log(n+1)
  4. 15 log n

e.    a2n  



1, Develop an algorithm to calculate the sum of 5 numbers.

2, Develop an algorithm to find the largest number among the 3 numbers.

3, Develop an algorithm to calculate the average score of 50 student.


What values are returned during the following sequence of queue operations, if



executed on an initially empty queue? enqueue(5), enqueue(3), dequeue(), enqueue(2),



enqueue(8), dequeue(), dequeue(), enqueue(9), enqueue(1), dequeue(), enqueue(7),



enqueue(6), dequeue(), dequeue(), enqueue(4), dequeue(), dequeue().

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS