学年

教科

質問の種類

情報 大学生・専門学校生・社会人

vsコードを使ってJava言語の勉強をしてたんですけど初心者すぎて何が原因で上手くコードの実行ができてないのかわかりません… 勉強の資料として使ってるのは京都大学のJavaによるプログラミング入門 です。

17:43 7月27日 (木) 1.7 使用するサンプルプログラム (TankCalculator.java) 1: public class Tank Calculator { 2: public static void main (String args[]){ final double FLOW_RATE = 1.0; final double TANK_AREA = 20.0; final double INITIAL_LEVEL = 10.0; double time; //s double tankLevel; //m ... ocw.kyoto-u.ac.jp 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: time = 30; 14: tankLevel = INITIAL_LEVEL + FLOW_RATE*time/TANK_AREA; 15: System.out.println("Tank Level at time "+ time + "s = " + tankLevel + "m"); 16: 17: 18: 19: } 20:} 11 System.out.println("Flow Rate = + FLOW_RATE + "m** 3/s"); System.out.println("Tank Area=" + TANK_AREA + "m**2"); System.out.println("Initial Level = " + INITIAL_LEVEL + "m"); time = 60; tankLevel = INITIAL_LEVEL + FLOW_RATE*time/TANK_AREA; System.out.println("Tank Level at time "+ time + "s=" + tankLevel + "m"); 【補足】 // の後ろは,プログラムを後で読解しやすくするための注釈です. Flow Rate = 1.0m**3/s Tank Area = 20.0mm**2 Initial Level = 10.0m 8 Tank Level time 30.0s = 11.5m Tank Level at time 60.0s = 13.0m 1.7.1 サンプルプログラムの入力と実行 先ほどと同じように, 秀丸エディタを開き, 20行のプログラムを書き込んで, Tank Calculator.java と名付け, 保存して, コンパイル, 実行してください. 成功すれば,以下の実行結果が示されます。(失敗してもめげないで, 2.5.1 節を参 考に、原因を考え,再トライしてください) ちなみに, 実行結果をファイルに書き出すにはコマンドプロンプトの「リダイレク ト」 という機能を使います 11. java TankCalculator > result.txt これにより result.txt というファイルが出来ているはずです。 中身は数値や文字列 だけのテキストファイルですのでエディタなどで内容を確認できます。 @91% 11javaプログラムの中で明示的にフ ァイルに出力することもできるので すがここでは安直な方法を取ります

未解決 回答数: 1
TOEIC・英語 大学生・専門学校生・社会人

文章を読んで上の1〜4の問題を解くものです。 分からないのでお願いします

3. Answer the following questions. 1 What is the difference between UNIX and Linux? 2 3 4 Choose one of the words in italics in the text. What is the definition of the word you have chosen? What are the three levels of a Linux system? What are the two main functions of the kernel? [Reading Text] UNIX was initially developed by researchers at Bell Labs in the 1970s. Today, UNIX and its variants are widely used mainly on servers. By far, the most well- known UNIX-like operating system is Linux. Linux is available in different distributions which include the Linux kernel and different collections of software. These distributions have various user interfaces, many experienced users preferring the command-line interface, or shell. Linux distributions include a range of software including text editors. memory. While the mechanics of Linux and other Unix operating systems are complicated, the components of a Linux system can be grouped into three levels. The lowest level is the hardware, such as Central Processing Unit (CPU) and The next level is the kernel. It enables communication between hardware and software, by providing instructions to the CPU and other hardware. The programs that are running on the system, or processes, make up the top level known as the user space. Processes in user space generally only have access to a restricted amount of memory and operations, this is called user mode. The kernel runs in kernel mode which allows it unrestricted access to hardware resources. The kernel provides functions such as process management and memory management. A computer only has limited Random Access Memory (RAM) and processor cores. Process management allows the system to run multiple programs (processes) at the same time even if the CPU can only execute only a few processes at a time. Memory management allows applications to share the system's memory while avoiding potential issues such as memory leak. Included with the kernel are device drivers that provide an interface for applications to communicate with hardware, such as hard drives. System calls allow user processes to access features that are executed at kernel mode, for example creating new processes.

回答募集中 回答数: 0
TOEIC・英語 大学生・専門学校生・社会人

この1〜4の問題お願いします🙏🏼🙏🏼

3. Answer the following questions. 1 What is the difference between UNIX and Linux? 2 3 4 Choose one of the words in italics in the text. What is the definition of the word you have chosen? What are the three levels of a Linux system? What are the two main functions of the kernel? [Reading Text] UNIX was initially developed by researchers at Bell Labs in the 1970s. Today, UNIX and its variants are widely used mainly on servers. By far, the most well- known UNIX-like operating system is Linux. Linux is available in different distributions which include the Linux kernel and different collections of software. These distributions have various user interfaces, many experienced users preferring the command-line interface, or shell. Linux distributions include a range of software including text editors. memory. While the mechanics of Linux and other Unix operating systems are complicated, the components of a Linux system can be grouped into three levels. The lowest level is the hardware, such as Central Processing Unit (CPU) and The next level is the kernel. It enables communication between hardware and software, by providing instructions to the CPU and other hardware. The programs that are running on the system, or processes, make up the top level known as the user space. Processes in user space generally only have access to a restricted amount of memory and operations, this is called user mode. The kernel runs in kernel mode which allows it unrestricted access to hardware resources. The kernel provides functions such as process management and memory management. A computer only has limited Random Access Memory (RAM) and processor cores. Process management allows the system to run multiple programs (processes) at the same time even if the CPU can only execute only a few processes at a time. Memory management allows applications to share the system's memory while avoiding potential issues such as memory leak. Included with the kernel are device drivers that provide an interface for applications to communicate with hardware, such as hard drives. System calls allow user processes to access features that are executed at kernel mode, for example creating new processes.

回答募集中 回答数: 0
TOEIC・英語 大学生・専門学校生・社会人

英語の問題です。 この答えが分かる方いらっしゃいますか?

9. Though himself. statesman, James Polk was unusually successful in accomplishing his goals during his term. (A) not yla w op at odw oldiassi oimonoe ai ginimbno JisM al 13. In contrast to popular opinion, measures of intelligence have. teliable predictors of future success. -imaginative U ada t an inola Isoioiso ors 3) never been M. (B) without an (C) he was not (B) not any (C) no TI ni 2stsa2 (D) seldom (D) was not an ntaib gaol 3a uinillida ods daidw. at alolbabus( 14, The name "porpoise" sometimes 10. Blends of spices have been created by spice manufacturers to make the art of scasoning to some members of the dolphin family, (A) it is extended ons Jbodai(A) a quick and casy one ailavon usolnsas (B) is an extension *A (C) extended pollusH (D) is extended (B) casy and quick a one (C) a quick one and easyon Issiufo adh (D) one casy and quick ot 11. During nothe 1950。ch adol bag-baxits5. In old age, the immune system proponents of inguistic relativity believed that - to language or representational functioning. graduaily becomes less resistant to viral fangal, and s od thought- (A) infection by bacteria (A) can reduceitomootains ae 2s oibilids aii (B) bacteria's infection e (B) could be reduced (C) reduces (D) reducing e aoiseniaimbs zot sldienogesn al uo smezqu2 arb 3o soitaui 3oid ad.S 12.- (C) bacterial infection ida lanigho ms a (D) infectious bacteria A that nearly all households will haye broadband internet by the vear baale yiwn olo lo dsso 2015. (A) ExpectingLni s2osh os tiorual atgsimue asar ads gorW.ES (B) Many expecting (C) In expectation nwob" sd oa biea ymaqmoo adt atenoyitisamos (D) It is expected A h o obla gaoxworb po pexdmh ow nomwal nmissmA yhsbM as A

回答募集中 回答数: 0
1/4