CS140 Computer Programming I Assignment Problem

Assignment Help Computer Engineering
Reference no: EM132378949

Assignment: CS140 Computer Programming I, Saudi Electronic University

Question 1: Create a java program for Student profile with the following requirements.

a) Each Student has: two variables id, and name.

b) A Student can be initialization with two constructers:

• Constructer without parameters, that set the id to zero and the name to an empty string.

• Constructer with tow parameters to initialize the variables id and name by a specific value.

c) Add a set method for each variable that change them to a specific value.

d) Add a get method for each variable which return its value.

To test the program, create a class StudentTest with the main method.

In the main method:

a) Create two empty Student profiles S1and S2.

b) Print the S1and S2 information.

c) Create a new student profile S3, specify the student id and name.

d) Change S3id and name.

e) Print the id and name of S3.

Question 2: For each of the code fragmentor declarations in the first column, please state whether the code fragment is correct or incorrect. In case it is incorrect, please provide the correct code in the appropriate cell.

Code fragment

Correct orIncorrect ?

If incorrect, rewrite the correct code

char x=A

 

 

int z = 20,000;

 

 

double weight = "65";

 

 

public class Count

{

public Count()

   {

// body--filled in here

   }

// body--filled in here

  }

 

 

long 1student=123456;

 

 

boolean static = true;

 

 

Import java.String.Rectangle

 

 

public int void deposit(double amount)

{ . . . }

 

 

Question 3: A. Write an algorithm in pseudocode to convert temperature from Fahrenheit to Celsius?

B. Give an example for compile-time and run-time errors?

Please Attempt the below question. The word limit should be 350 to 400 words for the question.

Q.1. Explain why the communication message that is sent may not be the message that is received between the agents?

Reference no: EM132378949

Questions Cloud

What lessons about life did douglass learn as slave : What was life like for a slave? What lessons about life did Douglass learn as a slave, and what did he hope for others to learn from his story?
How you do or could use telcom and network security : Prepare and submit a one page, double-spaced, APA style paper explaining how you do or could use telcom and network security in your current or upcoming career.
Compute the lower-of-cost-or-market valuation for company : Compute the lower-of-cost-or-market valuation for company's inventory. Oriole Company accumulates the following cost and market data at December 31.
Determine the accounts and amounts to be debited : Determine the accounts and amounts to be debited and credited for the above transactions for William Clock Repair.
CS140 Computer Programming I Assignment Problem : CS140 Computer Programming I assignment help and solutions, Saudi Electronic University, assessment help - Create a java program for Student profile with.
Conduct additional research on costco : Using the Internet and the library databases, conduct additional research on Costco. Is Costco continuing to do well?
How can we know that the plan that we choose : How can we know that the plan that we choose to solve a problem have been effective? and What actual changes will indicate success?
What amount for the liability unearned service revenue will : What amount for the liability unearned service revenue will appear on the balance sheet at December? 31, 2012?
Why is gawain tested while staying at bercilak castle : Why is Gawain "tested" while staying at Bercilak's castle? Does he pass or fail the test? What does he learn about himself?

Reviews

Write a Review

Computer Engineering Questions & Answers

  Mathematics in computing

Binary search tree, and postorder and preorder traversal Determine the shortest path in Graph

  Ict governance

ICT is defined as the term of Information and communication technologies, it is diverse set of technical tools and resources used by the government agencies to communicate and produce, circulate, store, and manage all information.

  Implementation of memory management

Assignment covers the following eight topics and explore the implementation of memory management, processes and threads.

  Realize business and organizational data storage

Realize business and organizational data storage and fast access times are much more important than they have ever been. Compare and contrast magnetic tapes, magnetic disks, optical discs

  What is the protocol overhead

What are the advantages of using a compiled language over an interpreted one? Under what circumstances would you select to use an interpreted language?

  Implementation of memory management

Paper describes about memory management. How memory is used in executing programs and its critical support for applications.

  Define open and closed loop control systems

Define open and closed loop cotrol systems.Explain difference between time varying and time invariant control system wth suitable example.

  Prepare a proposal to deploy windows server

Prepare a proposal to deploy Windows Server onto an existing network based on the provided scenario.

  Security policy document project

Analyze security requirements and develop a security policy

  Write a procedure that produces independent stack objects

Write a procedure (make-stack) that produces independent stack objects, using a message-passing style, e.g.

  Define a suitable functional unit

Define a suitable functional unit for a comparative study between two different types of paint.

  Calculate yield to maturity and bond prices

Calculate yield to maturity (YTM) and bond prices

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