Implement c++ design given below. Assume that value is stored as a doubleword in memory, number is in EAX, and count is in ECX. You need only show the assembly code for the design. Submitting entire programs is not necessary
if (value ≤ 1000)
value = value + number*count;
Implement the following C++ expression in assembly language, using 32-bit signed operands:
val1 = (val2/val3)*(val1 – val2)
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
see sample output for better understanding.
The team information should be displayed in descending order of points.Input.
100 >= N >= 0 HINT:you can maintain all match outcomes in dictionaries.
Sample Input
6
CSK;RR;loss
RR;DD;draw
MI;KKR;win
KKR;RR;loss
CSK;DD;draw
MI;DD;draw
Sample Output
Team: RR, Matches Played: 3, Won: 2, Lost: 0, Draw: 1, Points: 7
Team: MI, Matches Played: 2, Won: 1, Lost: 0, Draw: 1, Points: 4
Team: DD, Matches Played: 3, Won: 0, Lost: 0, Draw: 3, Points: 3
Team: CSK, Matches Played: 2, Won: 0, Lost: 1, Draw: 1, Points: 1
Team: KKR, Matches Played: 2, Won: 0, Lost: 2, Draw: 0, Points: 0
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:
I am 25 years and 10 months old
output:
35
17.5sample Input:
Lear4 python7
output:
11
5.5
Develop a code for the multilevel inheritance diagram given below
· The person class consisting of data members such as name and age.
· The salary details class consisting of data members such as salary.
· The employee class consisting of data members such as degree and experience.
· The manager class consisting of member function pfund() to find the employee provident fund satisfying the condition total experience to be greater than 10 and salary to be greater than Rs. 20,000 and then calculate net salary = basic pay + pf. The provident fund amount sanctioned is Rs. 1800 for basic pay Rs 20,000 otherwise provident fund amount sanctioned is Rs. 750.
Write a program that lets a lecturer keep track of test scores for their students.
-sample-
How many students are in your class? -5
Invalid number of students, try again.
How many students are in your class? 3
How many test in this class? -10
Invalid number of tests, try again.
How many test in this class?
Ok, lets’ begin . . .
**** Student #1 ****
Enter score for test #1: -50
Invalid score, try again.
Enter score for test #1: 50
Enter score for test #2: 75
Average score for student #1 is 62.50
**** Student #2 ****
Enter score for test #1: 100
Enter score for test #2: 90
Average score for student #2 is 95.00
**** Student #3 ****
Enter score for test #1: -10
Invalid score, try again.
Enter score for test #2: -20
Invalid score, try again.
Enter score for test #2: -30
Invalid score, try again.
Enter score for test #1: 90
Enter score for test #2: 80
Average score for student #3 is 85.00
Average score for all student is 80.83
Create the class Circle with attribute radius to find the area of circle. Assign the values for data member using copy constructor and display the result. Finally free the resources of data objects using destructor member function. (Note: Area of circle = 3.14 * radius * radius)
In a company an employee is paid as under: If his basic salary is less than Rs. 1500, then HRA = 10% of basic salary and DA = 90% of basic salary. If his salary is either equal to or above Rs. 1500, then HRA = Rs. 500 and DA = 98% of basic salary. If the employee's salary is input by the user write a program to find his gross salary.
Design a class Calendar to calculate number of years, months and days. The member variables are nds, years, months and days. The member functions are d() which accepts number of days and display() to display total number of years, months and days
The kids Ram and Anandh are using magic numbers. For example, Ram magic number is 4 and Anandh magic number is 6. The kids exchange their magic number and display the Ram magic number is 6 and Anandh magic number is 4. Implement the above logic using function