Get premium membership and access questions with answers, video lessons as well as revision papers.
/*
This program computes the lowest common denominator.
*/
#include
using namespace std;
into main(){
int a, b, d, min;
court << "Enter two numbers:";
cin >> a>> b;
min = a>b?b:a;
for(d=2; dif(((a%d)==0) && ((b%d==0)) break;
if (d==min){
cout << No common denominators\n";
return 0;
}
cout << "The lowest common denominator is "<return 0;
}
Githiari answered the question on April 30, 2018 at 13:50
- Write a C++ program that converts feet to inches.Prompt the user for feet and display the equivalent number of inches.Have your program repeat this process...(Solved)
Write a C++ program that converts feet to inches.Prompt the user for feet and display the equivalent number of inches.Have your program repeat this process until the user enters 0 for the number of feet.
Date posted: April 30, 2018. Answers (1)
- Write a program in C++ that inputs the number of hours that an employee works and the employee's wage.Then display the employee gross pay.(Be sure...(Solved)
Write a program in C++ that inputs the number of hours that an employee works and the employee's wage.Then display the employee gross pay.(Be sure to prompt for input)
Date posted: April 30, 2018. Answers (1)
- What are turnaround documents?(Solved)
What are turnaround documents?
Date posted: April 29, 2018. Answers (1)
- Cite instances when a person shall be lawfully deprived of personal liberty.(Solved)
Cite instances when a person shall be lawfully deprived of personal liberty.
Date posted: April 26, 2018. Answers (1)
- Explain the main causes of fire in a computer laboratory(Solved)
Explain the main causes of fire in a computer laboratory.
Date posted: April 26, 2018. Answers (1)
- List and explain salient features of a computer(Solved)
List and explain salient features of a computer.
Date posted: April 25, 2018. Answers (1)
- Name and explain the use of any three buttons found in a spellcheck dialog box(Solved)
Name and explain the use of any three buttons found in a spellcheck dialog box.
Date posted: April 25, 2018. Answers (1)
- Who is a system analyst?(Solved)
Define system analyst and outline the roles of a system analyst.
Date posted: April 24, 2018. Answers (1)
- What is system requirements specification?(Solved)
Define system requirements specification.
Date posted: April 24, 2018. Answers (1)
- You have typed in a list of guests inviting them to a fund raising ceremony. Because the list is long, it is rather difficult to...(Solved)
You have typed in a list of guests inviting them to a fund raising ceremony. Because the list is long, it is rather difficult to read through the list. What can make this list more legible?
Date posted: April 24, 2018. Answers (1)
- State four factors used to classify computers(Solved)
State four factors used to classify computers
Date posted: April 23, 2018. Answers (1)
- Your school principal has identified you as an advisor in setting up a computer network for the school. The principal wants to set up either...(Solved)
Your school principal has identified you as an advisor in setting up a computer network for the school. The principal wants to set up either a wireless network or wired network for the school. Advice the principal on the best type of network that will suit the school. Give two reasons for your advice.
Date posted: April 23, 2018. Answers (1)
- What are the major activities carried out in system analysis stage of system development?(Solved)
Highlight the major activities carried out in system analysis stage of system development.
Date posted: April 21, 2018. Answers (1)
- What are the major activities done in preliminary investigation stage of system development?(Solved)
Highlight the two major activities done in preliminary investigation stage of system development.
Date posted: April 21, 2018. Answers (1)
- What are the major stages in system development?(Solved)
List down the five major stages in system development in their correct order.
Date posted: April 21, 2018. Answers (1)
- What are the main theories of system development?(Solved)
Outline three main theories of system development.
Date posted: April 21, 2018. Answers (1)
- Who are the main computer professionals involved in developing an information system?(Solved)
Name the two main computer professionals involved in developing an information system.
Date posted: April 21, 2018. Answers (1)
- Why are new information systems developed?(Solved)
Give reasons as to why new information systems are developed.
Date posted: April 21, 2018. Answers (1)
- What is the purpose of an information system?(Solved)
Outline the uses of an information system.
Date posted: April 21, 2018. Answers (1)
- What is information system?(Solved)
Define information system.
Date posted: April 21, 2018. Answers (1)