Saudi Electronic University Programming Language and Computer Science Questions

User Generated

fubfu_z

Computer Science

Saudi electronic university

Description

Unformatted Attachment Preview

College of Computing and Informatics Assignment 1 Deadline: SUNDAY 10/10/2021 @ 23:59 [Total Mark for this Assignment is 5] Student Details: Name: ### ID: ### CRN: ### Instructions: • • • • • • • • • • You must submit two separate copies (one Word file and one PDF file) using the Assignment Template on Blackboard via the allocated folder. These files must not be in compressed format. It is your responsibility to check and make sure that you have uploaded both the correct files. Zero mark will be given if you try to bypass the SafeAssign (e.g. misspell words, remove spaces between words, hide characters, use different character sets, convert text into image or languages other than English or any kind of manipulation). Email submission will not be accepted. You are advised to make your work clear and well-presented. This includes filling your information on the cover page. You must use this template, failing which will result in zero mark. You MUST show all your work, and text must not be converted into an image, unless specified otherwise by the question. Late submission will result in ZERO mark. The work should be your own, copying from students or other resources will result in ZERO mark. Use Times New Roman font for all your answers. Question One Pg. 01 Learning Outcome(s): Explain the basic principles of programming, concept of language, and universal constructs of programming languages. Question One 1.5 Marks Write a complete Java program that do the following: 1. Print out your name in one line 2. Print out your ID in one line 3. Ask the user to enter his weight and height, then calculate his Body Mass Index According to the following formula and display his BMI. BMI = 𝑾𝒆𝒊𝒈𝒉𝒕 𝒊𝒏 𝑲𝒈 (𝑯𝒆𝒊𝒈𝒉𝒕 𝒊𝒏 𝑴𝒆𝒕𝒆𝒓𝒔)𝟐 Note: Your program output should look as shown below. Develop a program based on specification using programming language elements including syntax, data types, conditional statement, control structures, procedures, arrays, objects and classes. Note: you should Include the screenshot of the program output as a part of your answer. Otherwise, zero marks will be awarded. Question Two Pg. 02 Learning Outcome(s): Develop a program based on specification using programming language elements 1.5 Marks Question Two Write a Java program that reads two integers in two variables x and y and then permutes the value of the two variables. Note: your program should look like this: Enter x: 2 Enter y: 5 including syntax, The new value of the variable x is: 5 data types, The new value of the variable y is: 2 conditional statement, control structures, procedures, arrays, objects and classes. Note: you should Include the screenshot of the program output as a part of your answer. Otherwise, zero marks will be awarded. Question Three Pg. 03 Learning Outcome(s): Develop a program based on specification 2 Marks Question Three Write an application that calculates the squares and cubes of the numbers from 0 to 10 and prints the resulting values in table format, as shown below. (Use the formatting for printing) using programming Note: Your program output should look as shown below. language elements including syntax, data types, conditional statement, control structures, procedures, arrays, objects and classes. Note: you should Include the screenshot of the program output as a part of your answer. Otherwise, zero marks will be awarded.
Purchase answer to see full attachment
Explanation & Answer:
3 Questions
User generated content is uploaded by users for the purposes of learning and should be used following Studypool's honor code & terms of service.

Explanation & Answer

View attached explanation and answer. Let me know if you have any que...


Anonymous
Nice! Really impressed with the quality.

Studypool
4.7
Trustpilot
4.5
Sitejabber
4.4

Similar Content

Related Tags