Write a program called checkpassfail

Assignment Help Basic Computer Science
Reference no: EM13985179

Business Computer Languages

Q1. Identify and correct the error(s) in each of the following:

a) if (1 <= x <= 10)

System.out.println(x);

b) if (x = 1)

y++;

else if (x = 2)

y = y + 2;

c) final double CM_PER_INCH = 2.54;

CM_PER_INCH = 2.55;

Q2. What are the values of the following expressions? In each line, assume that

1. What are the values of the following expressions?  In each line assume that

double  X = 2.5,  Y = -1.5;
int  M = 18,  N = 4;
String  S = "Hello",  T = "World";

i)  X + N * Y - ( X + N ) * Y

ii) M / N + M % N

iii) 5 * X - N / 5

iv) S + T

v)  S + N

vi) ( 1 - ( 1 - ( 1 - ( 1 - N ))))

Q3. Write a program called CheckPassFail which read the mark from user and prints "PASS" if the mark is more than or equal to 60; or prints "FAIL" otherwise.

Reference no: EM13985179

Questions Cloud

How do stakeholders define ethical issues in business : How do stakeholders define ethical issues in business? Can stakeholders influence ethical decision in business?
Find the thermal resistance of each cube : Two metal cubes, one copper (Cu) and one aluminum (Al), with 4 cm edges are arranged as shown in Figure 1. Find (j) the thermal resistance of each cube, (ii) the thermal resistance of the two-cube system, (iii) the thermal current I and (iv) the t..
What was the original amount of uranium-235 in the rock : A rock is found to contain 2.2 grams of uranium-235, a radioactive isotope. If the rock has undergone 2.75 half lives, what was the original amount of uranium-235 in the rock and how old is the rock?
Calculate the projects npv : Calculate the value of the option if the company waits one year. Should the company wait or go ahead with the project now?
Write a program called checkpassfail : Write a program called CheckPassFail which read the mark from user and prints "PASS" if the mark is more than or equal to 60; or prints "FAIL" otherwise.
Calculate the current value of the company : Calculate the current value of the company's stock, using equation: Price per share = Vs/shares outstanding
Unique characteristics of the russian culture : What are some unique characteristics of the Russian culture that make cyberspace issues more challenging - do Russia and China do enough in the cyberspace area?
What is the photon energy in joules : Calculate the carrier frequency and corresponding frequency bandwidth for a microwave communication system operating at 10 cm with a microwave bandwidth of 0.2 mm and for an optical communication system operating at 1.35 micrometers with an optical b..
What absolute temperature will the ends touch : Again starting at 293 K, the steel rod is replaced by a brass rod 1.92 m long, also placed 0.6 cm from the aluminum rod and clamped tight on its other end. At what absolute temperature will the two rods touch?

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Information related to configuration management

Write a 700- to 1,050-word paper discussing managerial issues associated with managing an organization's IS infrastructure. Include the following: Information related to configuration management and preventative maintenance Industry standards in ..

  Write a complete java program called parser

Write a complete Java program called Parser that gets a comma-delimited String of integers (eg "4,8,16,32,...") from the user at the command line and then converts the String to an ArrayList of Integers (using the wrapper class) with each element con..

  Systems development quality and use case

SYSTEMS DEVELOPMENT QUALITY AND USE CASES:The purpose of SLP 5 is to get acquainted with a third modeling technique and use the output model to document the system and train users. Structure process and data models were introduced in previous modules..

  A good file management system

A good file management system is necessary to organize your files. A file management system is made up of files and file folders. You can copy, delete, rename and move these files and folders around as like.

  Calculate charges to determine the charge for each customer

A parking garage charges a $2.00 minimum fee to park for up to three hours. The garage charges an additional .50 per hour for each hour or part thereof in excess of three hours.

  Write a loop that subtracts one from the class

1- Write a loop that subtracts one from the Class Dog's energy for every 30 steps that the Dog takes. 2- Make the player-controlled Class Dog move more slowly whenever the method isTired returns a value of true.

  Clearly define the scope of applying optimization

Describe a design problem of your interest where optimization can be applied to enrich the design. It could be a problem you are currently working on ( e.g. , Capstone design) or a problem you plan to work on. Clearly define the scope of applying opt..

  Problem regarding the complexity of algorithm

If a d-heap is stored as an array, for an entry located in position i, where are the parents and children?

  Describe the network configuration and network appliances

Describe the network configuration and network appliances

  Fair and responsible use of college computer

Fair and Responsible Use of College Computers" and is based on the rules and regulation provided by your institution. Does your school have a similar policy? Does it contain all the elements listed in the text?

  Recursive multiplication

Recursive Multiplication Write a main program that uses a recursive function. This function accepts two arguments into the parameters x and y.

  Kind of information monitor check to see if it sanitize

Which kind of information should the monitor check to see if it must sanitize the data to conceal the names of the users and the names and addresses of the computers involved?

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