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

You decide to create a program suits.py to tally and sort the cards in a hand. You include your earlier functions pick_cards(n) and print_cards(h), plus four new ones: tally(h), which creates and returns a dictionary with suit as key and count as value, sort_cards(h) which creates and returns a dictionary with suit as key and a list of the face values as value, print_tally(t), which prints the tally, and print_sorted(s), which prints the cards in each suit


<<C++ HELP>>

trying to get the doe for the competition score with C++ coding, don't know if I have the while loop in the wrong place to read more athletes or one line of code is were another should be. the help will be greatly appreciated.


what is shown below is the input for the coding


Mirabella Jones's results:

7.50, 8.80, 7.00, 8.10, 8.00, 9.80, 9.30, 8.90, 9.10, 9.00

The highest score of 9.80 and the lowest score of 7.00 were

dropped

The average score is 8.59


Ruth Mendez's results:

9.80, 8.50, 6.00, 8.80, 8.60, 7.10, 7.80, 8.00, 7.20, 8.30

The highest score of 9.80 and the lowest score of 6.00 were dropped

The average score is 8.04




Write and demonstrate (at the time of viva) JavaScript code that displays the message "Welcome to BCA" and changes this text to “Web Programming is essential for BCA" after 10 seconds. You may use event handling. Make suitable assumptions, if any. 


 Write a java program that specifies four parallel one dimensional arrays to store the product name, quantity and cost plus ItemTotal. Each array should be capable of holding a number elements provided by user input. Using a for loop input values for length and width arrays. The entries in the area arrays should be the corresponding values for the product, which is to be used to calculate the costs as follows (thus, itemTotat[i] =  quantity [i]* cost [i]) after data has been entered display the following receipt as output:

 

Sample Run1

Enter the number of products2

Enter product 1 name, Qty and CostBanana 4 2.65

Enter product 1 name, Qty and CostCoke 1 9.18

 

Output1:

Product         Quantity        Cost               Total

----------    -----------        -------      --------

Banana      4          2.65       10.60

coke              1          9.18       9.18

Sub-Total                         19.78

VAT(15%)                         2.97

TOTAL                                   N$        22.75


Radioactive decay of radioactive materials can be modeled by the equation


A=Aoe^t(in 2/h) , where A is the amount of the material at time t, A0 is the amount at time 0, and h is the half-life. Technetium-99 is a radioisotope that is used in imaging of the brain. It has a half-life of 6 hours. Your program should display the relative amount A/A0 in a patient body every hour for 24 hours after receiving a dose. Note: With the aid of formatting techniques documented in your note, ensure your program output matches that given below. Program Output


1: 0.890899


2: 0.793701


3: 0.707107


4: 0.629961


5: 0.561231


6: 0.500000


7: 0.445449


8: 0.396850


9: 0.353553


10: 0.314980


11: 0.280616


12: 0.250000


13: 0.222725


14: 0.198425


15: 0.176777


16: 0.157490


17: 0.140308


18: 0.125000


19: 0.111362


20: 0.099213


21: 0.088388


22: 0.078745


23: 0.070154


24: 0.062500

5. Prompt the user to enter y or n. If the user enters an invalid character, keep re-prompting until a value character is entered. Use a while loop.

 

6. Redo

for(int a=1; a<=3; a++)

  for(int b=2; b<5; b++)

   out.print(a+b + " ");

with a do-while loop.

 

7. Write a method checkeven which receives 3 integer variables and prints YES if all three numbers are even. Otherwise, the method prints NO. ("receives" means that these values will be passed to the method as parameters)


8. Write the statements to read in three numbers and call the checkeven method.


9. Write another version of the checkeven method. This version receives 3 integer variables and returns true if all three numbers are even. Otherwise, the method returns false.


10. Write the statements to read in three numbers and call the new version of the checkeven method. Then print YES if all three numbers were even, or print NO if they were not all even.




You can approximate pi by using the following summation: pi=4(1−1/3+1/5−1/7+1/9−1/11+⋯+(−1)^i+1/2i-1)

Write a program that displays the pi value for i = 10000, 20000, … and 100000. Program Output

3.1414926535900345

3.1415426535898248

3.141559320256462

3.1415676535897985

3.1415726535897814

3.141575986923102

3.141578367875482

3.1415801535897496

3.1415815424786238

3.1415826535897198


1. Data Structures and Algorithms (Project 1)


INSTRUCTIONS:


Create a program using the following features:

* Array

* Class

* Specific Sorting Algorithm

* Specific Searching Algorithm



1. Data Structures and Algorithms (Project 1)


INSTRUCTIONS:


Create a program using the following features:

* Array

* Class

* Specific Sorting Algorithm

* Specific Searching Algorithm



What is "Specific Sorting Algorithm" and "Specific Searching Algorithm"?

* sorting code that uses a specific sorting process, here is the list of sorting algorithms that you will use

Bubble

Selection

Insertion

Merge

Shell

* searching code that uses a specific searching process, here is the list of searching algorithms that you will use

Linear

Binary

Fibonacci

Jump


I'm quite into games now, so how about we play In or Out! When a given number is even, the team scores so we shall print "In", but if it's not an even number, then we print "Out". Simple, right?


Now let's get this game started.


Input

A line containing an integer.


35

Output

A line containing a string.


Out




LATEST TUTORIALS
APPROVED BY CLIENTS