You own a consulting firm and a client has engaged you to write a console program. In general, this program must prompt the user for ten numbers, ranging between 10 and 100. The program compares the number entered to the previous number. In the event that it is a duplicate number, the user will be prompted to enter a different number. Display the number to the screen as long as it is not a duplicate.For this assignment, complete the following:Write a console application that requests 10 numbers from the user as individual inputs. Each number must be between 10 and 100, inclusive. Compare each new number to the last one entered to determine if it is a duplicate. If it is, ask the user for a different number. Output each number to the screen once you have determined that all conditions are met. Submit your zipped Visual Studio project. In addition, prepare and submit a Word document that discusses any challenges you encountered including compilation errors, logic errors, or runtime errors that you had to resolve. The Word document should include your pseudocode and screenshots illustrating the successful execution of your program.
Loops and Case Logic
Marx
Marx. Paper details Explain Marx and Engel’s conception of the relationship between the proletariat and bourgeoisie. What were the characteristics of the members of each group? Why and how do the two groups struggle? What are the problems with capitalism?Marx
Google’s Driverless Cars and Renewable Energy Essay
online assignment help Table of Contents The Google Driverless Cars Google Renewable Energy Google Home Automation Google Space Elevators Google New Drugs and Treatments References The Google Driverless Cars Self-driven cars are one of the technologies being developed by Google. The chauffeur software powers the robotic vehicles and is capable of detecting anything a human driver can see. The driverless cars are equipped with a light radar system, 64-beam laser, and high-definition inch-precision map as well as other detection equipment. The 64-beam laser is the range finder, which is placed at the top of the vehicle. Besides, the laser enables the robotic vehicle to create a three-dimensional map of its immediate environment. The three-dimensional maps are combined with the world’s high-resolution maps to produce diverse characteristics of data models that allow the car to drive automatically (Fisher, 2013). Besides the on-board systems, the driverless cars are also systematically automated in certain remote computer houses. According to Google, cars are not just purposely for transportation but can also be used for other purposes (Fisher, 2013). Driverless cars technology would revolutionize the manner in which people commute around the globe. Driverless car technology would find various applications ranging from providing the solutions to physical inabilities to commercials. Most importantly, blind people would easily commute using driverless cars. Finding something that the blind can comfortably utilize without any help is one of the greatest solutions the driverless cars can offer (Fisher, 2013). Besides, driverless cars can be utilized for advertisements as well as meeting various business hauling needs. While various individual and business applications can find the driverless cars useful, the firm is still not yet ready to roll out the technology for commercial purposes. In other words, the driverless cars will not be utilized in the near future (Fisher, 2013). However, technology can still be used for various purposes. In fact, Google is planning to come up with a firm that would market the technology to the producers of automobiles. The technology behind driverless cars is currently becoming popular with automobile manufacturers (Fisher, 2013). Some of the firms are testing the technology with the application of low-powered green energy. Essentially, the technology behind driverless cars has the potential for the future. However, the applicability of the driverless cars on the common roads has been questioned. In fact, some of the critics argue that operating driverless cars pose great risks to other road users (Fisher, 2013). Besides, the concerns that the technology is ahead of road regulation in most of the jurisdictions have been raised. While the technology is noble, most states and countries have not adjusted the road regulations to allow the vehicles to be operated (Fisher, 2013). Moreover, according to policymakers and regulators, new laws need to be enacted in order to make the technology a reality. With fast advancing technology and changes in the transport sector, there is a need to change some of the regulations that were used as far as the age of horse-driven carriages (Fisher, 2013). The violations of the road regulations are not the only issue with the driverless car technology. The majority still do not trust the technology, and most fears pronounced accidents in case the technological error (Fisher, 2013). Since cars are expected to carry those who cannot drive, there are increased chances of causing accidents. While the issues have been raised from various fronts, Google has defended the technology as being the safest inroads. According to the firm, safety is one of the most considered factors while developing technology. Besides, studies indicate that the accidents involving chauffeur technology used in driverless cars are extremely limited compared with accidents caused by human drivers (Fisher, 2013). Google Renewable Energy Google’s focus on renewable energy is based on the need for the production and utilization of green energy (Google, 2014). Google has put in place various projects aimed at attaining the goal of producing green energy. In fact, all projects of Google emphasize on saving energy. Developing the technologies aimed at extracting renewable and clean energy has been the major objective of the firm (Google, 2014). Through the utilization of Google.org platform, the firm has been involved in the development of solar, wind, and geothermal technologies aimed at tapping the renewable and clean energy. The Google.org has been pursuing projects that give attention to the development of solar-powered turbines that would produce enough electricity to power industries and meet the needs of firms and institutions that require large quantities of energy. Related to solar turbines, the firm is involved in the development of low-cost heliostats that concentrates solar energy (Google, 2014). The heliostats are large concave mirrors that track the sun and converges the sun’s rays to produce solar energy. The firm is also involved in various projects that develop technologies used in mapping the solar as well as the geothermal sources of energy around the globe. The major aim of the projects is to come up with new technologies that would enable firms and industries to generate clean and renewable energy (Google, 2014). Get your 100% original paper on any topic done in as little as 3 hours Learn More Google aims to eliminate the power generated through the burning of coal or other carbon fuels. The power generated from fossil fuels accounts for over ninety percent of the total world energy. The burning of the fuel has also caused climate-related problems resulting from the greenhouse effects of the hydrocarbons being emitted into the atmosphere (Google, 2014). The eliminations of the problems associated with the current energy generation techniques are one of the ways through which Google’s renewable energy technologies are useful to humankind (Google, 2014). The renewable energy techniques developed by Google would be beneficial to all people across the globe. Besides the huge contribution to the reduction of global warming, the renewable and clean energy would be affordable to the majority of consumers (Google, 2014). In fact, the firm aims to develop ways through individual homes that can easily tap solar energy and economically utilize it to meet its energy needs. Google believes that the efficient tapping and application of solar energy can be achieved through developing energy-saving home appliances, solar cars, and other forms of equipment that can function without the use of powered energy (Google, 2014). The development of green and renewable energy technologies is within the broader goal of the firm geared towards reducing climate change (Google, 2014). In fact, the goal has seen the firm developing various programs that protect businesses against the adverse effects of climate change. Using the Google Venture platform, the firm has collaborated with various firms to develop technologies geared towards reducing global warming and sponsoring businesses to come up with technologies that are applicable to their own environments (Google, 2014). Through the initiatives, Google perceives renewable energy as a business opportunity apart from the environmental benefits. The continuous investments in the development of green energy are one way of securing the future for everyone. Google Home Automation Google has been involved in the development of new technologies that lead to the advancements of home automation (Khedekar, 2014). Home automation technologies vary from refrigerators that senses when the milk is running out and automatically orders for more to kettles that robotically brew coffee. The firm has been involved in these developments through its [email protected] platform. Through the platform, the firm has developed the technologies that connect the light bulbs as well as the coffee pots to the android phones. However, the firm is moving beyond home applications. The firm is currently involved in the development of much broader gargets using the internet through the Internet of Things platform (Khedekar, 2014). Currently, the firm is pursuing an open accessory development kit. The firm is collaborating with various accessory manufacturing firms to develop appliances that can easily be connected to the internet through android technology. In fact, Google is calling upon the accessory manufacturers to connect anything from small frills to larger appliances. In the programs, the firm is developing new technologies that would ensure the connection of anything from small gadgets to large machines (Khedekar, 2014). The firm’s home automation technologies are involved not only the development of home appliances but also energy-saving gadgets and smart home thermostats. The firm is currently involved in the development of home automation security. In fact, the firm is planning to develop Dropcam, a connected camera start-up that utilizes cloud services. The application of the cloud-connected security camera allows the users to record everything at all places using compatible devices (Khedekar, 2014). The firm is actually advancing into home security and automation. Using the Dropcam, the firm is putting together actions and activities into particular movements, including notifications for special alerts. The firm believes that home automation remains critical in saving valuable resources that can be utilized somewhere for other benefits. The NEST program that involves the development of smart home thermostat is one of the proven cases (Khedekar, 2014). The program has developed a device that saves quite an amount of energy while at the same time utilizing green energy that is critical in conserving the environment and reduction of carbon emissions. With home automation programs, Google is focusing on saving and the utilization of green energy. The automation of home appliances would also save people time, which can be utilized in other income-generating activities. Besides, the automation of home devices would also enhance security (Khedekar, 2014). The development of home toolkits that are connected to gargets such as iPhones and iPads and allow users to have control over their security cameras, switches, lights, home, and garage-doors is critical in enhancing security. We will write a custom Essay on Google’s Driverless Cars and Renewable Energy specifically for you! Get your first paper with 15% OFF Learn More Making life easier and better is the major theme behind developing new gadgets that enhance home automation (Khedekar, 2014). Google believes that saving on valuable resources, such as time, would make life easier and better. Besides, the firm believes in the utilization of green energy as well as savings on the use of energy as the main component of making planet earth a better place to live. Above all, through the home automation, the firm wants to be part of the firms that make devices that secure, make easier, and better the life of humankind. Google Space Elevators Google is currently involved in the development of space technologies ranging from space elevators to techniques that would land man into other planets. Google is currently investing in technologies that would end up with an infrastructure that leaves the earth’s atmosphere into space. In fact, Google’s space elevators would enable direct access to space without the utilization of rockets (Miller
ISCC 499 AMU Industrial Control System ENVT & Active Cyber Defense Research Paper
ISCC 499 AMU Industrial Control System ENVT & Active Cyber Defense Research Paper.
(CO-7: Develop a policy to
implement functions that encompass putting programs, processes, or
policies into action within an organization). For this week’s
assignment instructions, please see below:Assignment Instruction:
You are tasked as the Cyber Security Director at your new organization
to develop a policy to implement functions that encompass putting
programs, processes, or policies into action within an organization REQUIREMENTS:4 – 6 Pages in length in APA format (not including a cover page and reference section)Cover PageBackground SectionAnalysis of current research on the subject matterRecommendationsReference SectionMISCELLANEOUS:Use current and real-world data to make your points, not just the textbook Your
report may focus only on the topic of your choosing – imagine yourself
working on one aspect of the report while team members complete the
other areas following the same structure.
ISCC 499 AMU Industrial Control System ENVT & Active Cyber Defense Research Paper
Concord University Programming & Basic Arithmetic Functions Lab Report
Concord University Programming & Basic Arithmetic Functions Lab Report.
I’m working on a python multi-part question and need a sample draft to help me learn.
directions provided!# these are the basic arithmetic functions you will be using for this challenge
# function: add
# input: two integers/floats
# processing: adds the two supplied values
# output: returns the sum (integer/float)
def add(a,b):
return a+b
# function: sub
# input: two integers/floats
# processing: subtracts the two supplied values
# output: returns the difference (integer/float)
def sub(a,b):
return a-b
# function: mult
# input: two integers/floats
# processing: multiplies the two supplied values
# output: returns the product (integer/float)
def mult(a,b):
return a*b
# function: sqrt
# input: one integer/float
# processing: computes the square root of the supplied value
# output: returns the square root (float)
def sqrt(a):
return a**0.5
# function: square
# input: one integer/float
# processing: raises the supplied integer/float to the 2nd power
# output: returns the square (integer/float)
def square(a):
return a**2
# these are the two points you will be using
# point 1
x1 = 0
y1 = 0
# point 2
x2 = 100
y2 = 100
# compute the distance between the two points above using the distance formula.
# you may ONLY use the functions above to do this – no math operators are allowed!
# your calculation must also be done on a single line.
distance = ______________________
print (distance) # answer should be 141.4213562373095
distance formula:
Part 2
Write two functions called <strong>’maximum'</strong> and <strong>’minimum'</strong> – these function should accept two arguments and <strong>return</strong> the larger/smaller of the two supplied values. For the purpose of this program you can always assume that the arguments being supplied are numeric.. Your program should work perfectly with the following code:a = 5
b = 10
c = 15
d = 20
ans1 = maximum(a,b)
ans2 = maximum(a,c)
ans3 = maximum(a,d)
print (ans1,ans2,ans3) # 10 15 20
ans4 = minimum(d,c)
ans5 = minimum(d,b)
ans6 = minimum(d,a)
print (ans4,ans5,ans6) # 15 10 5
ans7 = maximum( maximum(a,b), maximum(c,d) )
print (“The biggest is:”, ans7)Challenge 3# write a function called ‘<strong>simple_sort_version1′</strong> that accepts two values. you can assume
# that your two values will always be the same data type (all ints, all floats or all strings).
# sort these two values in ascending order and <strong>return</strong> them in that order.
# you may use any function that you’ve written so far in this assignment if you’d like to (maximum, minimum, etc)
# your function should work perfectly with the following lines of code
a,b = simple_sort_version1(10,20)
print (a,b) # 10 20
a,b = simple_sort_version1(20,10)
print (a,b) # 10 20
a,b = simple_sort_version1(30,30)
print (a,b) # 30 30Challenge 4# next, write a new function called ‘<strong>simple_sort_version2</strong>’ that accepts three values. you can assume
# that your three values will always be the same data type (all ints, all floats or all strings).
# sort these values in ascending order and <strong>return</strong> them.
# you may use any function that you’ve written so far in this assignment if you’d like to (simple_sort_version1, maximum, minimum, etc)
# your function should work perfectly with the following lines of code
a,b,c = simple_sort_version2(10,20,30)
print (a,b,c) # 10 20 30
a,b,c = simple_sort_version2(10,30,20)
print (a,b,c) # 10 20 30
a,b,c = simple_sort_version2(30,20,10)
print (a,b,c) # 10 20 30
a,b,c = simple_sort_version2(30,20,20)
print (a,b,c) # 20 20 30
Part 2aFor this step you are given three functions – go ahead and copy these functions into a new file called “digitalclock.py”:# function: horizontal_line
# input: a width value (integer) and a single character (string)
# processing: generates a single horizontal line of the desired size
# output: returns the generated pattern (string)
def horizontal_line(width,char):
return width*char + “n”
# function: vertical_line
# input: a shift value and a height value (both integers) and a single character (string)
# processing: generates a single vertical line of the desired height. the line is
# offset from the left side of the screen using the shift value
# output: returns the generated pattern (string)
def vertical_line(shift,height,char):
pattern = “”
for i in range(height):
pattern += shift*” ” + char + “n”
return pattern
# function: two_vertical_lines
# input: a width value and a height value (both integers) and a single character (string)
# processing: generates two vertical lines. the first line is along the left side of
# the screen. the second line is offset using the “width” value supplied
# output: returns the generated pattern (string)
def two_vertical_lines(width,height,char):
pattern = “”
for i in range(height):
pattern += char + ” “*(width-2) + char + “n”
return patternNext, create a file called ‘LastName_FirstName_Assign6_part2.py’ – make sure this file is in the same folder as your newly created ‘digitalclock.py’ file. Import your module then run the following code – you should be able to see a series of graphical patterns that match the output below:import digitalclock
print (“Horizontal line, width = 5:”)
temp = digitalclock.horizontal_line(5, ‘*’)
print (temp)
print ()
print (“Horizontal line, width = 10:”)
temp = digitalclock.horizontal_line(10, ‘+’)
print (temp)
print ()
print (“Horizontal line, width = 15:”)
temp = digitalclock.horizontal_line(15, ‘z’)
print (temp)
print ()
print (“Vertical Line, shift=0; height=3:”)
temp = digitalclock.vertical_line(0, 3, ‘!’)
print (temp)
print ()
print (“Vertical Line, shift=3; height=3:”)
temp = digitalclock.vertical_line(3, 3, ‘&’)
print (temp)
print ()
print (“Vertical Line, shift=6; height=5:”)
temp = digitalclock.vertical_line(6, 5, ‘$’)
print (temp)
print ()
print (“Two Vertical Lines, width=3; height=3:”)
temp = digitalclock.two_vertical_lines(3, 3, ‘^’)
print (temp)
print ()
print (“Two Vertical Lines, width=4; height=5:”)
temp = digitalclock.two_vertical_lines(4, 5, ‘@’)
print (temp)
print ()
print (“Two Vertical Lines, width=5; height=2:”)
temp = digitalclock.two_vertical_lines(5, 2, ‘#’)
print (temp)
print ()Expected Output:Horizontal line, width = 5:
*****
Horizontal line, width = 10:
++++++++++
Horizontal line, width = 15:
zzzzzzzzzzzzzzz
Vertical Line, shift=0; height=3:
!
!
!
Vertical Line, shift=3; height=3:
&
&
&
Vertical Line, shift=6; height=5:
$
$
$
$
$
Two Vertical Lines, width=3; height=3:
^ ^
^ ^
^ ^
Two Vertical Lines, width=4; height=5:
@ @
@ @
@ @
@ @
@ @
Two Vertical Lines, width=5; height=2:
# #
# #
Part 2b
As you can see, you have three “primitive” functions for generating simple shapes (horizontal lines, vertical lines and parallel vertical lines). Your next task is to write 10 new functions that generate the digits 0-9 using your three line functions. These functions should be stored in your ‘digitalclock.py’ module. The goal here is to render the digits as they would appear on a digital display:
Each function should accept a “width” argument to control how wide the number should be as well as a single character. You can assume numbers will always be printed with a height of 5. For example, here is the function for the number 1:
# function: number_1
# input: a width value (integer) and a single character (string)
# processing: generates the number 1 as it would appear on a digital display
# using the supplied width value
# output: returns the generated pattern (string)
def number_1(width, character):
pattern = vertical_line(width-1, 5, character)
return patternAnd here’s a sample program that calls the function a few times (test this in your main program, not in your module):
print (“Number 1, width=5: “)
temp = digitalclock.number_1(5, ‘*’)
print(temp)
print()
print (“Number 1, width=10: “)
temp = digitalclock.number_1(10, ‘*’)
print(temp)
print()
print (“Number 1, width=2: “)
temp = digitalclock.number_1(2, ‘*’)
print(temp)
print()And here’s the expected output:
Number 1, width=5:
*
*
*
*
*
Number 1, width=10:
*
*
*
*
*
Number 1, width=2:
*
*
*
*
*
Here’s a sample program that prints all of the numbers (0-9).
temp = digitalclock.number_0(5, ‘*’)
print(temp)
print()
temp = digitalclock.number_1(5, ‘*’)
print(temp)
print()
temp = digitalclock.number_2(5, ‘*’)
print(temp)
print()
temp = digitalclock.number_3(5, ‘*’)
print(temp)
print()
temp = digitalclock.number_4(5, ‘*’)
print(temp)
print()
temp = digitalclock.number_5(5, ‘*’)
print(temp)
print()
temp = digitalclock.number_6(5, ‘*’)
print(temp)
print()
temp = digitalclock.number_7(5, ‘*’)
print(temp)
print()
temp = digitalclock.number_8(5, ‘*’)
print(temp)
print()
temp = digitalclock.number_9(5, ‘*’)
print(temp)
print()And here’s the expected output:
*****
* *
* *
* *
*****
*
*
*
*
*
*****
*
*****
*
*****
*****
*
*****
*
*****
* *
* *
*****
*
*
*****
*
*****
*
*****
*****
*
*****
* *
*****
*****
*
*
*
*
*****
* *
*****
* *
*****
*****
* *
*****
*
*
Part 2c
Write a function called ‘print_number’ that prints out any desired number to the screen. This function should also be placed in your ‘digitalclock.py’ module. Here’s the IPO for this function:
# function: print_number
# input: a number to print (integer), a width value (integer) and a single character (string)
# processing: prints the desired number to the screen using the supplied width value
# output: does not return anythingAnd here’s some sample code that you can use to test your function:
digitalclock.print_number(0, 5, ‘*’)
digitalclock.print_number(1, 6, ‘*’)
digitalclock.print_number(2, 7, ‘*’)
digitalclock.print_number(3, 8, ‘*’)
digitalclock.print_number(4, 9, ‘*’)
digitalclock.print_number(5, 10, ‘*’)
digitalclock.print_number(6, 11, ‘*’)
digitalclock.print_number(7, 12, ‘*’)
digitalclock.print_number(8, 13, ‘*’)
digitalclock.print_number(9, 14, ‘*’)And here’s the expected output:
*****
* *
* *
* *
*****
*
*
*
*
*
*******
*
*******
*
*******
********
*
********
*
********
* *
* *
*********
*
*
**********
*
**********
*
**********
***********
*
***********
* *
***********
************
*
*
*
*
*************
* *
*************
* *
*************
**************
* *
**************
*
*
Part 2d
Write two new functions that simulate the addition and subtraction operators. Each of these functions should accept a width value as an argument (integer) and a single character (string) — the function should then return the generated pattern. You can assume the operators will always be 5 units high. Again, these functions should be placed in your ‘digitalclock.py’ module. Here’s some sample code:
temp = digitalclock.plus(5, ‘*’)
print(temp)
print()
temp = digitalclock.minus(5, ‘*’)
print(temp)Which will generate …
*
*
*****
*
*
*****
Note that your “plus” sign may look odd if it is rendered using an even size value – for example:
# rendered using a width of 6
*
*
******
*
*
To fix this you should double up the vertical line in the center for even sizes, like this:
# rendered using a width of 6
**
**
******
**
**
Part 2e
Write a function called “check_answer” which will determine if a given addition or subtraction problem was solved correctly. This function should be inside of your “digitalclock.py” module. Here’s the IPO notation for the function:
# function: check_answer
# input: two numbers (number1 & number2, both integers); an answer (an integer)
# and an operator (+ or -, expressed as a String)
# processing: determines if the supplied expression is correct. for example, if the operator
# is “+”, number1 = 1, number2 = 2 and answer = 3 then the expression is correct
# (1 + 2 = 3).
# output: returns True if the expression is correct, False if it is not correct
Here’s a sample program that you can use to test your function:
answer1 = digitalclock.check_answer(1, 2, 3, “+”)
print (answer1)
answer2 = digitalclock.check_answer(1, 2, -1, “-“)
print (answer2)
answer3 = digitalclock.check_answer(9, 5, 3, “+”)
print (answer3)
answer4 = digitalclock.check_answer(8, 2, 4, “-“)
print (answer4)And here’s the expected output:
True
True
False
FalsePart 2f
Finally, put everything together and write a program that lets the user practice a series of random addition and subtraction problems. Begin by asking the user for a number of problems (only accept positive values) and a size for their numbers (only accept numbers between 5 and 10). Also prompt them for a single character to be used to generate their patterns – only accept single character strings (i.e. ‘a’ is OK, but ‘apple’ is not). The generate a series of random addition and subtraction problems – display the numbers to the user with your digital display functions. Then prompt the user for an answer and check the answer using your check_answer function. Your program should also keep track of how many correct questions the user answered during their game. Here’s a sample running of the program:
How many problems would you like to attempt? -5
Invalid number, try again
How many problems would you like to attempt? 5
How wide do you want your digits to be? 5-10: 3
Invalid width, try again
How wide do you want your digits to be? 5-10: 5
What character would you like to use? foo
String too long, try again
What character would you like to use? *
Here we go!
What is …..
*****
*
*****
*
*****
*
*
*****
*
*
*
*
*
*
*
= 4
Correct!
What is …..
*****
*
*****
*
*****
*****
*****
*
*
*
*
= -5
Correct!
What is …..
*
*
*
*
*
*****
*****
*
*****
*
*****
= 0
Sorry, that’s not correct.
What is …..
*****
*
*****
*
*****
*
*
*****
*
*
*
*
*
*
*
= 3
Correct!
What is …..
*****
*
*****
*
*****
*
*
*****
*
*
*****
*
*****
*
*****
= 4
Correct!
You got 4 out of 5 correct!
Part 3: Extra Credit
You can add any of the following features to your game for extra credit. These are optional features and are not required to receive full credit on the assignment!:
Add multiplication problems to the game. You will have to update your check_answer function as well as add a new operator function to display the multiplication sign. Note that the visual representation of your multiplication sign does not need to be “perfect” – try and come up with a function that somewhat looks like a “X” or “*” character.
Add division problems to the game. You will have to update your check_answer function as well as add a new operator function to display the division sign. For division problems you need to ensure that the result of the problem you present is a whole number. For example, the following would be valid division problems for this game:2 / 2 = 1
4 / 2 = 2
9 / 3 = 3However, the following would NOT be valid since the answers are not whole numbers:5 / 2 = 2.5
9 / 8 = 1.125
8 / 3 = 2.6666666 (repeating)Ensure that the division problems you supply to your players always yield a whole number result. You may need to generate a few different numbers in order to do this (hint: while loop!).
Add in a “drill” mode to your game. If this mode is activated by the user they will be re-prompted to solve a problem that they got incorrect. Points are turned off in “drill” mode since the user can attempt a problem multiple times. Here’s an example:How many problems would you like to attempt? 2
How wide do you want your digits to be? 5-10: 5
Would you like to activate ‘drill’ mode? yes or no: yes
What is …..
*****
* *
* *
* *
*****
*
*
*****
*
*
*****
*
*****
*
*****
= 1
Sorry, that’s not correct.
= 2
Sorry, that’s not correct.
= 3
Correct!
What is …..
*****
* *
*****
* *
*****
*
*
*****
*
*
*****
*
*****
*
*****
= 13
Correct!
Thanks for playing!
Keep track of statistics by problem type. For example, at the end of your program you could display a display like the following that summarizes the performance of the player:Total addition problems presented: 5
Correct addition problems: 4 (80.0%)
Total subtraction problems presented: 4
Correct subtraction problems: 3 (75.0%)
No multiplication problems presented
Total division problems presented: 1
Correct division problems: 0 (0.0%)If you implemented “drill” mode you should modify your statistics display to include information about how many “extra” attempts it took so solve those problems. For example:Total addition problems presented: 5
# of extra attempts needed: 0 (perfect!)
Total subtraction problems presented: 4
# of extra attempts needed: 1
No multiplication problems presented
Total division problems presented: 1
# of extra attempts needed: 5
Concord University Programming & Basic Arithmetic Functions Lab Report