Some issue with the codes and can be solved by refactoring

Assignment Help Basic Computer Science
Reference no: EM132365725

Unit Test and Refactoring Questions

1. Write a program using TDD to do the following (20 marks):

a. This program will generate a random number between 1 to 100. User will be asked to guess the number or enter 'q' to quit the program. The program will keep asking the user to guess the number until the user guesses it correctly or has quitted. Once the user has guessed it correctly r quitted, the program will tell the user how many attempts have been taken.

b. Refactor your code - Code smell can give indications that there is some issue with the codes and can be solved by refactoring. Identify issues and their related code smells in your code. Include solutions to fix up the issues and implement them.

c. Create a Git directory for your assignment (including word or pdf documents and programming code)

d. Capture screenshots and write briefly the steps you have taken to create this program.

Reference no: EM132365725

Questions Cloud

Compared the blood pressure of a sample of people : Given supplied information, interpret the results. A nurse practitioner has compared the blood pressure of a sample (N = 24) of people who are heavy salt users
Describe the big picture and the context of your project : Briefly state the problem that you wish to solve through your project. Describe the big picture and the context of your project. Provide a short introduction.
IT Ethics and Responsible Conduct : IT Ethics and Responsible Conduct. What terms do you believe are ethically appropriate for such agreements?
How does a distinguishing of the terms data and information : How does a distinguishing of the terms data and information bear an impact upon effectively communicating human resource programs? The response must be typed.
Some issue with the codes and can be solved by refactoring : Refactor your code - Code smell can give indications that there is some issue with the codes and can be solved by refactoring.
Discuss specific SPSS software features : Different types of software can be used for data management. Compare Excel and SPSS and discuss specific SPSS software features
Define acceptable employee behavior : An Acceptable Use Policy (AUP) is a very important policy within organizations to define acceptable employee behavior when accessing company resources.
What preventive steps can organizations take to guard : In 150 words or more answer the question and provide 1 reference. What preventive steps can organizations take to guard against pay inequities?
What goals are related to the program : Write A 500- word essay stating why he/she is interested in the human capital management or HRM masters degree program and what his/her goals are related.

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Identifies the cost of computer

identifies the cost of computer components to configure a computer system (including all peripheral devices where needed) for use in one of the following four situations:

  Input devices

Compare how the gestures data is generated and represented for interpretation in each of the following input devices. In your comparison, consider the data formats (radio waves, electrical signal, sound, etc.), device drivers, operating systems suppo..

  Cores on computer systems

Assignment : Cores on Computer Systems:  Differentiate between multiprocessor systems and many-core systems in terms of power efficiency, cost benefit analysis, instructions processing efficiency, and packaging form factors.

  Prepare an annual budget in an excel spreadsheet

Prepare working solutions in Excel that will manage the annual budget

  Write a research paper in relation to a software design

Research paper in relation to a Software Design related topic

  Describe the forest, domain, ou, and trust configuration

Describe the forest, domain, OU, and trust configuration for Bluesky. Include a chart or diagram of the current configuration. Currently Bluesky has a single domain and default OU structure.

  Construct a truth table for the boolean expression

Construct a truth table for the Boolean expressions ABC + A'B'C' ABC + AB'C' + A'B'C' A(BC' + B'C)

  Evaluate the cost of materials

Evaluate the cost of materials

  The marie simulator

Depending on how comfortable you are with using the MARIE simulator after reading

  What is the main advantage of using master pages

What is the main advantage of using master pages. Explain the purpose and advantage of using styles.

  Describe the three fundamental models of distributed systems

Explain the two approaches to packet delivery by the network layer in Distributed Systems. Describe the three fundamental models of Distributed Systems

  Distinguish between caching and buffering

Distinguish between caching and buffering The failure model defines the ways in which failure may occur in order to provide an understanding of the effects of failure. Give one type of failure with a brief description of the failure

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd