Write a program that reads all the match outcomes and summarizes the information of all the matches.
Points are given to the teams based on the outcome of the match.
A win earns a team 3 points. A draw earns 1. A loss earns 0.
The following information is expected:
MP: Matches Played
W: Matches Won
D: Matches Drawn (Tied)
L: Matches Lost
P: Points
The team information should be displayed in descending order of points.
Husna Dental is a personal dental clinic that recently operated on 1st January 2015. The payment for dentistry services at Husna Dental is different based on the type of treatment and patient status.
Patient Status
Restoration (1)
Extraction(2)
Scaling(3)
Children(C)
RM6.00
RM15.50
RM4.00
Adult(A)
RM7.50
RM18.00
RM5.00
Due to the opening ceremony, the discount of 20% will be given for children’s treatment and 15% discount for adult’s treatment.
Write a C++ program that performs the following.
· · · ·
Reads the patient's name, patient status, and type of treatment.
Displays the appropriate message when the user enters an invalid status. Calculates the payment before and after discount.
At the end of the program, displays receipt that contain patient’s name and her/his total payment after discount.
Write in 2 version of selction syntax using if..else and switch..case
Numbers in String - 2
Given a string, write a program to return the sum and average of the numbers that appear in the string, ignoring all other characters.
Input
The input will be a single line containing a string.
Output
The output should contain the sum and average of the numbers that appear in the string.
Note: Round the average value to two decimal places.
Explanation
For example, if the given string is "I am 25 years and 10 months old", the numbers are 25, 10. Your code should print the sum of the numbers(35) and the average of the numbers(17.5) in the new line.
Sample Input 1
I am 25 years and 10 months old
Sample Output 1
35
17.5
Sample Input 2
Tech Foundation 35567
Sample Output 2
35567
35567.0
Sample input 3
1time3 %times4
sample output 3
8
2.67
please provide correct output codeNumbers in String - 1
Given a string, write a program to return the sum and average of the digits of all numbers that appear in the string, ignoring all other characters.
Input
The input will be a single line containing a string.
Output
The output should contain the sum and average of the digits of all numbers that appear in the string.
Note: Round the average value to two decimal places.
Explanation
For example, if the given string is "I am 25 years and 10 months old", the digits of all numbers that appear in the string are 2, 5, 1, 0. Your code should print the sum of all digits(8) and the average of all digits(2.0) in the new line.
Sample Input 1
I am 25 years and 10 months old
Sample Output 1
8
2.0
Sample Input 2
Tech Foundation 35567
Sample Output 2
26
5.2
Sample Input 3
Anjali25 is python4 Expert
Sample Output 3
11
3.67
correct output is given the code
Write a program that reads in 20 numbers and calculates the average of the numbers which are smaller than 10.
Add two polynomials
Given two polynomials A and B, write a program that adds the given two polynomials A and B
Output
Print the addition of polynomials A and B.
If the degree of polynomial is zero and the constant term is also zero, then just print 0 to represent the polynomial.
For term Cix^Pi, if the coefficient of the term Ci is 1, simply print x^Pi instead of 1x^Pi.
for Question and Test Cases, Inputs and Outputs See this below url link
https://drive.google.com/file/d/1dEzy0tHPt-dveknUMw8ml85IARaoLcsE/view?usp=sharing
The above url link contains Add two polynomials question and total 4 test cases, Inputs and Outputs
We need all test cases can be came when code was run. I want exact outputs for all test cases
Add two polynomials
Given two polynomials A and B, write a program that adds the given two polynomials A and B
Output
Print the addition of polynomials A and B.
If the degree of polynomial is zero and the constant term is also zero, then just print 0 to represent the polynomial.
For term Cix^Pi, if the coefficient of the term Ci is 1, simply print x^Pi instead of 1x^Pi.Explanation
for Question and Test Cases, Inputs and Outputs See this below url link
https://drive.google.com/file/d/1dEzy0tHPt-dveknUMw8ml85IARaoLcsE/view?usp=sharing
The above url link contains Add two polynomials question and total 4 test cases, Inputs and Outputs
We need all test cases can be came when code was run. I want exact outputs for all test cases
Create a python program that allows user to enter the following information – Name(string), Course(string), Score(float) and Grade(integer). Display the following information in this format:
<Name>, a <Course> student got a raw score of <Score> equivalent to <Grade> percent final grade.
purchased good of rs 600000 an account Answer in credit and debit?
a)On the IAS, what would the machine code instruction look like to load the contents of memory address 2 to the accumulator?
b) How many trips to memory does the CPU need to make to complete this instruction during the instruction cycle?