Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Could you please write this program in c++?? Lab 4- ISBN10 (in class) CSCI 259 Problem Statement An ISBN (International Standard Book Number) consists of

Could you please write this program in c++??
image text in transcribed
image text in transcribed
Lab 4- ISBN10 (in class) CSCI 259 Problem Statement An ISBN (International Standard Book Number) consists of 10 digits: d, d dS d' dded, The last digit dso is a checksum, which is calculated from the other nine digits using the following formula: where mod is short for modulus. If the checksum is 10, then the last digit is denoted X according to the ISBN convention. Any other number (.e., 1 through 9) is the same number Write a program that prompts the user to enter the first 9 digits and then displays the 10-digit ISBN Input Data . dr, da, da, da, ds, de, dz, ds, and da Output Data The 10 digit ISBN, correctly formatted as di-dds-ddsded dd-dio Getting Started 1. Name your project ISBN10 2. Include header comments formatted as shown below (you may want to copy and paste the header from a previous lab assignment and edit it, do not forget to include the program description) Course: CSCI 259, Section 1 Student Name: Jane Doe Student ID: 12345678 Lab 4 in class Due Date In keeping with the Honor Code of the School of Engineering, I have neither given nor received assistance from anyone other than the instructor Program Description: Algorithm If you use Visual Studio, leave the line #include "stdafx.h-there, below it type #include using namespace std 1. In the main function, declare variables needed for the programs 2. Prompt (ask) the user for each of the first 9 ISBN digits-d,, da d> d4, ds, d6 d 3. Calculate the last digit, dso, by calculating the modulus: d, and d Note the above does not use correct C++ s 4. Using a switch statement, determine if d10 should be changed to 2rLe. if the value of d10 is 10, then dio should be reassigned a value of X). Note: if you determine dho should be X', you MUST change the value of dso

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Processing

Authors: David Kroenke

11th Edition

0132302675, 9780132302678

More Books

Students also viewed these Databases questions

Question

LO4 List options for development needs analyses.

Answered: 1 week ago