Answer:
In Java:
import java.util.*;
public class Main{
public static void main(String[] args) {
Scanner input = new Scanner(System.in);
String isbn;
System.out.print("First 1:2 digits: ");
isbn = input.nextLine();
if(isbn.length()==12){
int chksum = 0;
for(int i = 0; i<12;i++){
if((i+1)%2==0){ chksum+= 3 * Character.getNumericValue(isbn.charAt(i)); }
else{ chksum+=Character.getNumericValue(isbn.charAt(i)); } }
chksum%=10;
chksum=10-chksum;
if(chksum==10){
System.out.print("The ISBN-13 number is "+isbn+"0");}
else{
System.out.print("The ISBN-13 number is "+isbn+""+chksum); } }
else{
System.out.print("Invalid Input");
} }}
Explanation:
See attachment for explanation where comments are used to explain each line
Answer:It all depends on who the reader is likely to be and the information they’ll want.
Explanation:
Newspaper 1: Company wins contract
Newspaper 2: Previous company loses contract (equally true)
Newspaper 3, say a student paper in the local town: Prospects for new jobs open up as company wins contract.
False. bool is in C++, ints are used in C.
Answer:
The answer to this question is given below is in the explanation section.
Explanation:
manages the function of all the hardware and other software used in the computer:
operating system is defined as a system software that manages computer hardware and software resources and provide common services for computers programs.All application software computer programs requires an operation system to function. operating system controls computer hardware run the computer programs and organize file.
CPU:
central processing unit that bring the instruction from memory to be executed and decodes.
Storing device:
Any hardware that can hold information temporarily and permanently. we distinguish two type of storage: as primary storage device and a secondary storage device.
Example:
- Magnetic storage device:hard drive,floppy diskette etc.
- optical: Blu-ray disc,CD Rom disc.
Flash memory device:memory card memory sick,ssd
Hardware:
Hardware include the physical features,which are every part that you can either see or touch, for example monitor,case,keyboard,mouse and printer.
Software:
The part which activate the physical components called software. it includes the features that resposible for directing the work to the hardware.
Answer:
the correct answer is "B"
Explanation:
the Systems development life cycle (SDLC) is a complete development process for a new product without giving any chance for alteration or improvement, Whereas,
extreme programming (XP) uses a software programme that is coded to allow for alteration. the product is continously modify until its meet customers satisfaction.
SDLC is seen as and archaic method of product development while XP is a new technology used by most company.
therefore, the SDLC models develops an entire system at once, where as XP uses incremental steps to improves an information system quality.