Programming & Computer Science Answers

C++ 9913
Python 5288
Java | JSP | JSF 3611
C 1680
C# 1362
Computer Networks 989
Algorithms 652
Databases | SQL | Oracle | MS Access 641
HTML/JavaScript Web Application 588
Other 537
Visual Basic 358
Assembler 209
Software Engineering 202
AJAX | JavaScript | HTML | PHP 166
MatLAB 150
MatLAB | Mathematica | MathCAD | Maple 124
Action Script | Flash | Flex | ColdFusion 112
UNIX/Linux Programming 89
Web Development 73
Excel 36
ASP | ASP.NET 23
Delphi | Pascal 21
Perl 16
Prolog 9
Functional Programming 9
MathCAD 5
Wolfram Mathematica 4
WPF 4
Ruby | Ruby on Rails 3
NodeJS Web Application 2

Questions answered by Experts: 26 876

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Search

if any customer wants to use her internet

banking facility, he must have to enter two different 8-bit pin codes one by one. Computer gets these two 8 bits

numbers, converts them into binary and performs addition on both of these numbers. If the result matches with the

code that is stored for this account, internet banking facility will be provided otherwise, the system will not allow the

use of internet banking.


Assume that you are system engineer and the designated bank has assigned you a task that if any customer wants to use her internet banking facility, he must have to enter two different 8-bit pin codes one by one. Computer gets these two 8 bits numbers, converts them into binary and performs addition on both of these numbers. If the result matches with the code that is stored for this account, internet banking facility will be provided otherwise, the system will not allow the use of internet banking.


1. Design an algorithm and the corresponding flowchart for finding the sum of


the numbers 2, 4, 6, 8, …, n



2. Using flowcharts, write an algorithm to read 100 numbers and then display the


sum.


3. Write an algorithm to read two numbers then display the largest.


4. Write an algorithm to read two numbers then display the smallest


5. Write an algorithm to read three numbers then display the largest.


6. Write an algorithm to read 100 numbers then display the largest.

Design an algorithm and the corresponding flowchart for finding the sum of




the numbers 2, 4, 6, 8, …, n

1: Define a function that takes an argument. Call the function. Identify what code is the argument and what code is the parameter

2: Call your function from Example 1 three times with different kinds of arguments: a value, a variable, and an expression. Identify which kind of argument is which. 


3: Create a function with a local variable. Show what happens when you try to use that variable outside the function. Explain the results.


4: Create a function that takes an argument. Give the function parameter a unique name. Show what happens when you try to use that parameter name outside the function. Explain the results.


5: Show what happens when a variable defined outside a function has the same name as a local variable inside a function. Explain what happens to the value of each variable as the program runs.


he volume of a sphere is 4/3πr3, where π has the value of "pi" given in Section 2.1 of your textbook. Write a function called print_volume (r) that takes an argument for the radius of the sphere, and prints the volume of the sphere.

Call your print_volume function three times with different values for radius.

Include all of the following in your Learning Journal:

  • The code for your print_volume function.
  • The inputs and outputs to three calls of your print_volume.

Write a program that deletes duplicate elements from a stack.







Requirements:





No global decelerations





Test run the code in main

how to remove unwanted space out of your answer?

i did a coding just like the one above but they are saying i have unwanted space in my output.


Note: This question is part 2 of question #295009 so please answer the take both questions as one question and then answer. please thank you.


c. Book class should include a constructor and the following methods: -  

 - setBookISBN: to set the ISBN for the book. (Hint: You can use ISBN class input method) 

- DisplayBookISBN: to get the ISBN of the book. (Hint: You can use ISBN class method) 

- display details: to display all the information of a book which includes Books ISBN, title, authorName, publisherName, Address (Country, City, Street Name and House Number) and price.  

 

Question 2: 

Create class diagram of Question-01. 


Question 1

a. Design a class called ISBN to represent an International Standard Book Number. The ISBN consists of 10 digits divided into 4 parts. For example, the ISBN 7 758871 47 5 represents the following information:  

 - The first part: The first digit "7" signifies the book is from a French-speaking country.  

- The second part: "758871" identifies the publisher.  

- The third part: "47" is the title number for the book.  

- The fourth part: "5" is a check digit to indicate that the sum of the ISBN digits is 10.  


The class should have a method to take input from the users and display it on the screen.  


b. Design a Book class that represents relevant information about a book, including the book's title, authorName, publisherName, Address (remember the class we created in Question-1 has a relationship) and price. Find out the relationship between Book and ISBN and code accordingly.  

 


LATEST TUTORIALS
APPROVED BY CLIENTS